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(); }
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(); }
public virtual int GetStartingHP(HPMode mode) { return(hp); }