宝箱雨优化

This commit is contained in:
hahwu 2025-01-21 09:56:05 +08:00
parent 64c3285b5d
commit b8de7d7da7

View File

@ -253,6 +253,10 @@ func ReqRewardOrder(args []interface{}) error {
if ProductLv > 0 {
Color := order.RandChessColor(ChessMod.GetOrderEmit())
ChessId := mergeDataCfg.GetChessIdByLvAndColor(ProductLv, Color)
if ChessId == 0 {
log.Error("GetChessIdByLvAndColor error color:%d, lv:%d", Color, ProductLv)
return errors.New("GetChessIdByLvAndColor error")
}
ChestRainItems = append(ChestRainItems, &item.Item{Id: ChessId, Num: 1})
}
if Jackpot > 0 {