This commit is contained in:
hahwu 2025-09-02 12:10:31 +08:00
parent 9fec847b36
commit d64fe56c22
3 changed files with 12 additions and 1 deletions

View File

@ -131,7 +131,7 @@ func GetChessIdByLvAndColor(Lv int, Color string) int {
return Id
}
}
log.Debug("MergeDataCfg GetChessIdByLvAndColor lv:%v Color:%v not found", Lv, Color)
// log.Debug("MergeDataCfg GetChessIdByLvAndColor lv:%v Color:%v not found", Lv, Color)
return 0
}

View File

@ -386,6 +386,14 @@ func ReqGmCommand_(player *Player, Command string) error {
DecorateMod.AreaId = S
DecorateMod.FinishList = make(map[int]struct{})
DecorateMod.Progress = 0
case "setDecorateProgress":
S, _ := strconv.Atoi(arg[1])
DecorateMod := player.PlayMod.getDecorateMod()
DecorateMod.FinishList = make(map[int]struct{})
for i := 1; i <= S; i++ {
DecorateMod.FinishList[i] = struct{}{}
}
DecorateMod.Progress = S
case "resetCardSeasonFirst":
CardMod := player.PlayMod.getCardMod()
CardMod.SeasonFirst = false

View File

@ -570,6 +570,9 @@ func initReflectChess2(Color string, Start, End, Diff, adjust int) {
for i := Start; i <= End; i++ {
Lv := max(i-adjust, 1)
ChessId := mergeDataCfg.GetChessIdByLvAndColor(Lv, Color)
if ChessId == 0 {
continue
}
reflectChess[ChessId] = Diff
}
}