[Hotfix] Fix Black Sludge disappearing on session reload (#4496)

Co-authored-by: ImperialSympathizer <imperialsympathizer@gmail.com>
This commit is contained in:
ImperialSympathizer 2024-09-28 14:21:42 -04:00 committed by GitHub
parent 357056ebeb
commit 771b0edcb0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -2586,7 +2586,7 @@ export class HealShopCostModifier extends PersistentModifier {
constructor(type: ModifierType, shopMultiplier: number, stackCount?: integer) {
super(type, stackCount);
this.shopMultiplier = shopMultiplier;
this.shopMultiplier = shopMultiplier ?? 2.5;
}
match(modifier: Modifier): boolean {
@ -2604,6 +2604,10 @@ export class HealShopCostModifier extends PersistentModifier {
return true;
}
getArgs(): any[] {
return super.getArgs().concat(this.shopMultiplier);
}
getMaxStackCount(scene: BattleScene): integer {
return 1;
}