diff --git a/src/data/balance/rates.ts b/src/data/balance/rates.ts index e1590be39ca..778740e2106 100644 --- a/src/data/balance/rates.ts +++ b/src/data/balance/rates.ts @@ -4,14 +4,14 @@ * RATE is defined as 1/x */ -/** Encounterable properties */ +// #region Encounterable properties /** `64/65536 -> 1/1024` */ export const BASE_SHINY_CHANCE = 64; /** `256/65536 -> 1/256` */ export const BASE_HIDDEN_ABILITY_CHANCE = 256; -/** Egg properties */ +// #region Egg properties // Rates for specific random properties in 1/x export const GACHA_DEFAULT_SHINY_RATE = 128; export const GACHA_SHINY_UP_SHINY_RATE = 64; diff --git a/src/data/balance/starters.ts b/src/data/balance/starters.ts index 49ce0020855..43fbc11571d 100644 --- a/src/data/balance/starters.ts +++ b/src/data/balance/starters.ts @@ -3,8 +3,8 @@ import { Species } from "#enums/species"; export const POKERUS_STARTER_COUNT = 5; -export function getStarterValueFriendshipCap(value: integer): integer { - switch (value) { +export function getStarterValueFriendshipCap(starterCost: number): number { + switch (starterCost) { case 1: return 20; case 2: @@ -1197,7 +1197,7 @@ export const starterPassiveAbilities = { [Species.BLOODMOON_URSALUNA]: Abilities.BERSERK }; -const starterCandyCosts: { passive: integer; costReduction: [integer, integer]; egg: integer; }[] = [ +const starterCandyCosts: { passive: number; costReduction: [number, number]; egg: number; }[] = [ { passive: 40, costReduction: [25, 60], egg: 30 }, // 1 Cost { passive: 40, costReduction: [25, 60], egg: 30 }, // 2 Cost { passive: 35, costReduction: [20, 50], egg: 25 }, // 3 Cost @@ -1210,15 +1210,15 @@ const starterCandyCosts: { passive: integer; costReduction: [integer, integer]; { passive: 10, costReduction: [5, 15], egg: 10 }, // 10 Cost ]; -export function getPassiveCandyCount(baseValue: integer): integer { - return starterCandyCosts[baseValue - 1].passive; +export function getPassiveCandyCount(starterCost: number): number { + return starterCandyCosts[starterCost - 1].passive; } -export function getValueReductionCandyCounts(baseValue: integer): [integer, integer] { - return starterCandyCosts[baseValue - 1].costReduction; +export function getValueReductionCandyCounts(starterCost: number): [number, number] { + return starterCandyCosts[starterCost - 1].costReduction; } -export function getSameSpeciesEggCandyCounts(baseValue: integer): integer { - return starterCandyCosts[baseValue - 1].egg; +export function getSameSpeciesEggCandyCounts(starterCost: number): number { + return starterCandyCosts[starterCost - 1].egg; }