public void s_attack(monster_info actor, int addnum)//攻击 { if (player.delendurance(1)) { actor.delhp(player.Attack + addnum); } p_anima.SetTrigger("DownAtk"); }
public void avoid(player_info player) //回避 { if (player.delendurance(2)) { player.Isavoid = true; } }
public void s_defend(player_info player, int addnum)//防御 { if (player.delendurance(2)) { player.adddefence(addnum); } p_anima.SetTrigger("HorAtk"); }
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); } } }