示例#1
0
        public Character(Monster monster, HPMode mode) : this()
        {
            this.monster = (Monster)monster.Clone();

            this.name      = monster.Name;
            this.hp        = monster.GetStartingHP(mode);
            this.maxHP     = this.hp;
            this.isMonster = true;

            this.monster.ApplyDefaultConditions();


            this.monster.PropertyChanged += Monster_PropertyChanged;
            Resources = this.monster.TResources;
            LoadResources();
        }
示例#2
0
        public Character(Monster monster, HPMode mode) : this()
        {
            this.monster = (Monster)monster.Clone();
            this.name    = monster.Name;
            if (mode == HPMode.Default || !TryParseHP(mode == HPMode.Max))
            {
                this.hp = monster.HP;
            }
            this.maxHP     = this.hp;
            this.isMonster = true;

            if (this.monster.HasDefensiveAbility("Incorporeal"))
            {
                ActiveCondition ac = new ActiveCondition();
                ac.Condition = Condition.FindCondition("Incorporeal");
                this.monster.AddCondition(ac);
            }
            Resources = this.monster.TResources;
            LoadResources();
        }
示例#3
0
 public virtual int GetStartingHP(HPMode mode)
 {
     return(hp);
 }