mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-03-01 00:35:36 +08:00
角色技能配置表消耗体力字段临时解决方案
This commit is contained in:
@@ -6,6 +6,8 @@ import (
|
||||
"github.com/jszwec/csvutil"
|
||||
)
|
||||
|
||||
// 当初写卡池算法的时候临时建立的表 以后再做迁移吧
|
||||
|
||||
type Drop struct {
|
||||
DropId int32 `csv:"DropId"`
|
||||
Weight int32 `csv:"Weight"`
|
||||
@@ -23,7 +25,7 @@ func (g *GameDataConfig) loadDropGroupData() {
|
||||
g.DropGroupDataMap = make(map[int32]*DropGroupData)
|
||||
fileNameList := []string{"DropGachaAvatarUp.csv", "DropGachaWeaponUp.csv", "DropGachaNormal.csv"}
|
||||
for _, fileName := range fileNameList {
|
||||
data := g.readCsvFileData("ext/" + fileName)
|
||||
data := g.readCsvFileData("../ext/" + fileName)
|
||||
var dropList []*Drop
|
||||
err := csvutil.Unmarshal(data, &dropList)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user