public void AddMember(BasePokemon bp) { Name = bp.Name; Monster = bp.Monster; HeldItem = bp.HeldItem; TrainerInfo = bp.TrainerInfo; LiveStats = bp.LiveStats; isShiny = bp.isShiny; Level = bp.Level; Stats = bp.Stats; /**/ PokemonData Data = PokemonData.GetData(Monster); LiveStats.HP = Data.BaseStats.HP; LiveStats.Attack = Data.BaseStats.Attack; LiveStats.Defense = Data.BaseStats.Defense; LiveStats.SpecialAttack = Data.BaseStats.SpecialAttack; LiveStats.SpecialDefense = Data.BaseStats.SpecialDefense; LiveStats.Speed = Data.BaseStats.Speed; /* * LiveStats.HP = bp.Kind.BaseStats.HPStat; * LiveStats.Attack = bp.Kind.BaseStats.AttackStat; * LiveStats.Defence = bp.Kind.BaseStats.DefenceStat; * LiveStats.SpecialAttack = bp.Kind.BaseStats.SpAttackStat; * LiveStats.SpecialDefence = bp.Kind.BaseStats.SpDefenceStat; * LiveStats.Speed = bp.Kind.BaseStats.SpeedStat; */ } //TODO can this be removed?
static P_Stats GetStats(BasePokemon Pokemon) { List <int> List = StatCalculator.CalculateStats(Pokemon); P_Stats newStats = new P_Stats() { HP = List[0], Attack = List[1], Defense = List[2], SpecialAttack = List[3], SpecialDefense = List[4], Speed = List[5], }; return(newStats); }