Updates to certain modifiers for balance

pull/2/head
Flashfyre 2023-07-06 19:47:52 -04:00
parent 7cca86e082
commit d1e9d817aa
2 changed files with 13 additions and 11 deletions

View File

@ -627,7 +627,7 @@ const modifierTypes = {
GRIP_CLAW: () => new ContactHeldItemTransferChanceModifierType('GRIP CLAW', 10),
HEALING_CHARM: () => new ModifierType('HEALING CHARM', 'Doubles the effectiveness of HP restoring moves and items (excludes revives)',
HEALING_CHARM: () => new ModifierType('HEALING CHARM', 'Increases the effectiveness of HP restoring moves and items by 100% (excludes revives)',
(type, _args) => new Modifiers.HealingBoosterModifier(type, 2), 'healing_charm'),
CANDY_JAR: () => new ModifierType('CANDY JAR', 'Increases the number of levels added by RARE CANDY items by 1', (type, _args) => new Modifiers.LevelIncrementBoosterModifier(type)),

View File

@ -507,7 +507,7 @@ export class FlinchChanceModifier extends PokemonHeldItemModifier {
return true;
}
getmaxStackCount(): integer {
getMaxStackCount(): integer {
return 3;
}
}
@ -537,7 +537,7 @@ export class TurnHealModifier extends PokemonHeldItemModifier {
return true;
}
getmaxStackCount(): integer {
getMaxStackCount(): integer {
return 4;
}
}
@ -567,7 +567,7 @@ export class HitHealModifier extends PokemonHeldItemModifier {
return true;
}
getmaxStackCount(): integer {
getMaxStackCount(): integer {
return 4;
}
}
@ -661,7 +661,7 @@ export class PreserveBerryModifier extends PersistentModifier {
return true;
}
getmaxStackCount(): integer {
getMaxStackCount(): integer {
return 4;
}
}
@ -904,15 +904,13 @@ export class HealingBoosterModifier extends PersistentModifier {
apply(args: any[]): boolean {
const healingMultiplier = args[0] as Utils.IntegerHolder;
for (let s = 0; s < this.getStackCount(); s++)
healingMultiplier.value *= this.multiplier;
healingMultiplier.value = Math.floor(healingMultiplier.value);
healingMultiplier.value = Math.floor(healingMultiplier.value * (this.multiplier + (this.getStackCount() - 1)));
return true;
}
getmaxStackCount(): integer {
return 4;
getMaxStackCount(): integer {
return 3;
}
}
@ -946,6 +944,10 @@ export class ExpBoosterModifier extends PersistentModifier {
return true;
}
getStackCount(): integer {
return this.boostMultiplier < 1 ? super.getStackCount() : 10;
}
}
export class PokemonExpBoosterModifier extends PokemonHeldItemModifier {
@ -1178,7 +1180,7 @@ export class ContactHeldItemTransferChanceModifier extends HeldItemTransferModif
return getPokemonMessage(targetPokemon, `'s ${item.name} was snatched\nby ${pokemon.name}'s ${this.type.name}!`);
}
getmaxStackCount(): integer {
getMaxStackCount(): integer {
return 5;
}
}