Exemplo n.º 1
0
        private void ClearShops()
        {
            if (flags.ExtConsumableSet == ExtConsumableSet.None)
            {
                return;
            }

            foreach (var shop in ShopData.Shops)
            {
                if (shop.Type == ShopType.Weapon)
                {
                    for (int i = 0; i < shop.Entries.Count; i++)
                    {
                        if (shop.Entries[i] == Item.WoodenNunchucks ||
                            shop.Entries[i] == Item.SmallKnife ||
                            shop.Entries[i] == Item.WoodenRod ||
                            shop.Entries[i] == Item.Rapier)
                        {
                            shop.Entries[i] += 4;
                        }
                    }
                }
            }

            ShopData.StoreData();
        }
Exemplo n.º 2
0
        public void KillShops()
        {
            ShopData.LoadData();

            KillShops(ShopType.Weapon, flags.ShopKillMode_Weapons, flags.ShopKillFactor_Weapons, flags.ShopKillExcludeConeria_Weapons);
            KillShops(ShopType.Armor, flags.ShopKillMode_Armor, flags.ShopKillFactor_Armor, flags.ShopKillExcludeConeria_Armor);
            KillShops(ShopType.Item, flags.ShopKillMode_Item, flags.ShopKillFactor_Item, flags.ShopKillExcludeConeria_Item);
            KillShops(ShopType.Black, flags.ShopKillMode_Black, flags.ShopKillFactor_Black, flags.ShopKillExcludeConeria_Black);
            KillShops(ShopType.White, flags.ShopKillMode_White, flags.ShopKillFactor_White, flags.ShopKillExcludeConeria_White);

            ShopData.StoreData();
        }