[Hotfix] Fix Black Sludge disappearing on session reload (#4496)
Co-authored-by: ImperialSympathizer <imperialsympathizer@gmail.com>
This commit is contained in:
parent
357056ebeb
commit
771b0edcb0
|
@ -2586,7 +2586,7 @@ export class HealShopCostModifier extends PersistentModifier {
|
||||||
constructor(type: ModifierType, shopMultiplier: number, stackCount?: integer) {
|
constructor(type: ModifierType, shopMultiplier: number, stackCount?: integer) {
|
||||||
super(type, stackCount);
|
super(type, stackCount);
|
||||||
|
|
||||||
this.shopMultiplier = shopMultiplier;
|
this.shopMultiplier = shopMultiplier ?? 2.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
match(modifier: Modifier): boolean {
|
match(modifier: Modifier): boolean {
|
||||||
|
@ -2604,6 +2604,10 @@ export class HealShopCostModifier extends PersistentModifier {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getArgs(): any[] {
|
||||||
|
return super.getArgs().concat(this.shopMultiplier);
|
||||||
|
}
|
||||||
|
|
||||||
getMaxStackCount(scene: BattleScene): integer {
|
getMaxStackCount(scene: BattleScene): integer {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue