装饰bug修复

This commit is contained in:
hahwu 2025-06-03 11:50:07 +08:00
parent 0896004185
commit 0be7aa3422

View File

@ -29,7 +29,7 @@ func GetStarCost(AreaId, SortId int) int {
}
for _, v := range data {
if gamedata.GetIntValue(v, "AreaId") == AreaId && gamedata.GetIntValue(v, "SortId") == SortId {
return gamedata.GetIntValue(v, "StarCost")
return gamedata.GetIntValue(v, "CostCount")
}
}
return 0
@ -81,14 +81,14 @@ func GetAllSortIdByAreaId(AreaId int) []int {
}
func GetProgressReward(Scene, Lv int) []*item.Item {
value, err := gamedata.GetData("IndoorProgress")
value, err := gamedata.GetData(INDOOR_PROGRESS)
if err != nil {
log.Debug("IndoorProgress GetProgressReward not found")
return nil
}
for _, v := range value {
if gamedata.GetIntValue(v, "Scene") == Scene && gamedata.GetIntValue(v, "Lv") == Lv {
return item.ParseItem(gamedata.GetValue(v, "Item"))
return gamedata.GetItemList(v, "Item")
}
}
return nil