Lower max Shiny Charm stack count to 4

This commit is contained in:
Flashfyre 2023-10-28 18:55:07 -04:00
parent 989e4b37f4
commit ce84ae2f69
2 changed files with 5 additions and 2 deletions

View File

@ -1067,7 +1067,7 @@ export class ShinyRateBoosterModifier extends PersistentModifier {
} }
getMaxStackCount(): integer { getMaxStackCount(): integer {
return 5; return 4;
} }
} }

View File

@ -39,7 +39,10 @@ export default class ModifierData {
if (type instanceof ModifierTypeGenerator) if (type instanceof ModifierTypeGenerator)
type = (type as ModifierTypeGenerator).generateType(this.player ? scene.getParty() : scene.getEnemyField(), this.typePregenArgs); type = (type as ModifierTypeGenerator).generateType(this.player ? scene.getParty() : scene.getEnemyField(), this.typePregenArgs);
const ret = Reflect.construct(constructor, ([ type ] as any[]).concat(this.args).concat(this.stackCount)) as PersistentModifier const ret = Reflect.construct(constructor, ([ type ] as any[]).concat(this.args).concat(this.stackCount)) as PersistentModifier;
if (ret.stackCount > ret.getMaxStackCount())
ret.stackCount = ret.getMaxStackCount();
return ret; return ret;
} }