Example #1
0
 /// <summary>
 /// 恢复buff:回合开始时,恢复5HP
 /// </summary>
 void Recover()
 {
     magic.setHP(magic.getHP() + 5);
     if (magic.getHP() > magic.getMaxHP())
     {
         magic.setHP(magic.getMaxHP());
     }
 }
Example #2
0
 /// <summary>
 /// 愤怒:伤害倍率随着生命值降低升高
 /// </summary>
 /// <param name="magic"></param>
 void beS9(ref Magic magic)
 {
     magic.skill.addcount = (int)((float)magicCore.getHP() / (float)magicCore.getMaxHP() * 10.0f);
 }