Пример #1
0
        private void GenerateItems()
        {
            //ArmorName, Defense, Price
            ShopItems.Add(new Armor("Leather", 4, 8));
            ShopItems.Add(new Armor("BreastPlate", 8, 20));
            ShopItems.Add(new Armor("Augmented Chain", 15, 45));
            ShopItems.Add(new Armor("CorosPlate", 25, 60));

            //WeaponName, Strength, Price
            ShopItems.Add(new Weapon("Recurve bow", 3, 9));
            ShopItems.Add(new Weapon("BigAxe", 6, 22));
            ShopItems.Add(new Weapon("XV sword", 19, 49));
            ShopItems.Add(new Weapon("Arming sword", 29, 65));

            //ShieldName, Defense, Price
            ShopItems.Add(new Shield("Wooden Shield", 3, 10));
            ShopItems.Add(new Shield("Battle Shield", 8, 26));
            ShopItems.Add(new Shield("Dragon Shield", 15, 40));

            //PotionName,HealthRestore, Price
            Potions.Add(new Potion("Health Potion", 4, 5));
            Potions.Add(new Potion("Strong Health Potion", 7, 7));
            Potions.Add(new Potion("Great Health Potion", 14, 10));
            Potions.Add(new Potion("Gold Health Potion", 19, 13));
        }
Пример #2
0
        /// <summary>
        /// update the game item category lists
        /// </summary>
        public void UpdateInventoryCategories()
        {
            Potions.Clear();
            Weapons.Clear();
            Treasure.Clear();
            Relics.Clear();

            foreach (var gameItemQuantity in _inventory)
            {
                if (gameItemQuantity.GameItem is Potion)
                {
                    Potions.Add(gameItemQuantity);
                }
                if (gameItemQuantity.GameItem is Weapon)
                {
                    Weapons.Add(gameItemQuantity);
                }
                if (gameItemQuantity.GameItem is Treasure)
                {
                    Treasure.Add(gameItemQuantity);
                }
                if (gameItemQuantity.GameItem is Relic)
                {
                    Relics.Add(gameItemQuantity);
                }
            }
        }
Пример #3
0
 private void PrintPotions()
 {
     while (AttackGears.Count < numberOfAttackGears)
     {
         Potions.Add(PotionFactory.MakePotion(5)); continue;
     }
 }
Пример #4
0
 public void UpdateInventoryCategories()
 {
     Potions.Clear();
     Treasures.Clear();
     Weapons.Clear();
     Allies.Clear();
     foreach (var GameItem in _inventory)
     {
         if (GameItem.GameItem is Potion)
         {
             Potions.Add(GameItem);
         }
         if (GameItem.GameItem is Treasure)
         {
             Treasures.Add(GameItem);
         }
         if (GameItem.GameItem is Weapon)
         {
             Weapons.Add(GameItem);
         }
         if (GameItem.GameItem is Allies)
         {
             Allies.Add(GameItem);
         }
     }
 }
Пример #5
0
 public Inventory Add(Potion w)
 {
     if (Potions.Count >= MaxSize)
     {
         throw new ArgumentOutOfRangeException();
     }
     Potions.Add(w);
     return(this);
 }
Пример #6
0
        private void ParseActions()
        {
            var numberOfActions = int.Parse(Io.ReadLine());

            for (var i = 0; i < numberOfActions; i++)
            {
                var inputs = Io.ReadLine().Split(' ');

                var actionType = ActionTypeExtension.FromString(inputs[1]);
                if (actionType == ActionType.Brew)
                {
                    Potions.Add(new Potion(int.Parse(inputs[0]),
                                           int.Parse(inputs[2]),
                                           int.Parse(inputs[3]),
                                           int.Parse(inputs[4]),
                                           int.Parse(inputs[5]),
                                           int.Parse(inputs[6])));
                }
                else if (actionType == ActionType.Cast)
                {
                    Spells.Add(new Spell(int.Parse(inputs[0]),
                                         int.Parse(inputs[2]),
                                         int.Parse(inputs[3]),
                                         int.Parse(inputs[4]),
                                         int.Parse(inputs[5]),
                                         int.Parse(inputs[9]) != 0,
                                         int.Parse(inputs[10]) != 0));
                }
                else if (actionType == ActionType.OpponentCast)
                {
                    OpponentSpells.Add(new Spell(int.Parse(inputs[0]),
                                                 int.Parse(inputs[2]),
                                                 int.Parse(inputs[3]),
                                                 int.Parse(inputs[4]),
                                                 int.Parse(inputs[5]),
                                                 int.Parse(inputs[9]) != 0,
                                                 int.Parse(inputs[10]) != 0));
                }
                else if (actionType == ActionType.Learn)
                {
                    Scrolls.Add(new Scroll(int.Parse(inputs[0]),
                                           int.Parse(inputs[2]),
                                           int.Parse(inputs[3]),
                                           int.Parse(inputs[4]),
                                           int.Parse(inputs[5]),
                                           int.Parse(inputs[7]),
                                           int.Parse(inputs[10]) != 0));
                }
            }
        }
