diff --git a/modules/entertainment/room.go b/modules/entertainment/room.go index c10050b36..dc665fe1f 100644 --- a/modules/entertainment/room.go +++ b/modules/entertainment/room.go @@ -128,6 +128,11 @@ func (this *Room) AiOperator() { if this.NexPower != this.curPower { this.round++ } + for _, v := range szMap { // + if v.Xgrid > 0 { + this.player2.Energy += v.Xgrid + } + } this.player2.Score += curScore // 广播消息