Example #1
0
        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";
            }
        }
Example #2
0
        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";
            }
        }
Example #3
0
        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";
                }
            }
        }