Пример #7
0
        //update the game item list

        public void UpdateInventoryCategories()
        {
            Potions.Clear();
            MundaneItem.Clear();
            Keys.Clear();

            foreach (var gameItemQuantity in _inventory)
            {
                if (gameItemQuantity.GameItem is Potion)
                {
                    Potions.Add(gameItemQuantity);
                }
                if (gameItemQuantity.GameItem is MundaneItem)
                {
                    MundaneItem.Add(gameItemQuantity);
                }
                if (gameItemQuantity.GameItem is Key)
                {
                    Keys.Add(gameItemQuantity);
                }
            }
        }
        public Activator(Menu attachToMenu)
        {
            AMenu = attachToMenu;

            AMenu = MainMenu.AddMenu("Aka´s Activator", "AkasActivator");
            AMenu.Add("Combo", new CheckBox("Use Items in Combo"));
            AMenu.Add("Harass", new CheckBox("Use Items in Harass"));
            AMenu.Add("LaneClear", new CheckBox("Use Items in LaneClear"));
            AMenu.Add("JungleClear", new CheckBox("Use Items in JungleClear"));
            AMenu.Add("Flee", new CheckBox("Use Items in Flee"));
            Offensive = AMenu.AddSubMenu("Offensive", "Offensive");
            Offensive.AddGroupLabel("Offensive Items");
            Offensive.AddLabel("Blade Of The Ruined King");
            Offensive.Add("botrkManager", new CheckBox("Blade Of The Ruined King"));
            Offensive.Add("botrkManagerMinMeHP", new Slider("Self HP %", 80));
            Offensive.Add("botrkManagerMinEnemyHP", new Slider("Enemy HP HP %", 80));
            Offensive.AddLabel("Cutlass");
            Offensive.Add("cutlassManager", new CheckBox("Cutlass"));
            Offensive.Add("cutlassManagerMinMeHP", new Slider("Self HP %", 80));
            Offensive.Add("cutlassManagerMinEnemyHP", new Slider("Enemy HP HP %", 80));

            if (Player.Instance.IsMelee)
            {
                Offensive.AddLabel("Tiamat");
                Offensive.Add("tiamatManager", new CheckBox("Use Tiamat"));
                Offensive.Add("tiamatManagerMinMeHP", new Slider("Self HP %", 99));
                Offensive.Add("tiamatManagerMinEnemyHP", new Slider("Enemy HP HP %", 99));
                Offensive.AddLabel("Hydra");
                Offensive.Add("hydraManager", new CheckBox("Use Hydra"));
                Offensive.Add("hydraManagerMinMeHP", new Slider("Self HP %", 99));
                Offensive.Add("hydraManagerMinEnemyHP", new Slider("Enemy HP HP %", 99));
            }

            Offensive.AddLabel("Gunblade");
            Offensive.Add("gunbladeManager", new CheckBox("Use Gunblade"));
            Offensive.Add("gunbladeManagerMinMeHP", new Slider("Self HP %", 99));
            Offensive.Add("gunbladeManagerMinEnemyHP", new Slider("Enemy HP HP %", 99));
            Offensive.AddLabel("GhostBlade");
            Offensive.Add("ghostbladeManager", new CheckBox("Use GhostBlade"));
            Offensive.Add("ghostbladeManagerMinMeHP", new Slider("Self HP %", 99));
            Offensive.Add("ghostbladeManagerMinEnemyHP", new Slider("Enemy HP HP %", 99));

            Potions = AMenu.AddSubMenu("Potions", "potions");
            Potions.AddGroupLabel("Potion Items");
            Potions.Add("healthPotionManager", new CheckBox("Health Potion"));
            Potions.Add("healthPotionManagerMinMeHP", new Slider("Min HP %", 65));
            Potions.AddSeparator();
            Potions.Add("biscuitPotionManager", new CheckBox("Biscuit"));
            Potions.Add("biscuitPotionManagerMinMeHP", new Slider("Min HP %", 65));
            Potions.AddSeparator();
            Potions.Add("refillPotManager", new CheckBox("Refill Potion"));
            Potions.Add("refillPotManagerMinMeHP", new Slider("Min HP %", 60));
            Potions.AddSeparator();
            Potions.Add("corruptpotManager", new CheckBox("Corrupt Potion"));
            Potions.Add("corruptpotManagerMinMeHP", new Slider("Min HP %", 60));
            Potions.Add("corruptpotManagerMinMeMana", new Slider("Min Mana %", 30));
            Potions.AddSeparator();
            Potions.Add("huntersPotManager", new CheckBox("Hunter's Potion"));
            Potions.Add("huntersPotManagerMinMeHP", new Slider("Min HP %", 60));
            Potions.Add("huntersPotManagerMinMeMana", new Slider("Min Mana %", 30));

            Qss = AMenu.AddSubMenu("Qss", "qss");
            Qss.AddGroupLabel("Qss Settings");
            Qss.Add("Polymorph", new CheckBox("Polymorph"));
            Qss.Add("Stun", new CheckBox("Stun"));
            Qss.Add("Taunt", new CheckBox("Taunt"));
            Qss.Add("Knockup", new CheckBox("Knock-up"));
            Qss.Add("Fear", new CheckBox("Fear"));
            Qss.Add("Snare", new CheckBox("Snare"));
            Qss.Add("Slow", new CheckBox("Slow"));
            Qss.Add("Blind", new CheckBox("Blind"));
            Qss.Add("Silence", new CheckBox("Silence"));
            Qss.Add("Charm", new CheckBox("Charm"));
            Qss.Add("Suppression", new CheckBox("Suppression"));
            Qss.Add("delay", new Slider("Activation Delay", 1000, 0, 2000));
            Qss.AddSeparator();
            Qss.AddLabel("Cleanse Items / Summoner Spell");
            Qss.Add("mikaelsCleanser", new CheckBox("Mikael's Cruicble"));
            Qss.Add("mercurialScimitarCleanser", new CheckBox("Mercurial Scimitar"));
            Qss.Add("quicksilverSashCleanser", new CheckBox("Quicksilver Sash"));
            Qss.Add("summonerSpellCleanse", new CheckBox("Summoner Cleanse"));

            Defensive = AMenu.AddSubMenu("Defensive Items", "defmenuactiv");
            Defensive.AddGroupLabel("Shield/Heal Items (self)");
            Defensive.Add("Archangels_Staff", new CheckBox("Serahph's Embrace"));
            Defensive.AddGroupLabel("Shield/Heal Items (ally/self)");
            Defensive.Add("Mikaels_Crucible_Heal", new CheckBox("Mikaels Crucible"));
            Defensive.AddLabel("Locket of the Iron Solari");
            Defensive.Add("Locket_of_the_Iron_Solari", new CheckBox("Locket of the Iron Solari"));
            Defensive.AddSeparator(0);
            Defensive.Add("Locket_of_the_Iron_Solari_ally", new CheckBox("Ally"));
            Defensive.Add("Locket_of_the_Iron_Solari_self", new CheckBox("Self"));
            Defensive.AddLabel("Face of the Mountain");
            Defensive.Add("Face_of_the_Mountain", new CheckBox("Face of the Mountain"));
            Defensive.AddSeparator(0);
            Defensive.Add("Face_of_the_Mountain_ally", new CheckBox("Ally"));
            Defensive.Add("Face_of_the_Mountain_self", new CheckBox("Self"));

            Sums = AMenu.AddSubMenu("Summoners", "sums");
            Sums.AddLabel("Heal");
            Sums.Add("healManager", new CheckBox("Use Heal"));
            Sums.Add("healManagerMinMeHP", new Slider("Self HP %", 30));
            Sums.Add("healManagerMinEnemyHP", new Slider("Enemy HP HP %", 30));
            Sums.AddLabel("Ignite");
            Sums.Add("igniteManager", new CheckBox("Use Ignite"));
            Sums.AddLabel("Barrier");
            Sums.Add("barrierManager", new CheckBox("Use Barrier"));
            Sums.Add("barrierManagerMinMeHP", new Slider("Self HP %", 30));
            Sums.Add("barrierManagerMinEnemyHP", new Slider("Enemy HP HP %", 30));

            SmiteMenu = AMenu.AddSubMenu("Smite Settings");
            SmiteMenu.AddGroupLabel("Camps");
            SmiteMenu.AddLabel("Epics");
            SmiteMenu.Add("SRU_Baron", new CheckBox("Baron"));
            SmiteMenu.Add("SRU_Dragon", new CheckBox("Dragon"));
            SmiteMenu.AddLabel("Buffs");
            SmiteMenu.Add("SRU_Blue", new CheckBox("Blue"));
            SmiteMenu.Add("SRU_Red", new CheckBox("Red"));
            SmiteMenu.AddLabel("Small Camps");
            SmiteMenu.Add("SRU_Gromp", new CheckBox("Gromp", false));
            SmiteMenu.Add("SRU_Murkwolf", new CheckBox("Murkwolf", false));
            SmiteMenu.Add("SRU_Krug", new CheckBox("Krug", false));
            SmiteMenu.Add("SRU_Razorbeak", new CheckBox("Razerbeak", false));
            SmiteMenu.Add("Sru_Crab", new CheckBox("Skuttles", false));
            SmiteMenu.AddSeparator();
            SmiteMenu.Add("smiteActive",
                          new KeyBind("Smite Active (toggle)", true, KeyBind.BindTypes.PressToggle, 'M'));
            SmiteMenu.AddSeparator();
            SmiteMenu.Add("useSlowSmite", new CheckBox("KS with Slow Smite"));
            SmiteMenu.Add("comboWithDuelSmite", new CheckBox("Combo With Duel Smite"));

            Smite                   = new Spell.Targeted(ObjectManager.Player.GetSpellSlotFromName("summonersmite"), 500);
            Game.OnUpdate          += GameOnOnUpdate;
            Obj_AI_Base.OnBuffGain += Obj_AI_Base_OnBuffGain;
        }
Пример #9
0
 public void AddItem(Potion potion) => Potions.Add(potion);
Пример #10
0
 public void addPotion(Potion p)
 {
     Potions.Add(p);
 }