From daa9e1ef0ff3c5abf831d3e5a7e78121e725ed2a Mon Sep 17 00:00:00 2001 From: AJ Fontaine <36677462+Fontbane@users.noreply.github.com> Date: Wed, 5 Jun 2024 23:07:47 -0400 Subject: [PATCH] [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 --- src/modifier/modifier.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/modifier/modifier.ts b/src/modifier/modifier.ts index 6f296c997ca..26d68d74e87 100644 --- a/src/modifier/modifier.ts +++ b/src/modifier/modifier.ts @@ -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) {