mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-24 16:29:27 +02:00
House of Int: No More Integers
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
This commit is contained in:
parent
f470d6496e
commit
e28e33b335
@ -4,14 +4,14 @@
|
|||||||
* RATE is defined as 1/x
|
* RATE is defined as 1/x
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** Encounterable properties */
|
// #region Encounterable properties
|
||||||
/** `64/65536 -> 1/1024` */
|
/** `64/65536 -> 1/1024` */
|
||||||
export const BASE_SHINY_CHANCE = 64;
|
export const BASE_SHINY_CHANCE = 64;
|
||||||
|
|
||||||
/** `256/65536 -> 1/256` */
|
/** `256/65536 -> 1/256` */
|
||||||
export const BASE_HIDDEN_ABILITY_CHANCE = 256;
|
export const BASE_HIDDEN_ABILITY_CHANCE = 256;
|
||||||
|
|
||||||
/** Egg properties */
|
// #region Egg properties
|
||||||
// Rates for specific random properties in 1/x
|
// Rates for specific random properties in 1/x
|
||||||
export const GACHA_DEFAULT_SHINY_RATE = 128;
|
export const GACHA_DEFAULT_SHINY_RATE = 128;
|
||||||
export const GACHA_SHINY_UP_SHINY_RATE = 64;
|
export const GACHA_SHINY_UP_SHINY_RATE = 64;
|
||||||
|
@ -3,8 +3,8 @@ import { Species } from "#enums/species";
|
|||||||
|
|
||||||
export const POKERUS_STARTER_COUNT = 5;
|
export const POKERUS_STARTER_COUNT = 5;
|
||||||
|
|
||||||
export function getStarterValueFriendshipCap(value: integer): integer {
|
export function getStarterValueFriendshipCap(starterCost: number): number {
|
||||||
switch (value) {
|
switch (starterCost) {
|
||||||
case 1:
|
case 1:
|
||||||
return 20;
|
return 20;
|
||||||
case 2:
|
case 2:
|
||||||
@ -1197,7 +1197,7 @@ export const starterPassiveAbilities = {
|
|||||||
[Species.BLOODMOON_URSALUNA]: Abilities.BERSERK
|
[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 }, // 1 Cost
|
||||||
{ passive: 40, costReduction: [25, 60], egg: 30 }, // 2 Cost
|
{ passive: 40, costReduction: [25, 60], egg: 30 }, // 2 Cost
|
||||||
{ passive: 35, costReduction: [20, 50], egg: 25 }, // 3 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
|
{ passive: 10, costReduction: [5, 15], egg: 10 }, // 10 Cost
|
||||||
];
|
];
|
||||||
|
|
||||||
export function getPassiveCandyCount(baseValue: integer): integer {
|
export function getPassiveCandyCount(starterCost: number): number {
|
||||||
return starterCandyCosts[baseValue - 1].passive;
|
return starterCandyCosts[starterCost - 1].passive;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getValueReductionCandyCounts(baseValue: integer): [integer, integer] {
|
export function getValueReductionCandyCounts(starterCost: number): [number, number] {
|
||||||
return starterCandyCosts[baseValue - 1].costReduction;
|
return starterCandyCosts[starterCost - 1].costReduction;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getSameSpeciesEggCandyCounts(baseValue: integer): integer {
|
export function getSameSpeciesEggCandyCounts(starterCost: number): number {
|
||||||
return starterCandyCosts[baseValue - 1].egg;
|
return starterCandyCosts[starterCost - 1].egg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user