Esempio n. 1
0
    private static void HireNext()
    {
        DisplayGladiator();
        Write.Line(0, 16, Color.SPEAK + "'Well? Does anyone catch your eye?'" + Color.RESET);
        Write.Line(0, 28, "[0] to return");
        Gladiator g      = new Gladiator(1);
        int       choice = Return.Int();

        if (choice > 0 && choice <= list.Count)
        {
            g = list[choice - 1];
        }
        else if (choice == 0)
        {
            Hub.Menu();
        }
        else
        {
            HireNext();
        }
        Console.Clear();
        Return.PlayerInfo();
        Write.Line(0, 2, Color.NAME + g.name + Color.RESET + "?");
        Write.Line(0, 4, Color.STRENGTH + "Strength " + Color.RESET + $"  {g.Strength}");
        Write.Line(0, 5, Color.OFFENCE + "Offence  " + Color.RESET + $"  {g.Offence}");
        Write.Line(0, 6, Color.DEFENCE + "Defence  " + Color.RESET + $"  {g.Defence}");
        Write.Line(0, 7, Color.ENDURANCE + "Endurance" + Color.RESET + $"  {g.Endurance}");
        Write.Line(0, 9, Color.GOLD + "Price      " + Color.RESET + g.Price);
        if (Return.Afford(g.Price))
        {
            if (Return.Confirm())
            {
                Console.Clear();
                Write.Line(0, 1, Color.SPEAK + "'Wonderful!'" + Color.NPC + "\n\nRizzo" + Color.RESET + " takes your money, and " + Color.NAME + $"{g.name}" + Color.RESET + " joins your team\n");
                Create.player.gold -= g.Price;
                list.Remove(g);
                rosterAdd(g);
                Write.KeyPress(0, 28);
                Hub.Menu();
            }
            else
            {
                HireNext();
            }
        }
        else
        {
            Write.Line(0, 25, "You can't afford it\n");
            Write.KeyPress();
            Hub.Menu();
        }
    }
Esempio n. 2
0
    private void Display()
    {
        DisplayGladiator();
        Write.Line(0, 25, "'Well? Does anyone catch your eye?'");
        Write.Line(0, 26, "[0] to return");
        Gladiator g      = new Gladiator(1);
        int       choice = Return.Int();

        if (choice > 0 && choice <= list.Count)
        {
            g = list[choice - 1];
        }
        else if (choice == 0)
        {
            Location.list[0].Go();
        }
        else
        {
            Display();
        }
        DisplayGladiator();
        Write.Line(15, 18, g.Name);
        Write.Line(15, 19, "Price " + g.Price);
        if (Return.Afford(g.Price))
        {
            if (Write.Confirm(15, 20))
            {
                Write.Line(0, 25, $"'Wonderful!'\nRizzo takes your money, and {g.Name} joins your team\n");
                Owner.p.Gold -= g.Price;
                RosterAdd(g);
                Write.KeyPress();
                Location.list[0].Go();
            }
            else
            {
                Display();
            }
        }
        else
        {
            Write.Line(0, 25, "You can't afford it\n");
            Write.KeyPress();
            Location.list[0].Go();
        }
    }
