Ejemplo n.º 1
0
 public void SetLv7D(int?a, int?d, int?sa, int?sd, int?s, int?accuracy, int?evasion)
 {
     if (accuracy != null)
     {
         AccuracyLv = accuracy.Value;
     }
     if (evasion != null)
     {
         EvasionLv = evasion.Value;
     }
     lv5D.Set5D(
         FilterLv7D(a, lv5D.Atk),
         FilterLv7D(d, lv5D.Def),
         FilterLv7D(sa, lv5D.SpAtk),
         FilterLv7D(sd, lv5D.SpDef),
         FilterLv7D(s, lv5D.Speed));
 }
Ejemplo n.º 2
0
 public void Transform(OnboardPokemon op)
 {
     //形态(包括种族值)、能力值、能力等级、属性、特性、技能等变为与对方怪兽一样。
     Form = op.Form;
     FiveD.Set5D(op.FiveD);
     lv5D.Set5D(op.lv5D);
     Gender      = op.Gender;
     _accuracyLv = op._accuracyLv;
     _evasionLv  = op._evasionLv;
     Type1       = op.Type1;//无视羽休
     Type2       = op.Type2;
     Ability     = op.Ability;
     _weight     = op.Weight;
 }