From 26bef151f4072928c6ab1333d8caff735301ef1a Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Thu, 28 Mar 2024 17:29:31 -0400 Subject: [PATCH] Update starter value reduction thresholds to be per-cost --- src/system/game-data.ts | 37 +++++++++++++++++++++++++++++-------- 1 file changed, 29 insertions(+), 8 deletions(-) diff --git a/src/system/game-data.ts b/src/system/game-data.ts index b12cdda10..642c314bf 100644 --- a/src/system/game-data.ts +++ b/src/system/game-data.ts @@ -1067,14 +1067,35 @@ export class GameData { let thresholdA: integer; let thresholdB: integer; - if (baseValue >= 8) - [ thresholdA, thresholdB ] = [ 3, 10 ]; - else if (baseValue >= 6) - [ thresholdA, thresholdB ] = [ 5, 20 ]; - else if (baseValue >= 4) - [ thresholdA, thresholdB ] = [ 10, 30 ]; - else - [ thresholdA, thresholdB ] = [ 25, 100 ]; + switch (baseValue) { + case 1: + [ thresholdA, thresholdB ] = [ 25, 100 ]; + break; + case 2: + [ thresholdA, thresholdB ] = [ 20, 70 ]; + break; + case 3: + [ thresholdA, thresholdB ] = [ 15, 50 ]; + break; + case 4: + [ thresholdA, thresholdB ] = [ 10, 30 ]; + break; + case 5: + [ thresholdA, thresholdB ] = [ 8, 25 ]; + break; + case 6: + [ thresholdA, thresholdB ] = [ 5, 15 ]; + break; + case 7: + [ thresholdA, thresholdB ] = [ 4, 12 ]; + break; + case 8: + [ thresholdA, thresholdB ] = [ 3, 10 ]; + break; + default: + [ thresholdA, thresholdB ] = [ 2, 5 ]; + break; + } if (caughtHatchedCount >= thresholdA) { value = decrementValue(value);