mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-10 10:22:18 +02:00
consistency in return type
This commit is contained in:
parent
70476078ba
commit
557c21fd25
@ -1725,8 +1725,8 @@ export default class BattleScene extends SceneBase {
|
||||
|
||||
getEnemyModifiersOverride(): Array<string> {
|
||||
// if no override, do nothing
|
||||
if (!OPP_MODIFIER_OVERRIDE || OPP_MODIFIER_OVERRIDE.length === 0) return;
|
||||
const ret = [];
|
||||
if (!OPP_MODIFIER_OVERRIDE || OPP_MODIFIER_OVERRIDE.length === 0) return ret;
|
||||
// we loop through all the modifier name given in the override file
|
||||
for (const [index, modifierName] of OPP_MODIFIER_OVERRIDE.entries()) {
|
||||
// if the modifier does not exist, we skip it
|
||||
|
@ -64,8 +64,8 @@ export class GameMode implements GameModeConfig {
|
||||
|
||||
getModifierOverride(): Modifier[] {
|
||||
// if no override, do nothing
|
||||
if (!STARTING_MODIFIER_OVERRIDE || STARTING_MODIFIER_OVERRIDE.length === 0) return;
|
||||
const modifiers: Modifier[] = new Array();
|
||||
if (!STARTING_MODIFIER_OVERRIDE || STARTING_MODIFIER_OVERRIDE.length === 0) return modifiers;
|
||||
// we loop through all the modifier name given in the override file
|
||||
for (const [index, modifierName] of STARTING_MODIFIER_OVERRIDE.entries()) {
|
||||
// if the modifier does not exist, we skip it
|
||||
|
Loading…
Reference in New Issue
Block a user