mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-06 16:32:16 +02:00
swapped Macho Brace stats, +2 / 10% for HP stats and +1 / 5% for all else
This commit is contained in:
parent
204acaaf05
commit
1262c7c8b1
@ -1103,20 +1103,20 @@ export class PokemonIncrementingStatModifier extends PokemonHeldItemModifier {
|
|||||||
* @returns always `true`
|
* @returns always `true`
|
||||||
*/
|
*/
|
||||||
override apply(_pokemon: Pokemon, stat: Stat, statHolder: NumberHolder): boolean {
|
override apply(_pokemon: Pokemon, stat: Stat, statHolder: NumberHolder): boolean {
|
||||||
// Modifies the passed in stat number holder by +1 per stack for HP, +2 per stack for other stats
|
// Modifies the passed in stat number holder by +2 per stack for HP, +1 per stack for other stats
|
||||||
// If the Macho Brace is at max stacks (50), adds additional 5% to total HP and 10% to other stats
|
// If the Macho Brace is at max stacks (50), adds additional 10% to total HP and 5% to other stats
|
||||||
const isHp = stat === Stat.HP;
|
const isHp = stat === Stat.HP;
|
||||||
|
|
||||||
if (isHp) {
|
if (isHp) {
|
||||||
statHolder.value += this.stackCount;
|
|
||||||
if (this.stackCount === this.getMaxHeldItemCount()) {
|
|
||||||
statHolder.value = Math.floor(statHolder.value * 1.05);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
statHolder.value += 2 * this.stackCount;
|
statHolder.value += 2 * this.stackCount;
|
||||||
if (this.stackCount === this.getMaxHeldItemCount()) {
|
if (this.stackCount === this.getMaxHeldItemCount()) {
|
||||||
statHolder.value = Math.floor(statHolder.value * 1.1);
|
statHolder.value = Math.floor(statHolder.value * 1.1);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
statHolder.value += this.stackCount;
|
||||||
|
if (this.stackCount === this.getMaxHeldItemCount()) {
|
||||||
|
statHolder.value = Math.floor(statHolder.value * 1.05);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user