Example #1
0
 public void s_attack(monster_info actor, int addnum)//攻击
 {
     if (player.delendurance(1))
     {
         actor.delhp(player.Attack + addnum);
     }
     p_anima.SetTrigger("DownAtk");
 }
Example #2
0
 public void avoid(player_info player) //回避
 {
     if (player.delendurance(2))
     {
         player.Isavoid = true;
     }
 }
Example #3
0
 public void s_defend(player_info player, int addnum)//防御
 {
     if (player.delendurance(2))
     {
         player.adddefence(addnum);
     }
     p_anima.SetTrigger("HorAtk");
 }
Example #4
0
 public void s_heal(player_info player, int addnum)//加血
 {
     if (player.delendurance(3))
     {
         if (player.Health <= player.Maxhp)
         {
             int num = player.Maxhp - addnum;
             player.addhp(num);
         }
     }
 }