Ejemplo n.º 1
0
        private void UpdateFriendshipForFaint(PBEBattlePokemon pkmn)
        {
            byte         oppLevel = pkmn.Team.OpposingTeam.ActiveBattlers.Max(p => p.Level);
            PartyPokemon pp       = SpritedParties[pkmn.Trainer.Id][pkmn].PartyPkmn;

            Friendship.Event e = oppLevel - pkmn.Level >= 30 ? Friendship.Event.Faint_GE30 : Friendship.Event.Faint_L30;
            Friendship.AdjustFriendship(pkmn, pp, e);
        }
Ejemplo n.º 2
0
        private void UpdateFriendshipForLevelUp(PBEBattlePokemon pkmn)
        {
            PartyPokemon pp = SpritedParties[pkmn.Trainer.Id][pkmn].PartyPkmn;

            Friendship.AdjustFriendship(pkmn, pp, Friendship.Event.LevelUpBattle);
        }