mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-14 03:19:28 +02:00
Fixed various minor issues
This commit is contained in:
parent
f83eb054f4
commit
0d4439630d
@ -177,13 +177,13 @@ export const allRewards = {
|
|||||||
|
|
||||||
// Trainer items
|
// Trainer items
|
||||||
|
|
||||||
[RewardId.LURE]: new LapsingTrainerItemReward(TrainerItemId.LURE, RewardId.LURE),
|
[RewardId.LURE]: new LapsingTrainerItemReward(TrainerItemId.LURE),
|
||||||
[RewardId.SUPER_LURE]: new LapsingTrainerItemReward(TrainerItemId.SUPER_LURE, RewardId.SUPER_LURE),
|
[RewardId.SUPER_LURE]: new LapsingTrainerItemReward(TrainerItemId.SUPER_LURE),
|
||||||
[RewardId.MAX_LURE]: new LapsingTrainerItemReward(TrainerItemId.MAX_LURE, RewardId.MAX_LURE),
|
[RewardId.MAX_LURE]: new LapsingTrainerItemReward(TrainerItemId.MAX_LURE),
|
||||||
|
|
||||||
[RewardId.TEMP_STAT_STAGE_BOOSTER]: new TempStatStageBoosterRewardGenerator(),
|
[RewardId.TEMP_STAT_STAGE_BOOSTER]: new TempStatStageBoosterRewardGenerator(),
|
||||||
|
|
||||||
[RewardId.DIRE_HIT]: new LapsingTrainerItemReward(TrainerItemId.DIRE_HIT, RewardId.TEMP_STAT_STAGE_BOOSTER),
|
[RewardId.DIRE_HIT]: new LapsingTrainerItemReward(TrainerItemId.DIRE_HIT),
|
||||||
} as const satisfies {
|
} as const satisfies {
|
||||||
[k in RewardId]: Reward | RewardGenerator;
|
[k in RewardId]: Reward | RewardGenerator;
|
||||||
};
|
};
|
||||||
|
@ -1,7 +1,3 @@
|
|||||||
/* biome-ignore-start lint/correctness/noUnusedImports: tsdoc imports */
|
|
||||||
import { initRewards, Reward } from "#items/reward";
|
|
||||||
/* biome-ignore-end lint/correctness/noUnusedImports: tsdoc imports */
|
|
||||||
|
|
||||||
import { timedEventManager } from "#app/global-event-manager";
|
import { timedEventManager } from "#app/global-event-manager";
|
||||||
import { globalScene } from "#app/global-scene";
|
import { globalScene } from "#app/global-scene";
|
||||||
import { pokemonEvolutions } from "#balance/pokemon-evolutions";
|
import { pokemonEvolutions } from "#balance/pokemon-evolutions";
|
||||||
|
@ -184,7 +184,7 @@ export function generatePlayerRewardOptions(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Applies overrides for testing
|
// Applies overrides for testing
|
||||||
overridePlayerRewardOptions(options, party);
|
overridePlayerRewardOptions(options);
|
||||||
|
|
||||||
return options;
|
return options;
|
||||||
}
|
}
|
||||||
|
@ -780,10 +780,6 @@ export class PartyUiHandler extends MessageUiHandler {
|
|||||||
return this.processDiscardMenuInput(pokemon);
|
return this.processDiscardMenuInput(pokemon);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.partyUiMode === PartyUiMode.DISCARD) {
|
|
||||||
return this.processDiscardMenuInput(pokemon);
|
|
||||||
}
|
|
||||||
|
|
||||||
// options specific to the mode (moves)
|
// options specific to the mode (moves)
|
||||||
if (this.partyUiMode === PartyUiMode.REMEMBER_MOVE_REWARD) {
|
if (this.partyUiMode === PartyUiMode.REMEMBER_MOVE_REWARD) {
|
||||||
return this.processRememberMoveModeInput(pokemon);
|
return this.processRememberMoveModeInput(pokemon);
|
||||||
|
Loading…
Reference in New Issue
Block a user