Exemplo n.º 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));
        }
Exemplo n.º 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();
 }