Esempio n. 3
0
    private static void HireManager()
    {
        int e = 50;
        int p = 100;

        Console.Clear();
        Return.PlayerInfo();
        Write.Line(5, 2, "Name");
        Write.Line(e, 2, "Effect");
        Write.Line(p, 2, "Price");
        if (player.equipmentManager == false)
        {
            Write.Line(0, 4, "[1] " + Color.NAME + managerNames[0] + Color.RESET + " the" + Color.ITEM + " equipment manager" + Color.RESET);
            Write.Line(e, 4, Color.ITEM + "Armor repairs are free" + Color.RESET);
            Write.Line(p, 4, Color.GOLD + "1000" + Color.RESET);
        }
        else
        {
            Write.Line(0, 4, "[X] " + Color.MITIGATION + "This manager is not available" + Color.RESET);
        }
        if (player.healthManager == false)
        {
            Write.Line(0, 6, "[2] " + Color.NAME + managerNames[1] + Color.RESET + " the" + Color.HEALTH + " health manager" + Color.RESET);
            Write.Line(e, 6, Color.HEALTH + "Resting a gladiator heals all severe injuries" + Color.RESET);
            Write.Line(p, 6, Color.GOLD + "1500" + Color.RESET);
        }
        else
        {
            Write.Line(0, 6, "[X] " + Color.MITIGATION + "This manager is not available" + Color.RESET);
        }
        if (player.strengthManager == false)
        {
            Write.Line(0, 8, "[3] " + Color.NAME + managerNames[2] + Color.RESET + " the" + Color.STRENGTH + " fitness instructor" + Color.RESET);
            Write.Line(e, 8, Color.STRENGTH + "Increased chance of strength gain" + Color.RESET);
            Write.Line(p, 8, Color.GOLD + "1500" + Color.RESET);
        }
        else
        {
            Write.Line(0, 8, "[X] " + Color.MITIGATION + "This manager is not available" + Color.RESET);
        }
        if (player.offenceManager == false)
        {
            Write.Line(0, 10, "[4] " + Color.NAME + managerNames[3] + Color.RESET + " the" + Color.OFFENCE + " offence coordinator" + Color.RESET);
            Write.Line(e, 10, Color.OFFENCE + "Increased chance of offence gain" + Color.RESET);
            Write.Line(p, 10, Color.GOLD + "1500" + Color.RESET);
        }
        else
        {
            Write.Line(0, 10, "[X] " + Color.MITIGATION + "This manager is not available" + Color.RESET);
        }
        if (player.defenceManager == false)
        {
            Write.Line(0, 12, "[5] " + Color.NAME + managerNames[4] + Color.RESET + " the" + Color.DEFENCE + " defence coordinator" + Color.RESET);
            Write.Line(e, 12, Color.DEFENCE + "Increased chance of defence gain" + Color.RESET);
            Write.Line(p, 12, Color.GOLD + "1500" + Color.RESET);
        }
        else
        {
            Write.Line(0, 12, "[X] " + Color.MITIGATION + "This manager is not available" + Color.RESET);
        }
        if (player.enduranceManager == false)
        {
            Write.Line(0, 14, "[6] " + Color.NAME + managerNames[5] + Color.RESET + " the" + Color.ENDURANCE + " conditioning coach" + Color.RESET);
            Write.Line(e, 14, Color.ENDURANCE + "Increased chance of endurance gain" + Color.RESET);
            Write.Line(p, 14, Color.GOLD + "1500" + Color.RESET);
        }
        else
        {
            Write.Line(0, 14, "[X] " + Color.MITIGATION + "This manager is not available" + Color.RESET);
        }
        if (player.prestigeManager == false)
        {
            Write.Line(0, 16, "[7] " + Color.NAME + managerNames[6] + Color.RESET + " the" + Color.XP + " publicity manager" + Color.RESET);
            Write.Line(e, 16, Color.XP + "Increases prestige gain after arena win" + Color.RESET);
            Write.Line(p, 16, Color.GOLD + "2500" + Color.RESET);
        }
        else
        {
            Write.Line(0, 16, "[X] " + Color.MITIGATION + "This manager is not available" + Color.RESET);
        }
        if (player.moneyManager == false)
        {
            Write.Line(0, 18, "[8] " + Color.NAME + managerNames[7] + Color.RESET + " the" + Color.GOLD + " fiscal planner" + Color.RESET);
            Write.Line(e, 18, Color.GOLD + "Increases gold won in arena, allows gambling" + Color.RESET);
            Write.Line(p, 18, Color.GOLD + "2000" + Color.RESET);
        }
        else
        {
            Write.Line(0, 18, "[X] " + Color.MITIGATION + "This manager is not available" + Color.RESET);
        }
        Write.Line(0, 28, "[0] To return");
        string choice = Return.Option();

        if (choice == "1" && player.equipmentManager == false && Return.Afford(1000))
        {
            player.equipmentManager = true;
            player.gold            -= 1000;
            Write.Line(0, 24, "You have hired " + Color.NAME + managerNames[0] + Color.RESET + " the" + Color.ITEM + " equipment manager" + Color.RESET);
            Write.KeyPress(0, 28);
        }
        else if (choice == "2" && player.healthManager == false && Return.Afford(1500))
        {
            player.healthManager = true;
            player.gold         -= 1500;
            Write.Line(0, 24, "You have hired " + Color.NAME + managerNames[1] + Color.RESET + " the" + Color.HEALTH + " health manager" + Color.RESET);
            Write.KeyPress(0, 28);
        }
        else if (choice == "3" && player.strengthManager == false && Return.Afford(1500))
        {
            player.strengthManager = true;
            player.gold           -= 1500;
            Write.Line(0, 24, "You have hired " + Color.NAME + managerNames[2] + Color.RESET + " the" + Color.STRENGTH + " fitness instructor" + Color.RESET);
            Write.KeyPress(0, 28);
        }
        else if (choice == "4" && player.offenceManager == false && Return.Afford(1500))
        {
            player.offenceManager = true;
            player.gold          -= 1500;
            Write.Line(0, 24, "You have hired " + Color.NAME + managerNames[3] + Color.RESET + " the" + Color.OFFENCE + " offence coordinator " + Color.RESET);
            Write.KeyPress(0, 28);
        }
        else if (choice == "5" && player.defenceManager == false && Return.Afford(1500))
        {
            player.defenceManager = true;
            player.gold          -= 1500;
            Write.Line(0, 24, "You have hired " + Color.NAME + managerNames[4] + Color.RESET + " the" + Color.DEFENCE + " defence coordinator" + Color.RESET);
            Write.KeyPress(0, 28);
        }
        else if (choice == "6" && player.enduranceManager == false && Return.Afford(1500))
        {
            player.enduranceManager = true;
            player.gold            -= 1500;
            Write.Line(0, 24, "You have hired " + Color.NAME + managerNames[5] + Color.RESET + " the" + Color.ENDURANCE + " conditioning coach " + Color.RESET);
            Write.KeyPress(0, 28);
        }
        else if (choice == "7" && player.prestigeManager == false && Return.Afford(2500))
        {
            player.prestigeManager = true;
            player.gold           -= 2500;
            Write.Line(0, 24, "You have hired " + Color.NAME + managerNames[6] + Color.RESET + " the" + Color.XP + " publicity manager" + Color.RESET);
            Write.KeyPress(0, 28);
        }
        else if (choice == "8" && player.moneyManager == false && Return.Afford(2000))
        {
            player.moneyManager = true;
            player.gold        -= 2000;
            Write.Line(0, 24, "You have hired " + Color.NAME + managerNames[7] + Color.RESET + " the" + Color.GOLD + " fiscal planner" + Color.RESET);
            Write.KeyPress(0, 28);
        }
        else if (choice == "0")
        {
            Gladiators();
        }
        HireManager();
    }
