mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-16 07:47:45 +00:00
fixed pacing bug, improved expansion
This commit is contained in:
@@ -60,9 +60,16 @@ export class BotExecution implements Execution {
|
||||
|
||||
const toAttack = border[this.random.nextInt(0, border.length)]
|
||||
const owner = toAttack.owner()
|
||||
if (owner.isPlayer() && (owner.type() == PlayerType.FakeHuman || owner.type() == PlayerType.Human)) {
|
||||
if (this.random.nextInt(0, 1) == 1) {
|
||||
return
|
||||
if (owner.isPlayer()) {
|
||||
if (owner.type() == PlayerType.FakeHuman) {
|
||||
if (!this.random.chance(4)) {
|
||||
return
|
||||
}
|
||||
}
|
||||
if (owner.type() == PlayerType.Human) {
|
||||
if (this.random.chance(2)) {
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
this.sendAttack(owner)
|
||||
|
||||
Reference in New Issue
Block a user