mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-09 00:49:27 +02:00
Proper initialization of allRewards
This commit is contained in:
parent
238ed3e23d
commit
303e7f0543
@ -7,11 +7,11 @@ import { initChallenges } from "#data/challenge";
|
|||||||
import { initTrainerTypeDialogue } from "#data/dialogue";
|
import { initTrainerTypeDialogue } from "#data/dialogue";
|
||||||
import { initPokemonForms } from "#data/pokemon-forms";
|
import { initPokemonForms } from "#data/pokemon-forms";
|
||||||
import { initHeldItems } from "#items/all-held-items";
|
import { initHeldItems } from "#items/all-held-items";
|
||||||
|
import { initRewards } from "#items/all-rewards";
|
||||||
import { initTrainerItems } from "#items/all-trainer-items";
|
import { initTrainerItems } from "#items/all-trainer-items";
|
||||||
import { initHeldItemPools } from "#items/init-held-item-pools";
|
import { initHeldItemPools } from "#items/init-held-item-pools";
|
||||||
import { initRewardPools } from "#items/init-reward-pools";
|
import { initRewardPools } from "#items/init-reward-pools";
|
||||||
import { initTrainerItemPools } from "#items/init-trainer-item-pools";
|
import { initTrainerItemPools } from "#items/init-trainer-item-pools";
|
||||||
import { initRewards } from "#items/reward";
|
|
||||||
import { initMoves } from "#moves/move";
|
import { initMoves } from "#moves/move";
|
||||||
import { initMysteryEncounters } from "#mystery-encounters/mystery-encounters";
|
import { initMysteryEncounters } from "#mystery-encounters/mystery-encounters";
|
||||||
import { initAchievements } from "#system/achv";
|
import { initAchievements } from "#system/achv";
|
||||||
|
@ -4,7 +4,7 @@ import { getPokemonNameWithAffix } from "#app/messages";
|
|||||||
import { EvolutionItem, FusionSpeciesFormEvolution, pokemonEvolutions } from "#balance/pokemon-evolutions";
|
import { EvolutionItem, FusionSpeciesFormEvolution, pokemonEvolutions } from "#balance/pokemon-evolutions";
|
||||||
import { FRIENDSHIP_GAIN_FROM_RARE_CANDY } from "#balance/starters";
|
import { FRIENDSHIP_GAIN_FROM_RARE_CANDY } from "#balance/starters";
|
||||||
import { tmPoolTiers, tmSpecies } from "#balance/tms";
|
import { tmPoolTiers, tmSpecies } from "#balance/tms";
|
||||||
import { allHeldItems, allMoves, allRewards, allTrainerItems } from "#data/data-lists";
|
import { allHeldItems, allMoves, allTrainerItems } from "#data/data-lists";
|
||||||
import { getLevelTotalExp } from "#data/exp";
|
import { getLevelTotalExp } from "#data/exp";
|
||||||
import { SpeciesFormChangeItemTrigger } from "#data/form-change-triggers";
|
import { SpeciesFormChangeItemTrigger } from "#data/form-change-triggers";
|
||||||
import { getNatureName, getNatureStatMultiplier } from "#data/nature";
|
import { getNatureName, getNatureStatMultiplier } from "#data/nature";
|
||||||
@ -1520,12 +1520,6 @@ export class RewardOption {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export function initRewards() {
|
|
||||||
for (const [key, value] of Object.entries(rewardInitObj)) {
|
|
||||||
allRewards[key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// TODO: If necessary, add the rest of the modifier types here.
|
// TODO: If necessary, add the rest of the modifier types here.
|
||||||
// For now, doing the minimal work until the modifier rework lands.
|
// For now, doing the minimal work until the modifier rework lands.
|
||||||
const RewardConstructorMap = Object.freeze({
|
const RewardConstructorMap = Object.freeze({
|
||||||
|
Loading…
Reference in New Issue
Block a user