Esempio n. 4
0
    private void Equip(Gladiator g)
    {
        Console.Clear();
        Return.Info();
        Write.Line(20, 6, Colour.NAME + g.Name + Colour.RESET);
        Write.Line(20, 8, Colour.HEALTH + "Wins" + Colour.RESET + $"       { g.Win}");
        Write.Line(20, 9, Colour.DAMAGE + "Strength" + Colour.RESET + $"   {g.Strength}");
        Write.Line(20, 10, Colour.HIT + "Offence" + Colour.RESET + $"    {g.Offence}");
        Write.Line(20, 11, Colour.HIT + "Defence" + Colour.RESET + $"    {g.Defence}");
        Write.Line(20, 12, Colour.SPEAK + "Endurance" + Colour.RESET + $"  {g.Endurance}");
        if (g.Traits.Count > 0)
        {
            Write.Line(20, 14, Colour.ABILITY + $"{g.Trait1}" + Colour.RESET);
        }
        if (g.Traits.Count > 1)
        {
            Write.Line(20, 15, Colour.ABILITY + $"{g.Trait2}" + Colour.RESET);
        }
        if (g.Traits.Count > 2)
        {
            Write.Line(20, 16, Colour.ABILITY + $"{g.Trait3}" + Colour.RESET);
        }
        Write.Line(50, 6, Colour.ITEM + "Head Armor      " + Colour.RESET + $"   {g.Torso.Head.Armor.Name}");
        Write.Line(50, 7, Colour.ITEM + "Torso Armor     " + Colour.RESET + $"   {g.Torso.Armor.Name}");
        Write.Line(50, 8, Colour.ITEM + "Arm Armor       " + Colour.RESET + $"   {g.Torso.RightArm.Armor.Name}");
        Write.Line(50, 9, Colour.ITEM + "Hand Armor      " + Colour.RESET + $"   {g.Torso.RightArm.Hand.Armor.Name}");
        Write.Line(50, 10, Colour.ITEM + "Leg Armor       " + Colour.RESET + $"   {g.Torso.RightLeg.Armor.Name}");
        Write.Line(50, 11, Colour.ITEM + "Main Hand Weapon" + Colour.RESET + $"   {g.Torso.RightArm.Hand.Weapon.Name}  ");
        Write.Line(50, 12, Colour.ITEM + "Off Hand Weapon " + Colour.RESET + $"   {g.Torso.LeftArm.Hand.Weapon.Name} ");
        Write.Line(0, 18, "[1] " + Colour.ITEM + "Upgrade Head Armor      " + Colour.GOLD + $"{armorUpgrade[g.Torso.Head.Armor.Current + 1]}\n" + Colour.RESET);
        Write.Line("[2] " + Colour.ITEM + "Upgrade Torso Armor     " + Colour.GOLD + $"{armorUpgrade[g.Torso.Armor.Current + 1]}" + Colour.RESET);
        Write.Line("[3] " + Colour.ITEM + "Upgrade Arm Armor       " + Colour.GOLD + $"{armorUpgrade[g.Torso.RightArm.Armor.Current + 1]}" + Colour.RESET);
        Write.Line("[4] " + Colour.ITEM + "Upgrade Hand Armor      " + Colour.GOLD + $"{armorUpgrade[g.Torso.RightArm.Hand.Armor.Current + 1]}" + Colour.RESET);
        Write.Line("[5] " + Colour.ITEM + "Upgrade Leg Armor       " + Colour.GOLD + $"{armorUpgrade[g.Torso.RightLeg.Armor.Current + 1]}" + Colour.RESET);
        Write.Line("[M] " + Colour.ITEM + "Upgrade Main Hand       " + Colour.GOLD + $"{armorUpgrade[g.Torso.RightArm.Hand.Weapon.Current + 1]}" + Colour.RESET);
        Write.Line("[O] " + Colour.ITEM + "Upgrade Off Hand        " + Colour.GOLD + $"{armorUpgrade[g.Torso.LeftArm.Hand.Weapon.Current + 1]}" + Colour.RESET);
        Write.Line("[0] " + Colour.TIME + "Return to compound      " + Colour.RESET);

        string choice = Return.Option();

        if (choice == "1")
        {
            if (Return.Afford(armorUpgrade[g.Torso.Head.Armor.Current + 1]))
            {
                g.Torso.Head.Armor = HeadArmor[g.Torso.Head.Armor.Current + 1];
                Owner.p.Gold      -= armorUpgrade[g.Torso.Head.Armor.Current + 1];
                g.Torso.Head.Armor.Current++;
            }
            else
            {
                Write.KeyPress();
            }
        }
        else if (choice == "2")
        {
            if (Return.Afford(armorUpgrade[g.Torso.Armor.Current + 1]))
            {
                g.Torso.Armor = TorsoArmor[g.Torso.Armor.Current + 1];
                Owner.p.Gold -= armorUpgrade[g.Torso.Armor.Current + 1];
                g.Torso.Armor.Current++;
            }
            else
            {
                Write.KeyPress();
            }
        }
        else if (choice == "3")
        {
            if (Return.Afford(armorUpgrade[g.Torso.RightArm.Armor.Current + 1]))
            {
                g.Torso.RightArm.Armor = ArmArmor[g.Torso.RightArm.Armor.Current + 1];
                g.Torso.LeftArm.Armor  = ArmArmor[g.Torso.RightArm.Armor.Current + 1];
                Owner.p.Gold          -= armorUpgrade[g.Torso.RightArm.Armor.Current + 1];
                g.Torso.RightArm.Armor.Current++;
            }
            else
            {
                Write.KeyPress();
            }
        }
        else if (choice == "4")
        {
            if (Return.Afford(armorUpgrade[g.Torso.RightArm.Hand.Armor.Current + 1]))
            {
                g.Torso.RightArm.Hand.Armor = HandArmor[g.Torso.RightArm.Hand.Armor.Current + 1];
                g.Torso.LeftArm.Hand.Armor  = HandArmor[g.Torso.RightArm.Hand.Armor.Current + 1];
                Owner.p.Gold -= armorUpgrade[g.Torso.RightArm.Hand.Armor.Current + 1];
                g.Torso.RightArm.Hand.Armor.Current++;
            }
            else
            {
                Write.KeyPress();
            }
        }
        else if (choice == "5")
        {
            if (Return.Afford(armorUpgrade[g.Torso.RightLeg.Armor.Current + 1]))
            {
                g.Torso.RightLeg.Armor = LegArmor[g.Torso.RightLeg.Armor.Current + 1];
                g.Torso.LeftLeg.Armor  = LegArmor[g.Torso.RightLeg.Armor.Current + 1];
                Owner.p.Gold          -= armorUpgrade[g.Torso.RightLeg.Armor.Current + 1];
                g.Torso.RightLeg.Armor.Current++;
            }
            else
            {
                Write.KeyPress();
            }
        }
        else if (choice == "m")
        {
            if (Return.Afford(weaponUpgrade[g.Torso.RightArm.Hand.Weapon.Current + 1]))
            {
                g.Torso.RightArm.Hand.Weapon = Weapons[g.Torso.RightArm.Hand.Weapon.Current + 1];
                Owner.p.Gold -= weaponUpgrade[g.Torso.RightArm.Hand.Weapon.Current + 1];
                g.Torso.RightArm.Hand.Weapon.Current++;
            }
            else
            {
                Write.KeyPress();
            }
        }
        else if (choice == "o")
        {
            if (Return.Afford(weaponUpgrade[g.Torso.LeftArm.Hand.Weapon.Current + 1]))
            {
                g.Torso.LeftArm.Hand.Weapon = Weapons[g.Torso.LeftArm.Hand.Weapon.Current + 1];
                Owner.p.Gold -= weaponUpgrade[g.Torso.LeftArm.Hand.Weapon.Current + 1];
                g.Torso.LeftArm.Hand.Weapon.Current++;
            }
            else
            {
                Write.KeyPress();
            }
        }
        else if (choice == "0")
        {
            Location.list[2].Go();
        }
        Equip(g);
    }
