Rare candies add 5 friendship
parent
7a508c485a
commit
b06c101020
|
@ -1109,6 +1109,10 @@ export class PokemonLevelIncrementModifier extends ConsumablePokemonModifier {
|
||||||
pokemon.levelExp = 0;
|
pokemon.levelExp = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const friendshipIncrease = new Utils.IntegerHolder(5);
|
||||||
|
pokemon.scene.applyModifier(PokemonFriendshipBoosterModifier, true, pokemon, friendshipIncrease);
|
||||||
|
pokemon.friendship = Math.min(pokemon.friendship + friendshipIncrease.value, 255);
|
||||||
|
|
||||||
pokemon.scene.unshiftPhase(new LevelUpPhase(pokemon.scene, pokemon.scene.getParty().indexOf(pokemon), pokemon.level - levelCount.value, pokemon.level));
|
pokemon.scene.unshiftPhase(new LevelUpPhase(pokemon.scene, pokemon.scene.getParty().indexOf(pokemon), pokemon.level - levelCount.value, pokemon.level));
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue