mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 09:40:44 +00:00
bots more likely to attack traitors
This commit is contained in:
@@ -116,17 +116,18 @@
|
||||
* UI: basic win condition & popup DONE 9/16/2024
|
||||
* right click popup alliance option DONE 9/17/2024
|
||||
* BUG: can't ally same person twice DONE 9/18/2024
|
||||
* attack alliance create traitor flag DONE 9/18/2024
|
||||
* break alliance makes you a traitor DONE 9/18/2024
|
||||
* add traitor icon DONE 9/18/2024
|
||||
* make alliance icon
|
||||
* alert play when they become traitor
|
||||
* make alliance icon DONE 9/19/2024
|
||||
* bots attack traitors
|
||||
* create event box
|
||||
* make fake humans easier
|
||||
* click alliance sends alliance request
|
||||
* notification for alliance request
|
||||
* comfirm alliance
|
||||
* first place has crown
|
||||
* alliance has icon
|
||||
* attack alliance create traitor flag
|
||||
* BUG: FakeHuman don't be enemy if don't share border
|
||||
* BUG: when send boat only captures one pixel
|
||||
* store cookies
|
||||
|
||||
@@ -48,6 +48,14 @@ export class BotExecution implements Execution {
|
||||
}
|
||||
})
|
||||
|
||||
const traitors = this.bot.neighbors().filter(n => n.isPlayer() && n.isTraitor()) as Player[]
|
||||
if (traitors.length > 0) {
|
||||
if (this.random.chance(2)) {
|
||||
this.sendAttack(this.random.randElement(traitors))
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
if (this.neighborsTerraNullius) {
|
||||
for (const b of this.bot.borderTiles()) {
|
||||
for (const n of b.neighbors()) {
|
||||
|
||||
Reference in New Issue
Block a user