[BUG] Fix fullheal, burn/poison, and endure tokens in existing saves not updating after rebalance (#1848)

* Fix tokens not actually updating

* Remove changes to getArgs

* Added parentheses around conditional for safety

* Laid a space betwixt the two and its respective one at the behest of Temp
This commit is contained in:
AJ Fontaine 2024-06-05 23:07:47 -04:00 committed by GitHub
parent c1b4be83d0
commit daa9e1ef0f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2195,7 +2195,8 @@ export class EnemyAttackStatusEffectChanceModifier extends EnemyPersistentModifi
super(type, stackCount);
this.effect = effect;
this.chance = (chancePercent || 5) / 100;
//Hardcode temporarily
this.chance = .025 * ((this.effect === StatusEffect.BURN || this.effect === StatusEffect.POISON) ? 2 : 1);
}
match(modifier: Modifier): boolean {
@ -2230,7 +2231,8 @@ export class EnemyStatusEffectHealChanceModifier extends EnemyPersistentModifier
constructor(type: ModifierType, chancePercent: number, stackCount?: integer) {
super(type, stackCount);
this.chance = (chancePercent || 2.5) / 100;
//Hardcode temporarily
this.chance = .025;
}
match(modifier: Modifier): boolean {
@ -2268,7 +2270,8 @@ export class EnemyEndureChanceModifier extends EnemyPersistentModifier {
constructor(type: ModifierType, chancePercent?: number, stackCount?: integer) {
super(type, stackCount || 10);
this.chance = (chancePercent || 2) / 100;
//Hardcode temporarily
this.chance = .02;
}
match(modifier: Modifier) {