Fix starterAmount using friendship instead of adjusted amount

This commit is contained in:
AJ Fontaine 2024-11-30 15:53:24 -05:00
parent 71d1515691
commit f59fb23897

View File

@ -4285,7 +4285,7 @@ export class PlayerPokemon extends Pokemon {
if (this.scene.eventManager.isEventActive()) { if (this.scene.eventManager.isEventActive()) {
candyFriendshipMultiplier *= this.scene.eventManager.getFriendshipMultiplier(); candyFriendshipMultiplier *= this.scene.eventManager.getFriendshipMultiplier();
} }
const starterAmount = new Utils.NumberHolder(Math.floor(friendship * (this.scene.gameMode.isClassic ? candyFriendshipMultiplier : 1) / (fusionStarterSpeciesId ? 2 : 1))); const starterAmount = new Utils.NumberHolder(Math.floor(amount.value * (this.scene.gameMode.isClassic ? candyFriendshipMultiplier : 1) / (fusionStarterSpeciesId ? 2 : 1)));
// Add friendship to this PlayerPokemon // Add friendship to this PlayerPokemon
this.friendship = Math.min(this.friendship + amount.value, 255); this.friendship = Math.min(this.friendship + amount.value, 255);