ai 能量进度统计

This commit is contained in:
meixiongfeng 2023-10-25 09:53:36 +08:00
parent 5f7b86e5ee
commit ad64ecc289

View File

@ -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
// 广播消息