From ad64ecc289acdde58169b32573ceb4d6bb8a7d2c Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Wed, 25 Oct 2023 09:53:36 +0800 Subject: [PATCH] =?UTF-8?q?ai=20=E8=83=BD=E9=87=8F=E8=BF=9B=E5=BA=A6?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/entertainment/room.go | 5 +++++ 1 file changed, 5 insertions(+) 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 // 广播消息