From 0995b0a5e3afea728a2155ce021bad59cf2466dc Mon Sep 17 00:00:00 2001 From: Brandon Yi Date: Thu, 17 Apr 2025 19:38:37 -0700 Subject: [PATCH] Increase SAM search radius and cap cost at 3mil (#529) Fixes https://github.com/openfrontio/OpenFrontIO/issues/515 ## Description: Bumping SAM launcher search range from 75 to 100. Also, decreasing the max cost of the SAM to 3 mil (down from 4.5mil) ## Please complete the following: - [x] I have added screenshots for all UI updates - [X] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced - [X] I understand that submitting code with bugs that could have been caught through manual testing blocks releases and new features for all contributors ## Please put your Discord username so you can be contacted if a bug or regression is found: bypie5 --------- Co-authored-by: APuddle210 --- src/core/configuration/DefaultConfig.ts | 2 +- src/core/execution/SAMLauncherExecution.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/configuration/DefaultConfig.ts b/src/core/configuration/DefaultConfig.ts index 6c20883b9..4f36e1183 100644 --- a/src/core/configuration/DefaultConfig.ts +++ b/src/core/configuration/DefaultConfig.ts @@ -330,7 +330,7 @@ export class DefaultConfig implements Config { p.type() == PlayerType.Human && this.infiniteGold() ? 0 : Math.min( - 1_500_000 * 3, + 3_000_000, (p.unitsIncludingConstruction(UnitType.SAMLauncher).length + 1) * 1_500_000, diff --git a/src/core/execution/SAMLauncherExecution.ts b/src/core/execution/SAMLauncherExecution.ts index 07f55b3c1..af1317319 100644 --- a/src/core/execution/SAMLauncherExecution.ts +++ b/src/core/execution/SAMLauncherExecution.ts @@ -21,7 +21,7 @@ export class SAMLauncherExecution implements Execution { private target: Unit = null; private warheadTargets: Unit[] = []; - private searchRangeRadius = 75; + private searchRangeRadius = 80; // As MIRV go very fast we have to detect them very early but we only // shoot the one targeting very close (MIRVWarheadProtectionRadius) private MIRVWarheadSearchRadius = 400;