Updates to certain modifiers for balance
parent
7cca86e082
commit
d1e9d817aa
|
@ -627,7 +627,7 @@ const modifierTypes = {
|
||||||
|
|
||||||
GRIP_CLAW: () => new ContactHeldItemTransferChanceModifierType('GRIP CLAW', 10),
|
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'),
|
(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)),
|
CANDY_JAR: () => new ModifierType('CANDY JAR', 'Increases the number of levels added by RARE CANDY items by 1', (type, _args) => new Modifiers.LevelIncrementBoosterModifier(type)),
|
||||||
|
|
||||||
|
|
|
@ -507,7 +507,7 @@ export class FlinchChanceModifier extends PokemonHeldItemModifier {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
getmaxStackCount(): integer {
|
getMaxStackCount(): integer {
|
||||||
return 3;
|
return 3;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -537,7 +537,7 @@ export class TurnHealModifier extends PokemonHeldItemModifier {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
getmaxStackCount(): integer {
|
getMaxStackCount(): integer {
|
||||||
return 4;
|
return 4;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -567,7 +567,7 @@ export class HitHealModifier extends PokemonHeldItemModifier {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
getmaxStackCount(): integer {
|
getMaxStackCount(): integer {
|
||||||
return 4;
|
return 4;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -661,7 +661,7 @@ export class PreserveBerryModifier extends PersistentModifier {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
getmaxStackCount(): integer {
|
getMaxStackCount(): integer {
|
||||||
return 4;
|
return 4;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -904,15 +904,13 @@ export class HealingBoosterModifier extends PersistentModifier {
|
||||||
|
|
||||||
apply(args: any[]): boolean {
|
apply(args: any[]): boolean {
|
||||||
const healingMultiplier = args[0] as Utils.IntegerHolder;
|
const healingMultiplier = args[0] as Utils.IntegerHolder;
|
||||||
for (let s = 0; s < this.getStackCount(); s++)
|
healingMultiplier.value = Math.floor(healingMultiplier.value * (this.multiplier + (this.getStackCount() - 1)));
|
||||||
healingMultiplier.value *= this.multiplier;
|
|
||||||
healingMultiplier.value = Math.floor(healingMultiplier.value);
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
getmaxStackCount(): integer {
|
getMaxStackCount(): integer {
|
||||||
return 4;
|
return 3;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -946,6 +944,10 @@ export class ExpBoosterModifier extends PersistentModifier {
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getStackCount(): integer {
|
||||||
|
return this.boostMultiplier < 1 ? super.getStackCount() : 10;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class PokemonExpBoosterModifier extends PokemonHeldItemModifier {
|
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}!`);
|
return getPokemonMessage(targetPokemon, `'s ${item.name} was snatched\nby ${pokemon.name}'s ${this.type.name}!`);
|
||||||
}
|
}
|
||||||
|
|
||||||
getmaxStackCount(): integer {
|
getMaxStackCount(): integer {
|
||||||
return 5;
|
return 5;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue