public void Freeze(Actor other) { Simi_Random rnd = new Simi_Random(); int Roll = rnd.rNum(); other.m_HP -= Roll; if (other.m_Status == "") { other.m_Status = "Frozen"; } }
public void Poison(Actor other) { Simi_Random rnd = new Simi_Random(); int Roll = rnd.rNum(); other.m_HP -= Roll; if (other.m_Status == "") { other.m_Status = "Poisoned"; } }
public void Fire(Actor other) { Simi_Random rnd = new Simi_Random(); int Roll = rnd.rNum(); float Damage = ((this.m_Attack - other.m_Defence) + Roll); if (Damage < 0) { Damage = 0; } other.m_HP -= Damage; Random Luck = new Random(); int BurnChance = Luck.Next(1, 101); if (BurnChance < 10) { if (other.m_Status == "") { other.m_Status = "Burned"; } } }