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 = System.Array.Find(this.Skills, s => App.Model.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; }