fixed pacing bug, improved expansion

This commit is contained in:
evanpelle
2024-09-09 20:31:45 -07:00
parent 3b79ab84f5
commit f24a4b894a
14 changed files with 39 additions and 40 deletions
+10 -3
View File
@@ -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)