技能能量
This commit is contained in:
parent
a404633165
commit
86ea90004b
@ -129,10 +129,9 @@ func (this *Room) AiOperator() {
|
|||||||
if this.NexPower != this.curPower {
|
if this.NexPower != this.curPower {
|
||||||
this.round++
|
this.round++
|
||||||
}
|
}
|
||||||
for _, v := range szMap { //
|
|
||||||
if v.CurEnergy > 0 {
|
if len(szMap) > 0 {
|
||||||
this.player2.Energy += v.CurEnergy
|
this.player2.Energy += szMap[len(szMap)-1].CurEnergy
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if bAddPs {
|
if bAddPs {
|
||||||
@ -317,13 +316,11 @@ func (this *Room) ReceiveMessage(session comm.IUserSession, stype string, msg pr
|
|||||||
}
|
}
|
||||||
this.player1.Ps = MaxPs
|
this.player1.Ps = MaxPs
|
||||||
}
|
}
|
||||||
for _, v := range szMap { //
|
if len(szMap) > 0 {
|
||||||
if v.CurEnergy > 0 {
|
if color == 1 {
|
||||||
if color == 1 {
|
this.player1.Energy += szMap[len(szMap)-1].CurEnergy
|
||||||
this.player1.Energy += v.CurEnergy
|
} else {
|
||||||
} else {
|
this.player2.Energy += szMap[len(szMap)-1].CurEnergy
|
||||||
this.player2.Energy += v.CurEnergy
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if this.player1.Ps <= 0 { // 权限给下一个人
|
if this.player1.Ps <= 0 { // 权限给下一个人
|
||||||
|
Loading…
Reference in New Issue
Block a user