mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-28 17:17:58 +00:00
NPCs break alliances less frequently
This commit is contained in:
@@ -146,9 +146,9 @@ export class FakeHumanExecution implements Execution {
|
|||||||
private shouldAttack(other: Player): boolean {
|
private shouldAttack(other: Player): boolean {
|
||||||
if (this.player.isAlliedWith(other)) {
|
if (this.player.isAlliedWith(other)) {
|
||||||
if (this.shouldDiscourageAttack(other)) {
|
if (this.shouldDiscourageAttack(other)) {
|
||||||
return this.random.chance(100);
|
return this.random.chance(200);
|
||||||
}
|
}
|
||||||
return this.random.chance(20);
|
return this.random.chance(50);
|
||||||
} else {
|
} else {
|
||||||
if (this.shouldDiscourageAttack(other)) {
|
if (this.shouldDiscourageAttack(other)) {
|
||||||
return this.random.chance(4);
|
return this.random.chance(4);
|
||||||
|
|||||||
Reference in New Issue
Block a user