宠物订单优化

This commit is contained in:
hahwu 2025-05-30 18:41:54 +08:00
parent e7971ae3f6
commit bde44a8a6d

View File

@ -852,7 +852,7 @@ func (player *Player) FormatOrderReward() {
OrderMod := player.PlayMod.getOrderMod() OrderMod := player.PlayMod.getOrderMod()
if ExpCoin > PExpCoin { if ExpCoin > PExpCoin {
for k, v := range OrderMod.GetOrderList() { for k, v := range OrderMod.GetOrderList() {
if len(v.Items) == 0 { if len(v.Items) != 0 {
continue continue
} }
if v.Type != order.Common_type { if v.Type != order.Common_type {
@ -868,7 +868,7 @@ func (player *Player) FormatOrderReward() {
return return
} }
for k, v := range OrderMod.GetOrderList() { for k, v := range OrderMod.GetOrderList() {
if len(v.Items) == 0 { if len(v.Items) != 0 {
continue continue
} }
if v.Type != order.Common_type { if v.Type != order.Common_type {