Esempio n. 1
0
        public static MCharacterAbility Create(MCharacter mCharacter)
        {
            MCharacterAbility ability = new MCharacterAbility();

            ability.Update(mCharacter);
            return(ability);
        }
Esempio n. 2
0
 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;
 }