mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-01-17 22:40:59 +00:00
[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:
parent
c1b4be83d0
commit
daa9e1ef0f
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user