AI会放技能了 (稍微智能一点)
This commit is contained in:
parent
a9f5ceadb7
commit
3052b09217
@ -772,7 +772,25 @@ func (this *Room) AutoOperator(uid string) {
|
|||||||
this.module.Errorf("cant found user:%s", uid)
|
this.module.Errorf("cant found user:%s", uid)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
conf, err := this.module.configure.GetGameConsumeHero(p.Cardid)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
// 交换元素
|
// 交换元素
|
||||||
|
if this.player1.Energy >= conf.Skillload {
|
||||||
|
var color int32
|
||||||
|
if this.curPower == this.player1.Userinfo.Uid {
|
||||||
|
color = 1
|
||||||
|
} else {
|
||||||
|
color = 2
|
||||||
|
}
|
||||||
|
this.UserSkillUp(color, 0)
|
||||||
|
if this.RoomType == 2 && this.curPower == p.Userinfo.Uid {
|
||||||
|
this.AutoOperator(this.curPower)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
szMap, oid1, oid2, bAddPs = this.chessboard.AiSwapGirde()
|
szMap, oid1, oid2, bAddPs = this.chessboard.AiSwapGirde()
|
||||||
p.Ps--
|
p.Ps--
|
||||||
if bAddPs {
|
if bAddPs {
|
||||||
|
Loading…
Reference in New Issue
Block a user