Exemple #1
0
        public override int Attack(Villian target)
        {
            int dmgResult = base.Attack(target);

            Console.WriteLine($"You quote the numbers of the last TPS report and deal {dmgResult} points of mental strain!");
            return(target.Health);
        }
Exemple #2
0
 public virtual void YourTurn(int decision, Villian target, Hero htarget)
 {
     if (decision == 1)
     {
         Attack(target);
     }
 }
Exemple #3
0
        public override int Attack(Villian target)
        {
            int dmgResult = base.Attack(target);

            Console.WriteLine($"Your constant shrugging and saying of 'yah, bruh' annoys them for {dmgResult} points of mental strain");
            return(target.Health);
        }
Exemple #4
0
        public override void  YourTurn(int decision, Villian target)
        {
            if (decision == 1)
            {
                Attack(target);
            }

            if (decision == 2)
            {
                Secondary(target);
            }

            if (decision == 4)
            {
                Consume(Suitcase.baggie[0]);
            }
            if (decision == 5)
            {
                Consume(Suitcase.baggie[1]);
            }
            if (decision == 6)
            {
                Consume(Suitcase.baggie[2], target);
            }
        }
Exemple #5
0
        public override int Attack(Villian target)
        {
            int dmgResult = base.Attack(target);

            Console.WriteLine($"You use a verbal for loop and confuse them for {dmgResult} points of mental strain!");
            return(target.Health);
        }
Exemple #6
0
        public int Secondary(Villian target)
        {
            int dmgResult = Speed * 6 + 10;

            target.Health -= dmgResult;
            Console.WriteLine($"You type in a budget till your calculator is red hot, you throw it at the table, showing them the dangers of misspending on CEO Yachts. {dmgResult} points of mental strain is inflicted!");
            return(target.Health);
        }
Exemple #7
0
        public int Secondary(Villian target)
        {
            Random rand      = new Random();
            int    dmgResult = rand.Next(5, 20) * Dexterity;

            target.Health -= dmgResult;
            Console.WriteLine($"You mumble at them causeing {dmgResult} points of brain damage!");
            return(target.Health);
        }
Exemple #8
0
        public int Secondary(Villian target)
        {
            Random rand      = new Random();
            int    dmgResult = rand.Next(Luck, 25) * Strength * 2;

            target.Health -= dmgResult;
            Console.WriteLine($"You throw a punch, your lack of strength is bad, but you hit for {dmgResult}.");
            return(target.Health);
        }
Exemple #9
0
        public int Secondary(Villian target)
        {
            Random rand      = new Random();
            int    dmgResult = rand.Next(1, 10) * Dexterity * 2;

            target.Health -= dmgResult;
            Console.WriteLine($"You throw the book at them, literally. Yout hit for {dmgResult}!");
            return(target.Health);
        }
Exemple #10
0
 public virtual int Consume(Item item, Villian target)
 {
     if (item.IsGood)
     {
         Health += item.Value;
         return(Health);
     }
     else
     {
         target.Health += item.Value;
         return(target.Health);
     }
 }
        public static void Battle(Hero hero, Villian challenger)
        {
            while (challenger.Health > 0 && hero.Health > 0)
            {
                hero.ShowStats();

                hero.YourTurn(hero.Choice(), challenger);

                if (challenger.Health > 0)
                {
                    challenger.EnemyTurn(challenger.EChoice(), hero);
                    IsHeroDead(hero);
                }
            }

            Console.WriteLine("{0} was Defeated!", challenger.Name);
            Console.ReadLine();
        }
Exemple #12
0
        public override void  YourTurn(int decision, Villian target)
        {
            if (decision == 1)
            {
                Attack(target);
            }

            if (decision == 2)
            {
                Secondary(target);
            }

            // if (decision == 4){
            //     Console.WriteLine(itemList.baggie.Count);
            //     Consume(itemList.baggie[0]);
            // }
            // if (decision == 5){
            //     Consume(itemList.baggie[1]);
            // }
            // if (decision == 6){
            //     Consume(itemList.baggie[2],target);
            // }
            if (decision == 4)
            {
                // Console.WriteLine(itemList.baggie.Count);
                Consume(itemList[0]);
            }
            if (decision == 5)
            {
                Consume(itemList[1]);
            }
            if (decision == 6)
            {
                Consume(itemList[2], target);
            }
        }
Exemple #13
0
        public virtual int Attack(Villian target)
        {
            int skill = Strength;

            if (skill < Dexterity)
            {
                skill = Dexterity;
            }
            if (skill < Speed)
            {
                skill = Speed;
            }

            Random chance  = new Random();
            int    c1      = chance.Next(0, 10 - Luck);
            int    c2      = chance.Next(0, 10 - Luck);
            int    dmg     = skill * 5;
            int    critdmg = dmg * 2;
            int    miss    = 0;
            bool   Hit     = false;

            if (Luck < 10)
            {
                if (chance.Next(1, 4 + target.Dexterity) != 4 + target.Dexterity)
                {
                    Hit = true;
                }
                if (Hit == true)
                {
                    if (c1 == c2)
                    {
                        target.Health -= dmg * 2;
                        Console.WriteLine($"{Name} has Crit {target.Name} for {dmg*2}");
                        return(critdmg);
                    }
                    else
                    {
                        target.Health -= dmg;
                        Console.WriteLine($"{Name} has hit {target.Name} for {dmg}");
                        return(dmg);
                    }
                }
                else
                {
                    Console.WriteLine($"{Name} Missed!");
                    return(miss);
                }
            }
            else
            {
                if (chance.Next(1, 10 + target.Dexterity) != 10 + target.Dexterity)
                {
                    Hit = true;
                }
                if (Hit == true)
                {
                    target.Health -= dmg * 2;
                    Console.WriteLine($"{Name} has Crit {target.Name} for {dmg*2}");
                    return(critdmg);
                }
                else
                {
                    Console.WriteLine($"{Name} Missed!");
                    return(miss);
                }
            }
        }