From 7119923e0906321c2b1867dbf1f3048ef91e598c Mon Sep 17 00:00:00 2001 From: David Eskin Date: Wed, 23 Apr 2025 22:57:59 -0400 Subject: [PATCH 1/2] Restore DefensePost shells, increase cool down, decrease shell damage --- src/core/configuration/DefaultConfig.ts | 4 ++-- src/core/execution/DefensePostExecution.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/configuration/DefaultConfig.ts b/src/core/configuration/DefaultConfig.ts index 1a329642b..e536a5f3f 100644 --- a/src/core/configuration/DefaultConfig.ts +++ b/src/core/configuration/DefaultConfig.ts @@ -250,7 +250,7 @@ export class DefaultConfig implements Config { return { cost: () => 0, territoryBound: false, - damage: 250, + damage: 200, }; case UnitType.SAMMissile: return { @@ -706,7 +706,7 @@ export class DefaultConfig implements Config { } defensePostShellAttackRate(): number { - return 100; + return 120; } safeFromPiratesCooldownMax(): number { diff --git a/src/core/execution/DefensePostExecution.ts b/src/core/execution/DefensePostExecution.ts index aedebf26e..b3524e339 100644 --- a/src/core/execution/DefensePostExecution.ts +++ b/src/core/execution/DefensePostExecution.ts @@ -118,7 +118,7 @@ export class DefensePostExecution implements Execution { this.target = null; return; } else { - //this.shoot(); + this.shoot(); return; } } From 304cbb6e8f90b09f3237837274aff46a6a0d82e3 Mon Sep 17 00:00:00 2001 From: David Eskin Date: Wed, 23 Apr 2025 23:09:03 -0400 Subject: [PATCH 2/2] restore alliance trade safety --- src/core/execution/WarshipExecution.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/execution/WarshipExecution.ts b/src/core/execution/WarshipExecution.ts index 6cfecc63e..db467d55d 100644 --- a/src/core/execution/WarshipExecution.ts +++ b/src/core/execution/WarshipExecution.ts @@ -145,6 +145,7 @@ export class WarshipExecution implements Execution { (unit.type() !== UnitType.TradeShip || (hasPort && unit.dstPort()?.owner() !== this.warship.owner() && + !unit.dstPort()?.owner().isFriendly(this.warship.owner()) && unit.isSafeFromPirates() !== true)), );