Esempio n. 5
0
    static void Equip(Gladiator g)
    {
        Console.Clear();
        Return.PlayerInfo();
        Return.GladiatorInfo(g, 50, 3);
        Write.Line(0, 13, $"Head Armor       ");
        Write.Line(0, 14, $"Torso Armor      ");
        Write.Line(0, 15, $"Leg Armor        ");
        Write.Line(0, 17, $"Main Hand Weapon ");
        Write.Line(0, 18, $"Off Hand Weapon  ");
        Return.GladiatorCurrentEquipment(g);
        Return.GladiatorUpgradeEquipment(g);
        Write.Line(40, 24, "Please select the item you would like to Upgrade");
        Write.Line(40, 26, "[0] Return to compound      " + Color.RESET);

        string choice = Return.Option();

        if (choice == "1" && Return.FindUpgrade(EquipmentList.heads, g.head.equipment) != null)
        {
            if (Return.Afford(Return.FindUpgrade(EquipmentList.heads, g.head.equipment).value))
            {
                player.gold     -= Return.FindUpgrade(EquipmentList.heads, g.head.equipment).value;
                g.head.equipment = Return.FindUpgrade(EquipmentList.heads, g.head.equipment).Copy();
            }
        }
        else if (choice == "2" && Return.FindUpgrade(EquipmentList.torsos, g.torso.equipment) != null)
        {
            if (Return.Afford(Return.FindUpgrade(EquipmentList.torsos, g.torso.equipment).value))
            {
                player.gold      -= Return.FindUpgrade(EquipmentList.torsos, g.torso.equipment).value;
                g.torso.equipment = Return.FindUpgrade(EquipmentList.torsos, g.torso.equipment).Copy();
            }
        }
        else if (choice == "3" && Return.FindUpgrade(EquipmentList.legs, g.legs.equipment) != null)
        {
            if (Return.Afford(Return.FindUpgrade(EquipmentList.legs, g.legs.equipment).value))
            {
                player.gold     -= Return.FindUpgrade(EquipmentList.legs, g.legs.equipment).value;
                g.legs.equipment = Return.FindUpgrade(EquipmentList.legs, g.legs.equipment).Copy();
            }
        }
        else if (choice == "m" && Return.FindUpgrade(EquipmentList.weapons, g.rightArm.equipment) != null)
        {
            if (Return.Afford(Return.FindUpgrade(EquipmentList.weapons, g.rightArm.equipment).value))
            {
                player.gold         -= Return.FindUpgrade(EquipmentList.weapons, g.rightArm.equipment).value;
                g.rightArm.equipment = Return.FindUpgrade(EquipmentList.weapons, g.rightArm.equipment).Copy();
            }
        }
        else if (choice == "o" && Return.FindUpgrade(EquipmentList.shields, g.leftArm.equipment) != null)
        {
            if (Return.Afford(Return.FindUpgrade(EquipmentList.shields, g.leftArm.equipment).value))
            {
                player.gold        -= Return.FindUpgrade(EquipmentList.shields, g.leftArm.equipment).value;
                g.leftArm.equipment = Return.FindUpgrade(EquipmentList.shields, g.leftArm.equipment).Copy();
            }
        }
        else if (choice == "0")
        {
            Equipment();
        }
        Equip(g);
    }