Update starter value reduction thresholds to be per-cost

pull/20/head
Flashfyre 2024-03-28 17:29:31 -04:00
parent 11bd7fdbca
commit 26bef151f4
1 changed files with 29 additions and 8 deletions

View File

@ -1067,14 +1067,35 @@ export class GameData {
let thresholdA: integer; let thresholdA: integer;
let thresholdB: integer; let thresholdB: integer;
if (baseValue >= 8) switch (baseValue) {
[ thresholdA, thresholdB ] = [ 3, 10 ]; case 1:
else if (baseValue >= 6) [ thresholdA, thresholdB ] = [ 25, 100 ];
[ thresholdA, thresholdB ] = [ 5, 20 ]; break;
else if (baseValue >= 4) case 2:
[ thresholdA, thresholdB ] = [ 10, 30 ]; [ thresholdA, thresholdB ] = [ 20, 70 ];
else break;
[ thresholdA, thresholdB ] = [ 25, 100 ]; 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) { if (caughtHatchedCount >= thresholdA) {
value = decrementValue(value); value = decrementValue(value);