コード例 #1
0
        public void UpdateDependencies()
        {
            HP.Max   = Attributes.GetStatByTag("Vitality").Value;
            Will.Max = Attributes.GetStatByTag("Insight").Value + 2;

            int ageattrmod = 0;
            int agesocimod = 0;

            if (Age > 10)
            {
                ageattrmod = 2;
                agesocimod = 2;
            }

            if (Age > 19)
            {
                ageattrmod = 4;
                agesocimod = 4;
            }

            if (Age > 50)
            {
                ageattrmod = 3;
                agesocimod = 6;
            }

            Attributes.MaxPoints       = Math.Min(Rank * 2, 8) + ageattrmod;
            SocialAttributes.MaxPoints = Math.Min(Rank * 2, 8) + agesocimod;

            Skills.SetAllMax(PokemonUtils.GetSkillCap(Rank));
            Skills.MaxPoints = (PokemonUtils.GetSkillPointMax(Rank));
        }
コード例 #2
0
 public void UpdateDependencies()
 {
     SocialAttributes.MaxPoints = PokemonUtils.GetSocialPointMax(Rank);
     Attributes.MaxPoints       = PokemonUtils.GetAttributePointMax(Rank);
     Skills.MaxPoints           = PokemonUtils.GetSkillPointMax(Rank);
     Skills.SetAllMax(PokemonUtils.GetSkillCap(Rank));
     HP.Max         = HP.BaseVal + Attributes.GetStatByTag("Vitality").Value;
     Will.Max       = Attributes.GetStatByTag("Insight").Value + 2;
     LearnSet       = new LearnsetData(DexData.Learnset, Rank);
     LearnableMoves = Attributes.GetStatByTag("Insight").Value + 2;
     UpdateMovesCount();
 }
コード例 #3
0
        public PokemonData(DexData dd)
        {
            this.DexData = dd;
            PokemonID    = dd.ID;
            Name         = dd.Name;
            Rank         = PokemonUtils.RankFromString(dd.Rank);
            Weight       = dd.Weight;
            Height       = dd.Height;

            Abilities = dd.Abilities;
            PopulateStats(dd);
            UpdateDependencies();
        }
コード例 #4
0
 public void SetRank(int rank = 0)
 {
     Rank       = rank;
     RankString = PokemonUtils.RankFromInt(rank);
 }