public static MCharacterAbility Create(MCharacter mCharacter) { MCharacterAbility ability = new MCharacterAbility(); ability.Update(mCharacter); return(ability); }
public void StatusInit() { if (this.currentSkill == null) { if (this.skills != null && this.skills.Length > 0) { this.currentSkill = Array.Find(this.skills, s => Master.MSkill.IsWeaponType(s.master, this.weaponType)); } } if (this.ability == null) { this.ability = MCharacterAbility.Create(this); } else { this.ability.Update(this); } this.hp = this.ability.hpMax; this.mp = this.ability.mpMax; this._status = new List <MBase>(); }