优化
This commit is contained in:
parent
9fec847b36
commit
d64fe56c22
@ -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
|
||||
}
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user