Пример #1
0
        /// <summary>
        /// Creates a new Instance for a default monster.
        /// </summary>
        /// <returns>A new monster with blank or default stats.</returns>
        public static MonsterStat BlankMonsterStat()
        {
            MonsterStat m = new MonsterStat();

            m.HitPoints       = 5;
            m.HitDice         = "1d8";
            m.ChallengeRating = "1";
            m.XP = XPTable.XPbyCR(m.ChallengeRating).ToString();

            return(m);
        }
Пример #2
0
        /// <summary>
        /// Creates a copy of this monster.
        /// </summary>
        /// <returns>A new object with the same values than this monster.</returns>
        public object Clone()
        {
            MonsterStat m = new MonsterStat();

            m.name = this.name;
            m.cr   = this.cr;
            m.xp   = this.xp;
            m.hd   = this.hd;
            m.hp   = this.hp;

            return(m);
        }
Пример #3
0
        /// <summary>
        /// Creates a copy of this monster.
        /// </summary>
        /// <returns>A new object with the same values than this monster.</returns>
        public object Clone()
        {
            MonsterStat m = new MonsterStat();

            m.name = this.name;
            m.cr = this.cr;
            m.xp = this.xp;
            m.hd = this.hd;
            m.hp = this.hp;

            return m;
        }
Пример #4
0
        /// <summary>
        /// Creates a new Instance for a default monster.
        /// </summary>
        /// <returns>A new monster with blank or default stats.</returns>
        public static MonsterStat BlankMonsterStat()
        {
            MonsterStat m = new MonsterStat();

            m.HitPoints = 5;
            m.HitDice = "1d8";
            m.ChallengeRating = "1";
            m.XP = XPTable.XPbyCR(m.ChallengeRating).ToString();

            return m;
        }