예제 #1
0
        public Mob GenerateMobStats(Mob mob)
        {
            StatCheck statCheck;

            statCheck         = StatCalculation.GetRandomStat(mob);
            mob.PositiveStats = GeneratePositiveStats(statCheck);
            mob.NegativeStats = GenerateNegativeStats(statCheck);
            return(mob);
        }
예제 #2
0
        private Mob GenerateNewStatOnLevelUp(Mob mob)
        {
            StatCheck = StatCalculation.GetRandomStat(mob);
            int statnumber = StatCheck.NumberOfNegativeStats + StatCheck.NumberOfPositiveStats;
            int mobstats   = mob.NegativeStats.Count + mob.PositiveStats.Count;

            if (mobstats < statnumber)
            {
                GenerateMobStats(mob);
            }
            return(mob);
        }