Beispiel #1
0
        public void Init()
        {
            // Arrange
            b1 = new Book("1");
            b2 = new Book("2", "Falling in Love with Yourself");
            b3 = new Book("3", "Spirits in the Night", 123.55);

            a1 = new Amulet("11");
            a2 = new Amulet("12", Level.high);
            a3 = new Amulet("13", Level.low, "Capricorn");

            c1 = new Course("Eufori med røg");
            c2 = new Course("Nuru Massage using Chia Oil", 157);

            courses = new CourseRepository();
            books   = new BookRepository();
            amulets = new AmuletRepository();

            // Act
            books.AddBook(b1);
            books.AddBook(b2);
            books.AddBook(b3);

            amulets.AddAmulet(a1);
            amulets.AddAmulet(a2);
            amulets.AddAmulet(a3);

            courses.AddCourse(c1);
            courses.AddCourse(c2);
        }
Beispiel #2
0
 public IceAmulet(string name, Amulet amulet, int points, int cost)
 {
     this.Name   = name;
     this.Amulet = amulet;
     this.Points = points;
     this.Cost   = cost;
 }
Beispiel #3
0
        public void Init()
        {
            // Arrange

            b1 = new Book("1");
            b2 = new Book("2", "Falling in Love with Yourself");
            b3 = new Book("3", "Spirits in the Night", 123.55);

            a1 = new Amulet("11");
            a2 = new Amulet("12", Level.high);
            a3 = new Amulet("13", Level.low, "Capricorn");

            c1 = new Course("Eufori med røg");
            c2 = new Course("Nuru Massage using Chia Oil", 157);

            controller = new Controller();

            controller.AddToList(b1);
            controller.AddToList(b2);
            controller.AddToList(b3);

            controller.AddToList(a1);
            controller.AddToList(a2);
            controller.AddToList(a3);

            controller.AddToList(c1);
            controller.AddToList(c2);
        }
Beispiel #4
0
        /// <inheritdoc />
        public Trinket Convert(ItemDTO value, object state)
        {
            var entity = new Amulet();

            this.Merge(entity, value, state);
            return(entity);
        }
 public void AddAmulet(string id)
 {
     Amulet x = new Amulet();
     x.ID = id;
     x.Description = "An ammy";
     Amulets.Add(x);
 }
Beispiel #6
0
        public void VipersAmulet_HasExpectedValues()
        {
            // Arrange
            var attributes = new List <ItemStatAttribute>
            {
                new ItemStatAttribute("Power", .3m),
                new ItemStatAttribute("ConditionDamage", .3m),
                new ItemStatAttribute("Precision", .165m),
                new ItemStatAttribute("Expertise", .165m)
            };

            // Act
            var actual = new Amulet(attributes);

            // Assert
            const int expectedPower           = 133;
            const int expectedConditionDamage = 133;
            const int expectedPrecision       = 71;
            const int expectedExpertise       = 71;

            Assert.AreEqual(expectedPower, actual.Power);
            Assert.AreEqual(expectedConditionDamage, actual.ConditionDamage);
            Assert.AreEqual(expectedPrecision, actual.Precision);
            Assert.AreEqual(expectedExpertise, actual.Expertise);
        }
Beispiel #7
0
        public void Init()
        {
            repo = new ValuableRepository();

            b1 = new Book("1");
            b2 = new Book("2", "Falling in Love with Yourself");
            b3 = new Book("3", "Spirits in the Night", 123.55);
            repo.AddValuable(b1);
            repo.AddValuable(b2);
            repo.AddValuable(b3);


            a11 = new Amulet("11");
            a12 = new Amulet("12", Level.high);
            a13 = new Amulet("13", Level.low, "Capricorn");
            repo.AddValuable(a11);
            repo.AddValuable(a12);
            repo.AddValuable(a13);

            c111 = new Course("Eufori med røg");
            c112 = new Course("Nuru Massage using Chia Oil", 1);
            c113 = new Course("Mit møde med mig", 157);
            repo.AddValuable(c111);
            repo.AddValuable(c112);
            repo.AddValuable(c113);
        }
			public static bool Parse(ref Tokenizer tokenizer, out Amulet result) {
				tokenizer.Expect(TokenName.OPEN_PARENTHESIS);
				List < int > temp;
				result = new Amulet();
				result.effects = new List < Effect > ();
				result.jewel_ids = new List < int > ();
				if (tokenizer.ExpectIntegerList(out temp)) {
					if (temp.Count >= 2) {
						Effect effect = new Effect();
						effect.skill_id = temp[0];
						effect.points = temp[1];
						result.effects.Add(effect);
					}
					if (temp.Count >= 4) {
						Effect effect = new Effect();
						effect.skill_id = temp[2];
						effect.points = temp[3];
						result.effects.Add(effect);
					}
				} else {
					return false;
				}

				if (!tokenizer.ExpectIntegerList(out result.jewel_ids)) {
					return false;
				}
				return tokenizer.Expect(TokenName.CLOSE_PARENTHESIS);
			}
Beispiel #9
0
        public static void Main()
        {
            Debug.Print("Starting Amulet library program...");
            Amulet amulet = new Amulet("COM1", 115200, Amulet.AmuletSlaveResponseType.AckOnly, new AmuletTestClient());

            Thread.Sleep(System.Threading.Timeout.Infinite);
            //amulet.Dispose();
        }
        void LoadAmulet(XElement itemNode)
        {
            var name = (string)itemNode.Attribute("name");
            var color = ColorTranslator.FromHtml(itemNode.Attribute("color").Value);
            var newAmulet = new Amulet(50f, 50f, name, color, GetComponentsInItem(itemNode), new List<string>());

            items.Add(newAmulet);
        }
    public void AddAmulet(string id)
    {
        Amulet x = new Amulet();

        x.ID          = id;
        x.Description = "An ammy";
        Amulets.Add(x);
    }
 public EquipSet() //Creates a "blank" equipment set
 {
     EquippedHead      = new Head();
     EquippedOutfit    = new Outfit();
     EquippedAmulet    = new Amulet();
     EquippedAccessory = new Accessory();
     EquippedWeapon    = new Weapon();
     EquippedOffHand   = new OffHand();
 }
        }                                            // .OHPrimaryBonus .OHResourceBonus .OHBonus (powerfist: min max damage, armguard: block, tome: skill damage, orb: resist, lasso: hit,
                                                     //powder: dodge)

        public EquipSet(Head equippedHead, Outfit equippedOutfit, Amulet equippedAmulet, Accessory equippedAccessory, Weapon equippedWeapon, OffHand equippedOffHand)
        {
            EquippedHead      = equippedHead;
            EquippedOutfit    = equippedOutfit;
            EquippedAmulet    = equippedAmulet;
            EquippedAccessory = equippedAccessory;
            EquippedWeapon    = equippedWeapon;
            EquippedOffHand   = equippedOffHand;
        }
Beispiel #14
0
 private void AmuletSet(Amulet amulet, int id, Texture2D icon, string name, string descrip, float stam, float hpregen)
 {
     amulet.amuletID      = id;
     amulet.amuletIcon    = icon;
     amulet.amuletName    = name;
     amulet.amuletDescrip = descrip;
     amulet.healthRegen   = hpregen;
     amulet.stamRegen     = stam;
 }
Beispiel #15
0
        public void Init()
        {
            b1 = new Book("1");
            b2 = new Book("2", "Falling in Love with Yourself");
            b3 = new Book("3", "Spirits in the Night", 123.55);

            a11 = new Amulet("11");
            a12 = new Amulet("12", Level.high);
            a13 = new Amulet("13", Level.low, "Capricorn");
        }
        public Item CrazedOutlawLoot()
        {
            Item returnData;

            int agility, strength, intelligence, armor, health, critChance, critDamage, requiredLevel, worth;

            agility       = strength = intelligence = 0;
            armor         = 32;
            health        = 40;
            critDamage    = 5;
            critChance    = 2;
            requiredLevel = GameState.Hero.level;
            worth         = 100;
            string armorType = "";
            string name      = "Amulet of the Damned";

            switch (GameState.Hero.Profession.Name)
            {
            case "Hunter":
                agility   = 40;
                armorType = "Leather";
                break;

            case "Rogue":
                agility   = 40;
                armorType = "Leather";
                break;

            case "Warrior":
                strength  = 40;
                armorType = "Mail";
                break;

            case "Guardian":
                strength  = 40;
                armorType = "Mail";
                break;

            case "Mage":
                intelligence = 40;
                armorType    = "Cloth";
                break;

            case "Cleric":
                intelligence = 40;
                armorType    = "Cloth";
                break;
            }

            returnData = new Amulet(name, armorType, armor, strength, agility, intelligence, health, 0, 0, requiredLevel, critChance, critDamage, worth);

            return(returnData);
        }
Beispiel #17
0
        public void Init()
        {
            b1 = new Book("1");
            b2 = new Book("2", "Falling in Love with Yourself");
            b3 = new Book("3", "Spirits in the Night", 123.55);

            a11  = new Amulet("11");
            a12  = new Amulet("12", Level.high);
            a13  = new Amulet("13", Level.low, "Capricorn");
            c111 = new Course("Eufori med røg");
            c112 = new Course("Nuru Massage using Chia Oil", 157);
        }
	void recreateItem(){
		if(selectedItem == healthIndex){
			sell[selectedItem] = new HealthPotion();
		}
		else if(selectedItem == manaIndex){
			sell[selectedItem] = new ManaPotion();
		}
		else if(selectedItem == amuletIndex){
			sell[selectedItem] = new Amulet();
		}
		else if(selectedItem == ringIndex){
			sell[selectedItem] = new Ring();
		}
	}
Beispiel #19
0
        public static double GetValueOfAmulet(Amulet amulet)
        {
            switch (amulet.Quality)
            {
            case Level.low:
                return(12.5);

            case Level.medium:
                return(20.0);

            case Level.high:
                return(27.5);
            }
            return(0);
        }
Beispiel #20
0
 public void Dispose()
 {
     Armor.Dispose();
     MainHand.Dispose();
     OffHand.Dispose();
     Ring.Dispose();
     Ring2.Dispose();
     Amulet.Dispose();
     Helm.Dispose();
     Gloves.Dispose();
     Boots.Dispose();
     Belt.Dispose();
     Flasks.ForEach(vm => vm.Dispose());
     TreeJewels.ForEach(vm => vm.Dispose());
     ItemJewels.Values.Flatten().ForEach(vm => vm.Dispose());
 }
 public void SetAmulet(ItemWearable item)
 {
     if (item != null && item.wearableType != ItemWearable.WearableTypes.Amulet)
     {
         return;
     }
     if (Amulet != null)
     {
         Amulet.Deactivate();
     }
     Amulet = item;
     if (onSetWearable != null)
     {
         onSetWearable(item);
     }
 }
Beispiel #22
0
        private void CreateAmulets()
        {
            Amulet newAmulet = new Amulet();

            newAmulet.name        = "Nothing";
            newAmulet.description = "You've been crazy thinking that your neck was an amulet";
            amuletList.Add(newAmulet);
            //
            newAmulet             = new Amulet();
            newAmulet.name        = "Taffy's tin can on a string";
            newAmulet.description = "You'd be surprised with the power a tin can holds";
            newAmulet.defense     = 5;
            newAmulet.magic       = 100;
            amuletList.Add(newAmulet);
            //
            newAmulet             = new Amulet();
            newAmulet.name        = "Ender's Pearls";
            newAmulet.defense     = 5;
            newAmulet.description = "Haha funny minecraft reference";
            newAmulet.magic       = 25;
            amuletList.Add(newAmulet);
        }
Beispiel #23
0
        public void BerserkersAmulet_HasExpectedValues()
        {
            // Arrange
            var attributes = new List <ItemStatAttribute>
            {
                new ItemStatAttribute("Power", .35m),
                new ItemStatAttribute("Precision", .25m),
                new ItemStatAttribute("Ferocity", .25m)
            };

            // Act
            var actual = new Amulet(attributes);

            // Assert
            const int expectedPower     = 157;
            const int expectedPrecision = 108;
            const int expectedFerocity  = 108;

            Assert.AreEqual(expectedPower, actual.Power);
            Assert.AreEqual(expectedPrecision, actual.Precision);
            Assert.AreEqual(expectedFerocity, actual.Ferocity);
        }
Beispiel #24
0
        public void Init()
        {
            b1 = new Book("No. B1");
            b2 = new Book("No. B2", "Falling in Love with Yourself");
            b3 = new Book("No. B3", "Spirits in the Night", 123.55);
            a1 = new Amulet("No. A1");
            a2 = new Amulet("No. A2", Level.high);
            a3 = new Amulet("No. A3", Level.low, "Modern");
            c1 = new Course("Basis kursus");
            c2 = new Course("Kursus 2", 128);

            vr1 = new ValuableRepository();
            vr1.AddValuable(b1);
            vr1.AddValuable(a1);
            vr1.AddValuable(b2);
            vr1.AddValuable(a3);
            vr1.AddValuable(c1);
            vr1.AddValuable(b3);
            vr1.AddValuable(a2);
            vr1.AddValuable(c2);

            vr2 = new ValuableRepository();

            if (File.Exists("ValuableRepository.txt"))
            {
                File.Delete("ValuableRepository.txt");
            }
            if (File.Exists("TestFile01.txt"))
            {
                File.Delete("TestFile01.txt");
            }
            if (File.Exists("TestFile02.txt"))
            {
                File.Delete("TestFile02.txt");
            }
        }
            public static bool Parse(ref Tokenizer tokenizer, out Amulet result)
            {
                tokenizer.Expect(TokenName.OPEN_PARENTHESIS);
                List <int> temp;

                result           = new Amulet();
                result.effects   = new List <Effect> ();
                result.jewel_ids = new List <int> ();
                if (tokenizer.ExpectIntegerList(out temp))
                {
                    if (temp.Count >= 2)
                    {
                        Effect effect = new Effect();
                        effect.skill_id = temp[0];
                        effect.points   = temp[1];
                        result.effects.Add(effect);
                    }
                    if (temp.Count >= 4)
                    {
                        Effect effect = new Effect();
                        effect.skill_id = temp[2];
                        effect.points   = temp[3];
                        result.effects.Add(effect);
                    }
                }
                else
                {
                    return(false);
                }

                if (!tokenizer.ExpectIntegerList(out result.jewel_ids))
                {
                    return(false);
                }
                return(tokenizer.Expect(TokenName.CLOSE_PARENTHESIS));
            }
	public void recreateEquipItem(int x, int y, int i){
		Item item;
		if(PlayerPrefs.GetString("Equiped Item type" + i) == "Axe"){
			item = new Axe();
			item.useItem(player);
			//add item to axe slot
		}
		else if(PlayerPrefs.GetString("Equiped Item type" + i) == "Ring"){
			item = new Ring();
			item.useItem(player);
			//add item to ring slot);
		}
		else if(PlayerPrefs.GetString("Equiped Item type" + i) == "Chest"){
			item = new Chest();
			item.useItem(player);
			//add item to chest slot
		}
		else if(PlayerPrefs.GetString("Equiped Item type" + i) == "Boots"){
			item = new Boots();
			item.useItem(player);
			//add item to boots slot
		}
		else if(PlayerPrefs.GetString("Equiped Item type" + i) == "Amulet"){
			item = new Amulet();
			item.useItem(player);
			//add item to amulet slot
		}
		else if(PlayerPrefs.GetString("Equiped Item type" + i) == "Sword"){
			item = new Sword();
			item.useItem(player);
			//add item to sword slot
		}
	}
Beispiel #27
0
        // Add the item to the drop list
        private void buttonAdd_Click(object sender, EventArgs e)
        {
            int dropChance;

            int.TryParse(textBoxItemOdds.Text, out dropChance);

            if (dropChance < 1)
            {
                dropChance = 1;
            }

            string quest = QuestOnlyCheckBox.Checked ? "Q" : "";

            try
            {
                switch (tabControlSeperateItems.SelectedTab.Tag.ToString())
                {
                case "Weapon":
                    Weapon.Add(new DropItem {
                        Name = listBoxWeapon.SelectedItem.ToString().Replace(" ", string.Empty), Odds = string.Format("1/{0}", dropChance), Quest = quest
                    });
                    break;

                case "Armour":
                    Armour.Add(new DropItem {
                        Name = listBoxArmour.SelectedItem.ToString().Replace(" ", string.Empty), Odds = string.Format("1/{0}", dropChance), Quest = quest
                    });
                    break;

                case "Helmet":
                    Helmet.Add(new DropItem {
                        Name = listBoxHelmet.SelectedItem.ToString().Replace(" ", string.Empty), Odds = string.Format("1/{0}", dropChance), Quest = quest
                    });
                    break;

                case "Necklace":
                    Necklace.Add(new DropItem {
                        Name = listBoxNecklace.SelectedItem.ToString().Replace(" ", string.Empty), Odds = string.Format("1/{0}", dropChance), Quest = quest
                    });
                    break;

                case "Bracelet":
                    Bracelet.Add(new DropItem {
                        Name = listBoxBracelet.SelectedItem.ToString().Replace(" ", string.Empty), Odds = string.Format("1/{0}", dropChance), Quest = quest
                    });
                    break;

                case "Ring":
                    Ring.Add(new DropItem {
                        Name = listBoxRing.SelectedItem.ToString().Replace(" ", string.Empty), Odds = string.Format("1/{0}", dropChance), Quest = quest
                    });
                    break;

                case "Amulet":
                    Amulet.Add(new DropItem {
                        Name = listBoxAmulet.SelectedItem.ToString().Replace(" ", string.Empty), Odds = string.Format("1/{0}", dropChance), Quest = quest
                    });
                    break;

                case "Belt":
                    Belt.Add(new DropItem {
                        Name = listBoxBelt.SelectedItem.ToString().Replace(" ", string.Empty), Odds = string.Format("1/{0}", dropChance), Quest = quest
                    });
                    break;

                case "Boots":
                    Boot.Add(new DropItem {
                        Name = listBoxBoot.SelectedItem.ToString().Replace(" ", string.Empty), Odds = string.Format("1/{0}", dropChance), Quest = quest
                    });
                    break;

                case "Stone":
                    Stone.Add(new DropItem {
                        Name = listBoxStone.SelectedItem.ToString().Replace(" ", string.Empty), Odds = string.Format("1/{0}", dropChance), Quest = quest
                    });
                    break;

                case "Torch":
                    Torch.Add(new DropItem {
                        Name = listBoxTorch.SelectedItem.ToString().Replace(" ", string.Empty), Odds = string.Format("1/{0}", dropChance), Quest = quest
                    });
                    break;

                case "Potion":
                    Potion.Add(new DropItem {
                        Name = listBoxPotion.SelectedItem.ToString().Replace(" ", string.Empty), Odds = string.Format("1/{0}", dropChance), Quest = quest
                    });
                    break;

                case "Ore":
                    Ore.Add(new DropItem {
                        Name = listBoxOre.SelectedItem.ToString().Replace(" ", string.Empty), Odds = string.Format("1/{0}", dropChance), Quest = quest
                    });
                    break;

                case "Meat":
                    Meat.Add(new DropItem {
                        Name = listBoxMeat.SelectedItem.ToString().Replace(" ", string.Empty), Odds = string.Format("1/{0}", dropChance), Quest = quest
                    });
                    break;

                case "CraftingMaterial":
                    CraftingMaterial.Add(new DropItem {
                        Name = listBoxCraftingMaterial.SelectedItem.ToString().Replace(" ", string.Empty), Odds = string.Format("1/{0}", dropChance)
                    });
                    break;

                case "Scroll":
                    Scrolls.Add(new DropItem {
                        Name = listBoxScroll.SelectedItem.ToString().Replace(" ", string.Empty), Odds = string.Format("1/{0}", dropChance), Quest = quest
                    });
                    break;

                case "Gem":
                    Gem.Add(new DropItem {
                        Name = listBoxGem.SelectedItem.ToString().Replace(" ", string.Empty), Odds = string.Format("1/{0}", dropChance), Quest = quest
                    });
                    break;

                case "Mount":
                    Mount.Add(new DropItem {
                        Name = listBoxMount.SelectedItem.ToString().Replace(" ", string.Empty), Odds = string.Format("1/{0}", dropChance), Quest = quest
                    });
                    break;

                case "Book":
                    Book.Add(new DropItem {
                        Name = listBoxBook.SelectedItem.ToString().Replace(" ", string.Empty), Odds = string.Format("1/{0}", dropChance), Quest = quest
                    });
                    break;

                case "Nothing":
                    Nothing.Add(new DropItem {
                        Name = listBoxNothing.SelectedItem.ToString().Replace(" ", string.Empty), Odds = string.Format("1/{0}", dropChance), Quest = quest
                    });
                    break;

                case "Script":
                    Script.Add(new DropItem {
                        Name = listBoxScript.SelectedItem.ToString().Replace(" ", string.Empty), Odds = string.Format("1/{0}", dropChance), Quest = quest
                    });
                    break;

                case "Reins":
                    Reins.Add(new DropItem {
                        Name = listBoxReins.SelectedItem.ToString().Replace(" ", string.Empty), Odds = string.Format("1/{0}", dropChance), Quest = quest
                    });
                    break;

                case "Bells":
                    Bells.Add(new DropItem {
                        Name = listBoxBells.SelectedItem.ToString().Replace(" ", string.Empty), Odds = string.Format("1/{0}", dropChance), Quest = quest
                    });
                    break;

                case "Saddle":
                    Saddle.Add(new DropItem {
                        Name = listBoxSaddle.SelectedItem.ToString().Replace(" ", string.Empty), Odds = string.Format("1/{0}", dropChance), Quest = quest
                    });
                    break;

                case "Ribbon":
                    Ribbon.Add(new DropItem {
                        Name = listBoxRibbon.SelectedItem.ToString().Replace(" ", string.Empty), Odds = string.Format("1/{0}", dropChance), Quest = quest
                    });
                    break;

                case "Mask":
                    Mask.Add(new DropItem {
                        Name = listBoxMask.SelectedItem.ToString().Replace(" ", string.Empty), Odds = string.Format("1/{0}", dropChance), Quest = quest
                    });
                    break;

                case "Food":
                    Food.Add(new DropItem {
                        Name = listBoxFood.SelectedItem.ToString().Replace(" ", string.Empty), Odds = string.Format("1/{0}", dropChance), Quest = quest
                    });
                    break;

                case "Hook":
                    Hook.Add(new DropItem {
                        Name = listBoxHook.SelectedItem.ToString().Replace(" ", string.Empty), Odds = string.Format("1/{0}", textBoxItemOdds.Text), Quest = quest
                    });
                    break;

                case "Float":
                    Float.Add(new DropItem {
                        Name = listBoxFloat.SelectedItem.ToString().Replace(" ", string.Empty), Odds = string.Format("1/{0}", textBoxItemOdds.Text), Quest = quest
                    });
                    break;

                case "Bait":
                    Bait.Add(new DropItem {
                        Name = listBoxBait.SelectedItem.ToString().Replace(" ", string.Empty), Odds = string.Format("1/{0}", textBoxItemOdds.Text), Quest = quest
                    });
                    break;

                case "Finder":
                    Finder.Add(new DropItem {
                        Name = listBoxFinder.SelectedItem.ToString().Replace(" ", string.Empty), Odds = string.Format("1/{0}", textBoxItemOdds.Text), Quest = quest
                    });
                    break;

                case "Reel":
                    Reel.Add(new DropItem {
                        Name = listBoxReel.SelectedItem.ToString().Replace(" ", string.Empty), Odds = string.Format("1/{0}", textBoxItemOdds.Text), Quest = quest
                    });
                    break;

                case "Fish":
                    Fish.Add(new DropItem {
                        Name = listBoxFish.SelectedItem.ToString().Replace(" ", string.Empty), Odds = string.Format("1/{0}", textBoxItemOdds.Text), Quest = quest
                    });
                    break;

                case "Quest":
                    Quest.Add(new DropItem {
                        Name = listBoxQuest.SelectedItem.ToString().Replace(" ", string.Empty), Odds = string.Format("1/{0}", textBoxItemOdds.Text), Quest = quest
                    });
                    break;
                }

                UpdateDropFile();
            }
            catch
            {
                //No item selected when trying to add an item to the drop
            }
        }
            public static bool Parse(ref Tokenizer tokenizer, out ArmorSet answer)
            {
                answer = new ArmorSet();
                if (!tokenizer.Expect(TokenName.OPEN_PARENTHESIS))
                {
                    return(false);
                }

                do
                {
                    Instruction instruction = ReadInstruction(ref tokenizer);
                    switch (instruction)
                    {
                    case Instruction.GEAR:
                        if (!ArmorSetPiece.Parse(ref tokenizer, out answer.gear))
                        {
                            return(false);
                        }
                        answer.weapon_slots = answer.gear.id;
                        break;

                    case Instruction.HEAD:
                        if (!ArmorSetPiece.Parse(ref tokenizer, out answer.head))
                        {
                            return(false);
                        }
                        break;

                    case Instruction.BODY:
                        if (!ArmorSetPiece.Parse(ref tokenizer, out answer.body))
                        {
                            return(false);
                        }
                        break;

                    case Instruction.ARMS:
                        if (!ArmorSetPiece.Parse(ref tokenizer, out answer.arms))
                        {
                            return(false);
                        }
                        break;

                    case Instruction.WAIST:
                        if (!ArmorSetPiece.Parse(ref tokenizer, out answer.waist))
                        {
                            return(false);
                        }
                        break;

                    case Instruction.LEGS:
                        if (!ArmorSetPiece.Parse(ref tokenizer, out answer.legs))
                        {
                            return(false);
                        }
                        break;

                    case Instruction.AMULET:
                        if (!Amulet.Parse(ref tokenizer, out answer.amulet))
                        {
                            return(false);
                        }
                        break;

                    case Instruction.COMPLETE:
                        return(true);

                    default:
                        return(false);
                    }
                } while (!tokenizer.Empty());

                return(false);
            }
Beispiel #29
0
        public void Wear(Amulet a, Level currentLevel)
        {
            if (amulet != null)
            {
                inventory.Add(new Amulet(amulet));
                message.Add("You take off the " + amulet.name + " and wear the " + a.name + ".");
            }
            else
                message.Add("You wear the " + a.name + ".");

            amulet = a;
            inventory.Remove(a);
            Affect(a.effect, currentLevel);
        }
Beispiel #30
0
 // Implement this method in a buddy class to set properties that are specific to 'Amulet' (if any)
 partial void Merge(Amulet entity, ItemDTO dto, object state);
Beispiel #31
0
        public static void BuyItems()
        {
            bool          goAgain = false;
            VendoredItems vendor  = new VendoredItems();

            do
            {
                List <Item> itemsToBuy = new List <Item>();
                Item        aWeapon    = new Weapon();
                Item        aArmor     = new Armor();
                Item        aHelmet    = new Helmet();
                Item        aAmulet    = new Amulet();
                Item        aPotion    = new Potion();

                for (int counter = 0; counter < 4; counter++)
                {
                    if (GameState.Hero.level >= 1 && GameState.Hero.level <= 5)
                    {
                        aWeapon = vendor.GetWeapon("Slightly Broken", "Chipped", "Simple", 1, 6, 1, 6);
                        aArmor  = vendor.GetArmor("Rusted", "Torn", "Patched", 1, 6, 1, 6);
                        aHelmet = vendor.GetHelmet("Rusted", "Torn", "Patched", 1, 6, 1, 6);
                        aAmulet = vendor.GetAmulet("Rusted", "Chipped", "Cracked", 1, 6, 1, 6);
                        aPotion = vendor.GetPotion("Old", 1, 11, 1, 251, 1, 11);
                        itemsToBuy.Add(aWeapon);
                        itemsToBuy.Add(aArmor);
                        itemsToBuy.Add(aHelmet);
                        itemsToBuy.Add(aAmulet);
                        itemsToBuy.Add(aPotion);
                    }
                    if (GameState.Hero.level >= 6 && GameState.Hero.level <= 10)
                    {
                        aWeapon = vendor.GetWeapon("Worn", "Dull", "Old", 5, 16, 5, 11);
                        aArmor  = vendor.GetArmor("Worn", "Dull", "Old", 5, 16, 5, 11);
                        aHelmet = vendor.GetHelmet("Worn", "Dull", "Old", 5, 16, 5, 11);
                        aAmulet = vendor.GetAmulet("Worn", "Dull", "Old", 5, 16, 5, 11);
                        aPotion = vendor.GetPotion("Dull", 5, 16, 100, 451, 5, 16);
                        itemsToBuy.Add(aWeapon);
                        itemsToBuy.Add(aArmor);
                        itemsToBuy.Add(aHelmet);
                        itemsToBuy.Add(aAmulet);
                        itemsToBuy.Add(aPotion);
                    }
                    if (GameState.Hero.level >= 11 && GameState.Hero.level <= 15)
                    {
                        aWeapon = vendor.GetWeapon("New", "Curved", "Glossed", 10, 26, 11, 16);
                        aArmor  = vendor.GetArmor("New", "Curved", "Glossed", 10, 26, 11, 16);
                        aHelmet = vendor.GetHelmet("New", "Curved", "Glossed", 10, 26, 11, 16);
                        aAmulet = vendor.GetAmulet("New", "Curved", "Glossed", 10, 26, 11, 16);
                        aPotion = vendor.GetPotion("New", 10, 26, 200, 551, 10, 26);
                        itemsToBuy.Add(aWeapon);
                        itemsToBuy.Add(aArmor);
                        itemsToBuy.Add(aHelmet);
                        itemsToBuy.Add(aAmulet);
                        itemsToBuy.Add(aPotion);
                    }
                    if (GameState.Hero.level >= 16 && GameState.Hero.level <= 20)
                    {
                        aWeapon = vendor.GetWeapon("Stable", "Strong", "Sturdy", 20, 31, 16, 21);
                        aArmor  = vendor.GetArmor("Stable", "Strong", "Sturdy", 20, 31, 16, 21);
                        aHelmet = vendor.GetHelmet("Stable", "Strong", "Sturdy", 20, 31, 16, 21);
                        aAmulet = vendor.GetAmulet("Stable", "Strong", "Sturdy", 20, 31, 16, 21);
                        aPotion = vendor.GetPotion("Strong", 20, 31, 200, 601, 20, 31);
                        itemsToBuy.Add(aWeapon);
                        itemsToBuy.Add(aArmor);
                        itemsToBuy.Add(aHelmet);
                        itemsToBuy.Add(aAmulet);
                        itemsToBuy.Add(aPotion);
                    }
                    if (GameState.Hero.level >= 21 && GameState.Hero.level <= 25)
                    {
                        aWeapon = vendor.GetWeapon("Resolute", "Resiliant", "Polished", 25, 36, 21, 26);
                        aArmor  = vendor.GetArmor("Resolute", "Resiliant", "Polished", 25, 36, 21, 26);
                        aHelmet = vendor.GetHelmet("Resolute", "Resiliant", "Polished", 25, 36, 21, 26);
                        aAmulet = vendor.GetAmulet("Resolute", "Resiliant", "Polished", 25, 36, 21, 26);
                        aPotion = vendor.GetPotion("Resiliant", 30, 41, 300, 651, 25, 36);
                        itemsToBuy.Add(aWeapon);
                        itemsToBuy.Add(aArmor);
                        itemsToBuy.Add(aHelmet);
                        itemsToBuy.Add(aAmulet);
                        itemsToBuy.Add(aPotion);
                    }
                    if (GameState.Hero.level >= 26 && GameState.Hero.level <= 30)
                    {
                        aWeapon = vendor.GetWeapon("Blackened", "Cold", "Fire", 30, 41, 26, 31);
                        aArmor  = vendor.GetArmor("Blackened", "Cold", "Fire", 30, 41, 26, 31);
                        aHelmet = vendor.GetHelmet("Blackened", "Cold", "Fire", 30, 41, 26, 31);
                        aAmulet = vendor.GetAmulet("Blackened", "Cold", "Fire", 30, 41, 26, 31);
                        aPotion = vendor.GetPotion("Cold", 100, 201, 400, 751, 30, 41);
                        itemsToBuy.Add(aWeapon);
                        itemsToBuy.Add(aArmor);
                        itemsToBuy.Add(aHelmet);
                        itemsToBuy.Add(aAmulet);
                        itemsToBuy.Add(aPotion);
                    }
                    if (GameState.Hero.level >= 31 && GameState.Hero.level <= 35)
                    {
                        aWeapon = vendor.GetWeapon("Earth", "Warm", "Storm", 35, 56, 31, 36);
                        aArmor  = vendor.GetArmor("Earth", "Warm", "Storm", 35, 56, 31, 36);
                        aHelmet = vendor.GetHelmet("Earth", "Warm", "Storm", 35, 56, 31, 36);
                        aAmulet = vendor.GetAmulet("Earth", "Warm", "Storm", 35, 56, 31, 36);
                        aPotion = vendor.GetPotion("Warm", 150, 301, 500, 851, 35, 56);
                        itemsToBuy.Add(aWeapon);
                        itemsToBuy.Add(aArmor);
                        itemsToBuy.Add(aHelmet);
                        itemsToBuy.Add(aAmulet);
                        itemsToBuy.Add(aPotion);
                    }
                    if (GameState.Hero.level >= 36 && GameState.Hero.level <= 40)
                    {
                        aWeapon = vendor.GetWeapon("Jagged", "Cold", "Fire", 40, 76, 36, 41);
                        aArmor  = vendor.GetArmor("Jagged", "Cold", "Fire", 40, 76, 36, 41);
                        aHelmet = vendor.GetHelmet("Jagged", "Cold", "Fire", 40, 76, 36, 41);
                        aAmulet = vendor.GetAmulet("Jagged", "Cold", "Fire", 40, 76, 36, 41);
                        aPotion = vendor.GetPotion("Cold", 200, 351, 550, 901, 40, 76);
                        itemsToBuy.Add(aWeapon);
                        itemsToBuy.Add(aArmor);
                        itemsToBuy.Add(aHelmet);
                        itemsToBuy.Add(aAmulet);
                        itemsToBuy.Add(aPotion);
                    }
                    if (GameState.Hero.level >= 41 && GameState.Hero.level <= 45)
                    {
                        aWeapon = vendor.GetWeapon("Champion's", "Honor", "Black Market", 45, 86, 41, 46);
                        aArmor  = vendor.GetArmor("Champion's", "Honor", "Black Market", 45, 86, 41, 46);
                        aHelmet = vendor.GetHelmet("Champion's", "Honor", "Black Market", 45, 86, 41, 46);
                        aAmulet = vendor.GetAmulet("Champion's", "Honor", "Black Market", 45, 86, 41, 46);
                        aPotion = vendor.GetPotion("Honor", 250, 401, 600, 951, 41, 86);
                        itemsToBuy.Add(aWeapon);
                        itemsToBuy.Add(aArmor);
                        itemsToBuy.Add(aHelmet);
                        itemsToBuy.Add(aAmulet);
                        itemsToBuy.Add(aPotion);
                    }
                    if (GameState.Hero.level >= 46 && GameState.Hero.level <= 50)
                    {
                        aWeapon = vendor.GetWeapon("Hero's", "Prestige", "Royal", 50, 100, 46, 49);
                        aArmor  = vendor.GetArmor("Hero's", "Prestige", "Royal", 50, 100, 46, 49);
                        aHelmet = vendor.GetHelmet("Hero's", "Prestige", "Royal", 50, 100, 46, 49);
                        aAmulet = vendor.GetAmulet("Hero's", "Prestige", "Royal", 50, 100, 46, 49);
                        aPotion = vendor.GetPotion("Hero's", 300, 451, 650, 1000, 80, 100);
                        itemsToBuy.Add(aWeapon);
                        itemsToBuy.Add(aArmor);
                        itemsToBuy.Add(aHelmet);
                        itemsToBuy.Add(aAmulet);
                        itemsToBuy.Add(aPotion);
                    }
                }

                int i = 1;
                foreach (Item displayItems in itemsToBuy)
                {
                    Console.WriteLine(i + ". " + displayItems);
                    i++;
                }

                Console.WriteLine("\nDo you want to buy any of these? (1) Yes, (2) No");
                string answer = Console.ReadLine();
                if (answer == "1")
                {
                    Console.WriteLine("Which item?");
                    string itemAnswer = Console.ReadLine();
                    int    selected   = Int32.Parse(itemAnswer);
                    selected -= 1;

                    Item selectedItem = itemsToBuy.ElementAt(selected);
                    if (selectedItem.itemType != "Potion")
                    {
                        if (GameState.Hero.Inventory.Count < GameState.Hero.inventoryCap && GameState.Hero.gold >= selectedItem.worth)
                        {
                            GameState.Hero.Inventory.Add(selectedItem);
                            Console.WriteLine("You bought {0} for {1} gold and you now have {2} gold left.\n\n", selectedItem.name, selectedItem.worth, GameState.Hero.gold);
                        }
                        else if (GameState.Hero.Inventory.Count > GameState.Hero.inventoryCap)
                        {
                            Console.WriteLine("You have too many items in your inventory. Maybe you should sell something to me first.\n\n");
                        }
                        else if (GameState.Hero.gold < selectedItem.worth)
                        {
                            Console.WriteLine("You don't have enough money for that\n\n");
                        }
                        else if (GameState.Hero.Inventory.Count > GameState.Hero.inventoryCap && GameState.Hero.gold < selectedItem.worth)
                        {
                            Console.WriteLine("You have too many items in your inventory, and you don't have enough gold. Maybe you should sell something to me first.\n\n");
                        }
                    }
                    else if (selectedItem.itemType == "Potion")
                    {
                        if (GameState.Hero.PotionBag.Count < GameState.Hero.potionBagCap && GameState.Hero.gold >= selectedItem.worth)
                        {
                            GameState.Hero.PotionBag.Add(selectedItem);
                            Console.WriteLine("You bought {0} for {1} gold and you now have {2} gold left.\n\n", selectedItem.name, selectedItem.worth, GameState.Hero.gold);
                        }
                        else if (GameState.Hero.PotionBag.Count > GameState.Hero.potionBagCap)
                        {
                            Console.WriteLine("You have too many items in your inventory. Maybe you should sell something to me first.\n\n");
                        }
                        else if (GameState.Hero.gold < selectedItem.worth)
                        {
                            Console.WriteLine("You don't have enough money for that\n\n");
                        }
                        else if (GameState.Hero.PotionBag.Count > GameState.Hero.potionBagCap && GameState.Hero.gold < selectedItem.worth)
                        {
                            Console.WriteLine("You have too many items in your inventory, and you don't have enough gold. Maybe you should sell something to me first.\n\n");
                        }
                    }
                }
                else if (answer == "2")
                {
                    Console.WriteLine("Then why'd you ask to come here! I ain't going to have anything better you know!\n\n");
                }
                else
                {
                    Console.WriteLine("What you wasting my time for?");
                }


                Console.WriteLine("\n\nWant to buy something else? (1) Yes (2) No");
                string answerTwo = Console.ReadLine();
                if (answerTwo == "1")
                {
                    goAgain = true;
                }
                else if (answerTwo == "2")
                {
                    goAgain = false;
                }
                else
                {
                    goAgain = true;
                }

                ClearScreen();
            } while (goAgain);
            ClearScreen();
        }
Beispiel #32
0
    // Use this for initialization
    void Start()
    {
        /* ---- SPELLS ----- */
        PlayerController playerscript = GetComponent(typeof(PlayerController)) as PlayerController;
        // ORGANIC
        // Methyl Blast
        Spell Methane1 = new Spell();

        SpellSet(Methane1, 0, "Methyl Blast", true, methane1icon, "Simple Methane explosion with 25 base power with a 1 second cast time.", 13, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, methane1iconUI, .8f, 1f);
        AllSpells[0] = Methane1;
        // Methanol Burst
        Spell Methanol1 = new Spell();

        SpellSet(Methanol1, 1, "Methanol Blast", true, methanol1icon, "Simple Methanol explosion with 25 base power.", 13, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, methanol1iconUI, 2f, 1f);
        AllSpells[1] = Methanol1;
        // Ethane Burst
        Spell Ethane1 = new Spell();

        SpellSet(Ethane1, 2, "Ethyl Burst", true, ethane1icon, "Counterattack spell.\n\nConcentrated ethane explosion. Has a quarter second cast time with 25 base power.", 5, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, ethane1iconUI, 5f, .25f);
        AllSpells[2] = Ethane1;

        Spell CCl4 = new Spell();

        SpellSet(CCl4, 3, "Carbon Tetrachloride", true, ccl4icon, "Chills and deals 10 base damage to enemies within a wide radius. Carbon Tetrachloride is known for its refirdgerant properties.", 0, 5, 0.5f, 2f, 0, 0, 0, 0, 0, 0, 0, ccl4ui, 10, 0.3f);
        AllSpells[3] = CCl4;

        Spell CF4 = new Spell();

        SpellSet(CF4, 4, "Carbon Tetraflouride", true, cf4icon, "Throws an icicle spear that deals 10 base damage and snares the enemy it hits.", 10, 10, 0.2f, 2f, 0, 0, 0, 0, 0, 0, 5f, cf4ui, 5, 0f);
        AllSpells[4] = CF4;

        Spell Ethol = new Spell();

        SpellSet(Ethol, 5, "Ethanol Burst", true, etholicon, "More concentrated explosion that deals 35 base damage.", 20, 35, 0, 0, 0, 0, 0, 0, 0, 0, 0, etholui, 10, 1f);
        AllSpells[5] = Ethol;

        Spell Propane = new Spell();

        SpellSet(Propane, 6, "Propane Torch", true, propaneicon, "Extremely concentrated explosion that deals 50 base damage.", 25, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, propaneui, 10, 1f);
        AllSpells[6] = Propane;

        Spell Isopropanol = new Spell();

        SpellSet(Isopropanol, 7, "Isopropanol Wall", true, isopropanolicon, "Wall of Fire", 50, 0, 0, 0, 0, 40, 5, 0, 0, 0, 0, isopropanolui, 20, 1.5f);
        AllSpells[7] = Isopropanol;

        Spell propanol = new Spell();

        SpellSet(propanol, 8, "1-Propanol Circle", true, propanolicon, "circle of flame", 50, 0, 0, 0, 0, 40, 5, 0, 0, 0, 0, propanolui, 15, 1.5f);
        AllSpells[8] = propanol;

        Spell cfmethane = new Spell();

        SpellSet(cfmethane, 9, "Chlorofluoromethane Nova", true, cfmethaneicon, "frost nova", 40, 30, 0, 2, 0, 0, 0, 0, 0, 0, 0, cfmethaneui, 10, 0f);
        AllSpells[9] = cfmethane;

        Spell dcm = new Spell();

        SpellSet(dcm, 10, "Dichloromethane Wall", true, dcmicon, "anivia wall", 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, dcmui, 10, 1f);
        AllSpells[10] = dcm;

        Spell octof = new Spell();

        SpellSet(octof, 11, "Octofluoromethane Lance", true, octoficon, "ice lance", 60, 20, 0.4f, 2f, 0, 0, 0, 0, 0, 0, 0, octofui, 1f, 0f);
        AllSpells[11] = octof;

        Spell pentane = new Spell();

        SpellSet(pentane, 12, "Pentane Explosion", true, pentaneicon, "boom", 120, 30, 0, 0, 0, 0, 0, 0, 0, 0, 0, pentaneui, 30, 1.5f);
        AllSpells[12] = pentane;

        Spell hexane = new Spell();

        SpellSet(hexane, 13, "Hexane Boom", true, hexaneicon, "smaller boom", 30, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, hexaneui, 5f, 1f);
        AllSpells[13] = hexane;

        Spell acetylene = new Spell();

        SpellSet(acetylene, 14, "Acetylene Laser", true, acetyleneicon, "laser", 40, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, acetyleneui, 10f, 3f);
        AllSpells[14] = acetylene;

        Spell benzene = new Spell();

        SpellSet(benzene, 15, "Benzene Blast", true, benzeneicon, "boomer", 25, 30, 0, 0, 0, 0, 0, 0, 0, 0, 0, benzeneui, 2f, 1f);
        AllSpells[15] = benzene;

        Spell Otoluene = new Spell();

        SpellSet(Otoluene, 16, "Orthotoluidine Sear", true, orthotolueneicon, "small boomer", 40, 75, 0, 0, 0, 0, 0, 0, 0, 0, 0, orthotolueneui, 20f, 1f);
        AllSpells[16] = Otoluene;

        Spell Phenol = new Spell();

        SpellSet(Phenol, 17, "Phenol Ball", true, phenolicon, "fireball pun", 30, 40, 0, 0, 0, 0, 0, 0, 0, 0, 0, phenolui, 5, 1f);
        AllSpells[17] = Phenol;

        Spell ethglyc = new Spell();

        SpellSet(ethglyc, 19, "Ethylene Glycerol Wave", true, ethyleneglycerolicon, "ice wave", 40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ethyleneglycerolui, 10, 0f);
        AllSpells[19] = ethglyc;

        Spell tetraf = new Spell();

        SpellSet(tetraf, 20, "1,1,1,2-Tetrafluoroethane Spear", true, tetraficon, "spear", 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, tetrafui, 1, 0f);
        AllSpells[20] = tetraf;

        Spell propylglyc = new Spell();

        SpellSet(propylglyc, 21, "Propyl Glycerol Laser", true, propylglycolicon, "ice aser", 30, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, propylglycolui, 0.6f, 1.5f);
        AllSpells[21] = propylglyc;

        Spell diethglyc = new Spell();

        SpellSet(diethglyc, 22, "Diethylene Glycerol Spikes", true, diethglycolicon, "ice spikes", 140, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, diethglycolui, 60, 3f);
        AllSpells[22] = diethglyc;

        Spell phenylac = new Spell();

        SpellSet(phenylac, 23, "Phenyl Acetylene Plumes", true, phenylacetyleneicon, "lava plumes", 150, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, phenylacetyleneui, 60, 3f);
        AllSpells[23] = phenylac;

        Spell toluene = new Spell();

        SpellSet(toluene, 24, "Toluene Radiate", true, tolueneicon, "aoe all directions", 40, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, tolueneui, 15, 1.5f);
        AllSpells[24] = toluene;

        Spell nitrotoluene = new Spell();

        SpellSet(nitrotoluene, 25, "p-nitrotoluene flamethrower", true, nitrotolueneicon, "flamethrower", 70, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, nitrotolueneui, 30, 1.5f);
        AllSpells[25] = nitrotoluene;

        Spell trinitrotoluene = new Spell();

        SpellSet(trinitrotoluene, 26, "Trinitrotoluene Speed Boost", true, trinitrotolueneicon, "speed", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, trinitrotolueneui, 30, 0f);
        AllSpells[26] = trinitrotoluene;

        Spell nitrobenzoicacid = new Spell();

        SpellSet(nitrobenzoicacid, 27, "4-Nitrobenzoic Acid Smash", true, nitrobenzoicacidicon, "smash symbol", 150, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, nitrobenzoicacidui, 30, 2f);
        AllSpells[27] = nitrobenzoicacid;

        Spell benzoicacid = new Spell();

        SpellSet(benzoicacid, 28, "Benzoic Acid Concentrate", true, benzoicacidicon, "concentrate", 150, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, benzoicacidui, 15, 5f);
        AllSpells[28] = benzoicacid;

        Spell benzotrichloride = new Spell();

        SpellSet(benzotrichloride, 29, "Benzotrichloride Spears", true, benzotrichlorideicon, "spears all directions", 30, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, benzotrichlorideui, 10, 2f);
        AllSpells[29] = benzotrichloride;

        Spell benzoylchloride = new Spell();

        SpellSet(benzoylchloride, 30, "Benzoylchloride Blasts", true, benzoylchlorideicon, "ice mist 3 directions", 40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, benzoylchlorideui, 10, 1f);
        AllSpells[30] = benzoylchloride;

        Spell rdx = new Spell();

        SpellSet(rdx, 31, "RDX Detonation", true, rdxicon, "huge boom", 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, rdxui, 2, 1.5f);
        AllSpells[31] = rdx;

        Spell co2 = new Spell();

        SpellSet(co2, 32, "CO2 Armor", true, co2icon, "Frost armor", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, co2ui, 45, 0f);
        AllSpells[32] = co2;

        Spell octanitrocubane = new Spell();

        SpellSet(octanitrocubane, 33, "Octanitrocubane Comets", true, octanitrocubaneicon, "firestorm", 500, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, octanitrocubaneui, 60, 2f);
        AllSpells[33] = octanitrocubane;

        Spell so2 = new Spell();

        SpellSet(so2, 34, "SO2 Icestorm", true, so2icon, "aoeice slow", 40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, so2ui, 30, 2f);
        AllSpells[34] = so2;

        Spell detn = new Spell();

        SpellSet(detn, 35, "DETN Bomb", true, petnicon, "living bomb", 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, petnui, 5, 0.5f);
        AllSpells[35] = detn;

        Spell chloroform = new Spell();

        SpellSet(chloroform, 36, "Chloroform Hail", true, chloroformicon, "hail storm", 300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, chloroformui, 60, 2f);
        AllSpells[36] = chloroform;

        Spell odf = new Spell();

        SpellSet(odf, 37, "ODF Concentrate", true, odficon, "most concentrated ever", 1000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, odfui, 120, 5f);
        AllSpells[37] = odf;

        Spell fluoroform = new Spell();

        SpellSet(fluoroform, 38, "Fluoroform Lance", true, fluoroformicon, "ice lance better", 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, fluoroformui, 2, 0f);
        AllSpells[38] = fluoroform;

        Spell octogen = new Spell();

        SpellSet(octogen, 39, "Octogen Swathe", true, octogenicon, "flame swathe", 40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, octogenui, 10, 0f);
        AllSpells[39] = octogen;



        // INORGANIC

        Spell Bronze_Sw = new Spell();

        SpellSet(Bronze_Sw, 40, "Bronze Swings", false, bronzeswordicon, "Two Sword Swings that stun for half a second.", 15, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, bronzeswordUI, 1f, 0f);
        AllSpells[40] = Bronze_Sw;

        Spell Bronze_Sweep = new Spell();

        SpellSet(Bronze_Sweep, 41, "Bronze Sweep", false, bronzesword2icon, "One sword swing that stuns for 1 second.", 20, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, bronzesword2UI, 2f, 0f);
        AllSpells[41] = Bronze_Sweep;

        Spell Bronze_GS = new Spell();

        SpellSet(Bronze_GS, 42, "Bronze Greatsword", false, bronzegsicon, "Summon a greatsword that performs a large sweep and stuns for 2 seconds.", 30, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, bronzegsUI, 6f, 0f);
        AllSpells[42] = Bronze_GS;

        Spell Bronze_dagd = new Spell();

        SpellSet(Bronze_dagd, 43, "Bronze Dagger Throw", false, bronzedagicon, "Counterattack spell.\n\nDagger throw that deals 5 damage. If timed correctly right before some enemies attack, they can stagger and can then be counterattacked", 15, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, bronzedagUI, 2f, 0f);
        AllSpells[43] = Bronze_dagd;

        Spell Lithium = new Spell();

        SpellSet(Lithium, 44, "Lithium Spark", false, lithiumicon, "Lithium Spark that stuns for 5 seconds and deals 5 damage. Has 1 second cast time.", 60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, lithiumUI, 30f, 1f);
        AllSpells[44] = Lithium;


        // BIOCHEM

        Spell Heme1 = new Spell();

        SpellSet(Heme1, 45, "Hemoglobin Drain", true, hemeicon, "Counterattack spell.\n\nThrow a bolt of blood and if it hits recover 5% of your health and deal twice that amount. If timed correctly right before some enemies attack, they can stagger and can then be counterattacked\nHemoglobin is the main oxygen carrier in the blood, and when disrupted can cause major damage.", 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, hemeui, 0.5f, 0.5f);
        AllSpells[45] = Heme1;

        Spell Aspirin = new Spell();

        SpellSet(Aspirin, 46, "Aspirin Rejuvination", true, aspirinicon, "Restore a portion of your life over time.", 80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, aspirinui, 30f, 1.5f);
        AllSpells[46] = Aspirin;

        Spell Ibuprofen = new Spell();

        SpellSet(Ibuprofen, 47, "Ibuprophen Heal", true, ibuicon, "A 5 second cast heal spell.", 150, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ibui, 45f, 5f);
        AllSpells[47] = Ibuprofen;

        Spell Influenza = new Spell();

        SpellSet(Influenza, 48, "Influenza Cloud", true, influenzaicon, "Summon a miasma of influenza directly in front of the caster, dealing damage over time.", 40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, influenzaui, 10f, 2f);
        AllSpells[48] = Influenza;

        Spell ChlorineGas = new Spell();

        SpellSet(ChlorineGas, 49, "Chlorine Gas Cloud", false, chlorinegasicon, "Summon a chlorine gas cloud, covering a large area and dealing a bit of damage over time to enemies.", 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, chlorinegasui, 15f, 3f);
        AllSpells[49] = ChlorineGas;

        Spell Myoglobin = new Spell();

        SpellSet(Myoglobin, 50, "Myoglobin Scimitar", true, myoglobicon, "Sacrifice 10% of your maximum HP to summon a blood scimitar, which swings once and deals damage.", 13, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, myoglobui, 0.7f, 0f);
        AllSpells [50] = Myoglobin;


        /* ---- ITEMS ---- */
        // Health potion
        Item hpot = new Item();

        ItemSet(hpot, 0, hpotui, "Health Potion", "Consumable", "A consumable health elixir. Restores 40 health.\n\nInvented by the biochemists of Kratzoff, this concoction of known restorative herbs and drugs allows temporary relief of pain.", false, 40, 0, false, false, 0);
        AllItems[0] = hpot;

        // Stamina potion
        Item spot = new Item();

        ItemSet(spot, 1, stampotui, "Stamina Potion", "Consumable", "A consumable stamina elixir that grants 40 stamina the cost of 20 health.\n\nA highly concentrated solution of ethanol, with a strong aromatic flavoring added to cover up the smell. Alcoholic beverages were quickly discovered to allow for more spellcasts on Synthuses. The exact chemical mechanism of this phenomenon is unknown, but many speculate that it has to do with the ethereal psychological link between the Syntus and its user.", false, -20, 40, false, false, 0);
        AllItems[1] = spot;

        Item smallchime = new Item();

        ItemSet(smallchime, 2, smallchimeui, "Small Resonant Chime", "Resonant", "Ring the chime to resonate with the Multiverse.\nThis small chime should grant a small amount of soul energy for the Synthus.\nWhen the chime is rung, the soul energies of alternate universes can be resonated with and brought to this universe. To compensate for the energy gained in this universe, the chime is completely consumed. Resonant instruments are quite rare and expensive and are crafted in a very special way such that the inaudible sound they produce can resonate with the Multiverse.", false, 0, 0, false, false, 300);
        AllItems[2] = smallchime;

        Item chlorinereactable = new Item();

        ItemSet(chlorinereactable, 3, chemicalui, "Concentrated Chlorine", "Reactable", "A highly concentrated solution of chlorine. The container is highly pressurized and as a result the Chlorine is in its liquid state. Halogenation reactions are often performed rather easily with more concentrated solutions like these.", false, 0, 0, false, false, 0);
        AllItems[3] = chlorinereactable;

        Item Lithium_Hydroxide = new Item();

        ItemSet(Lithium_Hydroxide, 4, chemicalui, "Lithium Hydroxide", "Reactable", "A highly concentrated solution of Lithium Hydroxide. It would make a perfect electrolyte for a Lithium battery cell. Lithium hydroxide is often mass produced in inorganic societies, and as a result has spread across the land.", false, 0, 0, false, false, 0);
        AllItems[4] = Lithium_Hydroxide;

        Item culture = new Item();

        ItemSet(culture, 5, chemicalui, "Culture Catalyst", "Reactable", "A collection of special minerals and nutrients that are said to speed up the growth of certain microbiological cultures. It is a shame that so much effort was put into the development of deadly diseases and organisms by biochemists instead of researching medicine for their fellow man.", true, 0, 0, false, false, 0);
        AllItems[5] = culture;

        Item key1 = new Item();

        ItemSet(key1, 6, key1ui, "Castle Courtyard Key", "Key", "A master key to the courtyard of Castle Vod. Castle Vod, originating from the Cosmosian word for 'Life', is supposedly devoted to study the life aspects of water. As a result, water is seen as a holy medium in the region, and is believed to be the most important gift from hyperspace and Phota, the giver of life.", false, 0, 0, false, true, 0);
        AllItems[6] = key1;

        Item key2 = new Item();

        ItemSet(key2, 7, key2ui, "Ornate Key", "Key", "An ornate looking key, possibly only carried by high ranking members of Vod.\nOnly the most elite of the Vodists know of the Magister's secrets, which are hidden away in the courtyard shack. Only high ranking officers are ever seen entering or exiting it.", false, 0, 0, false, true, 0);
        AllItems[7] = key2;

        Item abominationsoul = new Item();

        ItemSet(abominationsoul, 8, boss1soului, "Lifeless Soul", "Soul", "Soul essence of the Lifeless Abomination, the mysterious creature lurking in the Castle Vod Undercroft. It is nothing at all like a human soul, or like any living creature's soul.\n\nEspecially large souls have a hard time funneling into the Synthus, and need to be physically crushed to give it that final push. Use to gain a large amount of Energy or save to use for making new Spells at the Lab.", false, 0, 0, false, false, 800);
        AllItems[8] = abominationsoul;

        Item key3 = new Item();

        ItemSet(key3, 9, key3ui, "Dormitory Key", "Key", "Key to the front door of the Dormitories of Castle Vod. The floors are ordered in accordance to rank. Even the highest ranking Aqua Regia are known to live with minimal opulence. The Magister of each Castle usually resides in a seperate building from the others.", false, 0, 0, false, true, 0);
        AllItems[9] = key3;

        Item key4 = new Item();

        ItemSet(key4, 10, key3ui, "Ophelia's Key", "Key", "Key to Ophelia's room.", false, 0, 0, false, true, 0);
        AllItems [10] = key4;

        Item synthus = new Item();

        ItemSet(synthus, 11, synthusui, "Synthus", "", "Crush the Synthus to consume all of your energy and reappear in a parallel universe at the previous checkpoint. \nNicknamed the 'Soul Synthus', the mechanism behind how this device turns chemicals into weapons is still a mystery. The user is also said to have quantum immortality and the power to absorb the soul essences of others, two phenomena that are still shrouded in mystery. Although very fragile, its ability to grow in power and to be easily mass produced make it the strongest chemical weapon ever conceived.", false, -50000, 0, false, false, 0);
        AllItems [11] = synthus;

        Item TowerKey = new Item();

        ItemSet(TowerKey, 12, key4ui, "Tower Key", "Key", "Key to the western Vod Tower and adobe of the Magister.", false, 0, 0, false, true, 0);
        AllItems[12] = TowerKey;

        Item goldpendant = new Item();

        ItemSet(goldpendant, 13, pendantui, "Gold Pendant", "Key", "A very expensive looking pendant, likely belonging to the Magister of Castle Vod. Magisters of Regia Castles usually come from a long line of nobility, and it is said that each line passes along a knightly piece of jewelry to complete the coronation.", false, 0, 0, false, true, 0);
        AllItems[13] = goldpendant;

        Item bloodykey = new Item();

        ItemSet(bloodykey, 14, key3ui, "Blood Stained Key", "Key", "A blood stained dormitory key, belonging to the biochemist Aslan of the West who was temporarily performing joint research with the Vod. Biochemists often require the use of their own blood to cast most Synthus spells, as a result the state of their belongings after combat may become a bit messy.", false, 0, 0, false, true, 0);
        AllItems[14] = bloodykey;

        Item ritualsitekey = new Item();

        ItemSet(ritualsitekey, 15, key2ui, "Ritual Site Key", "Key", "Key to the Vod ritual site. Castle Vod is the only Regia establishment with a large open area dubbed a 'Ritual Site'. The Site was constructed by special request of the Magister. Its function is unknown", false, 0, 0, false, true, 0);
        AllItems[15] = ritualsitekey;

        Item squidsoul = new Item();

        ItemSet(squidsoul, 16, boss1soului, "Squid Soul", "Soul", "Soul essence of the Lifeless Abomination, the mysterious creature lurking in the Castle Vod Undercroft. It is nothing at all like a human soul, or like any living creature's soul.\n\nEspecially large souls have a hard time funneling into the Synthus, and need to be physically crushed to give it that final push. Use to gain a large amount of Energy or save to use for making new Spells at the Lab.", false, 0, 0, false, false, 800);
        AllItems[16] = squidsoul;

        /* ---- HATS ---- */
        Hat redHat = new Hat();

        HatSet(redHat, 0, "Crimson Crusader Topper", "A hat worn by the group known as the crimson crusaders who were renowned for their undetakings in blood chemistry. Formerly Regia disciples who focused on biochemistry, very little is known about those who experiment with blood. There are tales of Crimson Crusaders who had the ability to completely pop every artery of their enemies, but such stories are believed to be fictitious.", redhatui, hatredoverworld, hatredbig);
        AllHats[0] = redHat;

        Hat blueHat = new Hat();

        HatSet(blueHat, 1, "Aqua Regia Hat", "Hat worn by the disciples of Aqua Regia, who devote their life to studying the properties of water, due to its importance in nature. The Regia people were once known as peaceful nomads, and have built several castles and villages across the land as they hope to spread their beliefs of water. Recent developments in discoveries about using water as an effective weapon have changed that, however.", bluehatui, hatdefault, bluehatbig);
        AllHats[1] = blueHat;

        Hat brownHat = new Hat();

        HatSet(brownHat, 2, "Sancta Hat", "Worn by low ranking disciples of Sancta. Followers of the Sanct have a very strict intolerance to the chemical magics. Instead, they worship the Sancta Choir, a mysterious group of high ranking members of the Sanct whose singing is said to somehow destructively interfere with the Synthus.", brownhaticon, brownhatig, brownhatbig);
        AllHats[2] = brownHat;

        Hat blueber = new Hat();

        HatSet(blueber, 3, "Kratzhoff Beret", "Beret and Mask worn by the Kratzhoff, a people who are said to live in the far West. They are most notorious for their aptitude in Biochemistry and healing. It is said that Kratzhoff encampments are the final beacons of Healing and Repose for humanity, amongst the seemingly endless Wars. The mask is said to distance the healer from the disease of their patient.", bluebereticon, blueberetig, blueberetbig);
        AllHats[3] = blueber;

        /* --- TUNICS --- */
        Tunic vest1 = new Tunic();

        TunicSet(vest1, 0, tunicui, "Tattered Tunic", "Old tunic that has very limited defensive capabilities. Leather tunics have been produced for several centuries now, due to their moderate defensive capabilities and relatively high flexibility. This particular one seems to have been worn out by some sort of battle.", 0.1f, -0.1f, 0);
        AllTunics[0] = vest1;

        Tunic nullVest = new Tunic();

        TunicSet(nullVest, 1, nullui, "", "", 0f, 0f, 0f);
        AllTunics[1] = nullVest;

        /* -- AMULETS -- */
        Amulet ammy1 = new Amulet();

        AmuletSet(ammy1, 0, sapphui, "Sapphire Amulet", "Amulet embedded with a sapphire. Quite common amongst aqua regia soldiers. The sapphire was thought to contain secrets in the studies of water, but was later found out that its distinctive color was simply due to impurities of the Aluminum Oxide that it contains.", 0.01f, 500f);
        AllAmulets[0] = ammy1;

        Amulet nullAmmy = new Amulet();

        AmuletSet(nullAmmy, 1, nullui, "", "", 0.025f, 100000f);
        AllAmulets[1] = nullAmmy;



        EquippedAmulet = 1;
        EquippedHat    = 1;
        EquippedTunic  = 1;
    }
Beispiel #33
0
 private void AmuletSet(Amulet amulet, int id, Texture2D icon, string name, string descrip, float stam, float hpregen)
 {
     amulet.amuletID = id;
     amulet.amuletIcon = icon;
     amulet.amuletName = name;
     amulet.amuletDescrip = descrip;
     amulet.healthRegen = hpregen;
     amulet.stamRegen = stam;
 }
Beispiel #34
0
    public static Pickup PickupItem(Pickup item, GameObject instigator)
    {
        if (instigator.CompareTag("Player"))
        {
            switch (item.type)
            {
            case ItemType.Amulet:
                Amulet amulet = ItemDictionary.Instance.GetAmulet(item.itemName);
                if (amulet != null)
                {
                    AmuletPointer amuletPointer = new AmuletPointer();
                    amuletPointer.label = item.itemName;
                    int amount = Inventory.Instance.AddAmulet(amuletPointer);
                    Debug.Log((1 - amount) + " Item equipment " + amulet.label + " masuk ke inventory");
                    item.amount = amount;

                    // TODO implement UI notification
                }
                break;

            case ItemType.Equipment:
                Equipment equipment = ItemDictionary.Instance.GetEquipment(item.itemName);
                if (equipment != null)
                {
                    EquipmentPointer equipmentPointer = new EquipmentPointer();
                    equipmentPointer.label = item.itemName;
                    int amount = Inventory.Instance.AddEquipment(equipmentPointer);
                    Debug.Log((1 - amount) + " Item equipment " + equipment.label + " masuk ke inventory");
                    item.amount = amount;

                    // TODO implement UI notification
                }
                break;

            case ItemType.Consumable:
                Consumable consumable = ItemDictionary.Instance.GetConsumable(item.itemName);
                if (consumable != null)
                {
                    ConsumablePointer consumablePointer = new ConsumablePointer();
                    consumablePointer.label  = item.itemName;
                    consumablePointer.amount = item.amount;
                    int amount = Inventory.Instance.AddConsumable(consumablePointer);
                    Debug.Log((item.amount - amount) + " Item consumable " + consumable.label + " masuk ke inventory");
                    item.amount = amount;

                    // TODO implement UI notification
                }
                break;

            case ItemType.QuestItem:
                QuestItem questItem = ItemDictionary.Instance.GetQuestItem(item.itemName);
                if (questItem != null)
                {
                    QuestItemPointer questItemPointer = new QuestItemPointer();
                    questItemPointer.label  = item.itemName;
                    questItemPointer.amount = item.amount;
                    int amount = Inventory.Instance.AddQuestItem(questItemPointer);
                    Debug.Log((item.amount - amount) + " Item quest " + questItem.label + " masuk ke inventory");
                    item.amount = amount;

                    // TODO implement UI notification
                }
                break;
            }
        }

        return(item);
    }
Beispiel #35
0
    // Use this for initialization
    void Start()
    {
        /* ---- SPELLS ----- */
        PlayerController playerscript = GetComponent(typeof(PlayerController)) as PlayerController;
        // ORGANIC
        // Methyl Blast
        Spell Methane1 = new Spell();
        SpellSet(Methane1, 0, "Methyl Blast", true, methane1icon, "Simple Methane explosion with 25 base power with a 1 second cast time.", 13,10,0,0,0,0,0,0,0,0,0,methane1iconUI,.8f, 1f);
        AllSpells[0] = Methane1;
        // Methanol Burst
        Spell Methanol1 = new Spell();
        SpellSet(Methanol1, 1, "Methanol Blast", true, methanol1icon, "Simple Methanol explosion with 25 base power.", 13,15,0,0,0,0,0,0,0,0,0,methanol1iconUI,2f, 1f);
        AllSpells[1] = Methanol1;
        // Ethane Burst
        Spell Ethane1 = new Spell();
        SpellSet(Ethane1, 2, "Ethyl Burst", true, ethane1icon, "Counterattack spell.\n\nConcentrated ethane explosion. Has a quarter second cast time with 25 base power.", 5, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, ethane1iconUI, 5f, .25f);
        AllSpells[2] = Ethane1;

        Spell CCl4 = new Spell();
        SpellSet(CCl4, 3, "Carbon Tetrachloride", true, ccl4icon, "Chills and deals 10 base damage to enemies within a wide radius. Carbon Tetrachloride is known for its refirdgerant properties.", 0, 5, 0.5f, 2f, 0, 0, 0, 0, 0, 0, 0, ccl4ui, 10, 0.3f);
        AllSpells[3] = CCl4;

        Spell CF4 = new Spell();
        SpellSet(CF4, 4, "Carbon Tetraflouride", true, cf4icon, "Throws an icicle spear that deals 10 base damage and snares the enemy it hits.", 10, 10, 0.2f, 2f, 0, 0, 0, 0, 0, 0, 5f, cf4ui, 5, 0f);
        AllSpells[4] = CF4;

        Spell Ethol = new Spell();
        SpellSet(Ethol, 5, "Ethanol Burst", true, etholicon, "More concentrated explosion that deals 35 base damage.", 20, 35, 0, 0, 0, 0, 0, 0, 0, 0, 0, etholui, 10, 1f);
        AllSpells[5] = Ethol;

        Spell Propane = new Spell();
        SpellSet(Propane, 6, "Propane Torch", true, propaneicon, "Extremely concentrated explosion that deals 50 base damage.", 25, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, propaneui, 10, 1f);
        AllSpells[6] = Propane;

        Spell Isopropanol = new Spell();
        SpellSet(Isopropanol, 7, "Isopropanol Wall", true, isopropanolicon, "Wall of Fire", 50, 0, 0, 0, 0, 40, 5, 0, 0, 0, 0, isopropanolui, 20, 1.5f);
        AllSpells[7] = Isopropanol;

        Spell propanol = new Spell();
        SpellSet(propanol, 8, "1-Propanol Circle", true, propanolicon, "circle of flame", 50, 0, 0, 0, 0, 40, 5, 0, 0, 0, 0, propanolui, 15, 1.5f);
        AllSpells[8] = propanol;

        Spell cfmethane = new Spell();
        SpellSet(cfmethane, 9, "Chlorofluoromethane Nova", true, cfmethaneicon, "frost nova", 40, 30, 0, 2, 0, 0, 0, 0, 0, 0, 0, cfmethaneui, 10, 0f);
        AllSpells[9] = cfmethane;

        Spell dcm = new Spell();
        SpellSet(dcm, 10, "Dichloromethane Wall", true, dcmicon, "anivia wall", 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, dcmui, 10, 1f);
        AllSpells[10] = dcm;

        Spell octof = new Spell();
        SpellSet(octof, 11, "Octofluoromethane Lance", true, octoficon, "ice lance", 60, 20, 0.4f, 2f, 0, 0, 0, 0, 0, 0, 0, octofui, 1f, 0f);
        AllSpells[11] = octof;

        Spell pentane = new Spell();
        SpellSet(pentane, 12, "Pentane Explosion", true, pentaneicon, "boom", 120, 30, 0, 0, 0, 0, 0, 0, 0, 0, 0, pentaneui, 30, 1.5f);
        AllSpells[12] = pentane;

        Spell hexane = new Spell();
        SpellSet(hexane, 13, "Hexane Boom", true, hexaneicon, "smaller boom", 30, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, hexaneui, 5f, 1f);
        AllSpells[13] = hexane;

        Spell acetylene = new Spell();
        SpellSet(acetylene, 14, "Acetylene Laser", true, acetyleneicon, "laser", 40, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, acetyleneui, 10f, 3f);
        AllSpells[14] = acetylene;

        Spell benzene = new Spell();
        SpellSet(benzene, 15, "Benzene Blast", true, benzeneicon, "boomer", 25, 30, 0, 0, 0, 0, 0, 0, 0, 0, 0, benzeneui, 2f, 1f);
        AllSpells[15] = benzene;

        Spell Otoluene = new Spell();
        SpellSet(Otoluene, 16, "Orthotoluidine Sear", true, orthotolueneicon, "small boomer", 40, 75, 0, 0, 0, 0, 0, 0, 0, 0, 0, orthotolueneui, 20f, 1f);
        AllSpells[16] = Otoluene;

        Spell Phenol = new Spell();
        SpellSet(Phenol, 17, "Phenol Ball", true, phenolicon, "fireball pun", 30, 40, 0, 0, 0, 0, 0, 0, 0, 0, 0, phenolui, 5, 1f);
        AllSpells[17] = Phenol;

        Spell ethglyc = new Spell();
        SpellSet(ethglyc, 19, "Ethylene Glycerol Wave", true, ethyleneglycerolicon, "ice wave", 40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ethyleneglycerolui, 10, 0f);
        AllSpells[19] = ethglyc;

        Spell tetraf = new Spell();
        SpellSet(tetraf, 20, "1,1,1,2-Tetrafluoroethane Spear", true, tetraficon, "spear", 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, tetrafui, 1, 0f);
        AllSpells[20] = tetraf;

        Spell propylglyc = new Spell();
        SpellSet(propylglyc, 21, "Propyl Glycerol Laser", true, propylglycolicon, "ice aser", 30, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, propylglycolui, 0.6f, 1.5f);
        AllSpells[21] = propylglyc;

        Spell diethglyc = new Spell();
        SpellSet(diethglyc, 22, "Diethylene Glycerol Spikes", true, diethglycolicon, "ice spikes", 140, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, diethglycolui, 60, 3f);
        AllSpells[22] = diethglyc;

        Spell phenylac = new Spell();
        SpellSet(phenylac, 23, "Phenyl Acetylene Plumes", true, phenylacetyleneicon, "lava plumes", 150, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, phenylacetyleneui, 60, 3f);
        AllSpells[23] = phenylac;

        Spell toluene = new Spell();
        SpellSet(toluene, 24, "Toluene Radiate", true, tolueneicon, "aoe all directions", 40, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, tolueneui, 15, 1.5f);
        AllSpells[24] = toluene;

        Spell nitrotoluene = new Spell();
        SpellSet(nitrotoluene, 25, "p-nitrotoluene flamethrower", true, nitrotolueneicon, "flamethrower", 70, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, nitrotolueneui, 30, 1.5f);
        AllSpells[25] = nitrotoluene;

        Spell trinitrotoluene = new Spell();
        SpellSet(trinitrotoluene, 26, "Trinitrotoluene Speed Boost", true, trinitrotolueneicon, "speed", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, trinitrotolueneui, 30, 0f);
        AllSpells[26] = trinitrotoluene;

        Spell nitrobenzoicacid = new Spell();
        SpellSet(nitrobenzoicacid, 27, "4-Nitrobenzoic Acid Smash", true, nitrobenzoicacidicon, "smash symbol", 150, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, nitrobenzoicacidui, 30, 2f);
        AllSpells[27] = nitrobenzoicacid;

        Spell benzoicacid = new Spell();
        SpellSet(benzoicacid, 28, "Benzoic Acid Concentrate", true, benzoicacidicon, "concentrate", 150, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, benzoicacidui, 15, 5f);
        AllSpells[28] = benzoicacid;

        Spell benzotrichloride = new Spell();
        SpellSet(benzotrichloride, 29, "Benzotrichloride Spears", true, benzotrichlorideicon, "spears all directions", 30, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, benzotrichlorideui, 10, 2f);
        AllSpells[29] = benzotrichloride;

        Spell benzoylchloride = new Spell();
        SpellSet(benzoylchloride, 30, "Benzoylchloride Blasts", true, benzoylchlorideicon, "ice mist 3 directions", 40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, benzoylchlorideui, 10, 1f);
        AllSpells[30] = benzoylchloride;

        Spell rdx = new Spell();
        SpellSet(rdx, 31, "RDX Detonation", true, rdxicon, "huge boom", 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, rdxui, 2, 1.5f);
        AllSpells[31] = rdx;

        Spell co2 = new Spell();
        SpellSet(co2, 32, "CO2 Armor", true, co2icon, "Frost armor", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, co2ui, 45, 0f);
        AllSpells[32] = co2;

        Spell octanitrocubane = new Spell();
        SpellSet(octanitrocubane, 33, "Octanitrocubane Comets", true, octanitrocubaneicon, "firestorm", 500, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, octanitrocubaneui, 60, 2f);
        AllSpells[33] = octanitrocubane;

        Spell so2 = new Spell();
        SpellSet(so2, 34, "SO2 Icestorm", true, so2icon, "aoeice slow", 40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, so2ui, 30, 2f);
        AllSpells[34] = so2;

        Spell detn = new Spell();
        SpellSet(detn, 35, "DETN Bomb", true, petnicon, "living bomb", 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, petnui, 5, 0.5f);
        AllSpells[35] = detn;

        Spell chloroform = new Spell();
        SpellSet(chloroform, 36, "Chloroform Hail", true, chloroformicon, "hail storm", 300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, chloroformui, 60, 2f);
        AllSpells[36] = chloroform;

        Spell odf = new Spell();
        SpellSet(odf, 37, "ODF Concentrate", true, odficon, "most concentrated ever", 1000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, odfui, 120, 5f);
        AllSpells[37] = odf;

        Spell fluoroform = new Spell();
        SpellSet(fluoroform, 38, "Fluoroform Lance", true, fluoroformicon, "ice lance better", 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, fluoroformui, 2, 0f);
        AllSpells[38] = fluoroform;

        Spell octogen = new Spell();
        SpellSet(octogen, 39, "Octogen Swathe", true, octogenicon, "flame swathe", 40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, octogenui, 10, 0f);
        AllSpells[39] = octogen;

        // INORGANIC

        Spell Bronze_Sw = new Spell();
        SpellSet(Bronze_Sw, 40, "Bronze Swings", false, bronzeswordicon, "Two Sword Swings that stun for half a second.", 15, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, bronzeswordUI, 1f, 0f);
        AllSpells[40] = Bronze_Sw;

        Spell Bronze_Sweep = new Spell();
        SpellSet(Bronze_Sweep, 41, "Bronze Sweep", false, bronzesword2icon, "One sword swing that stuns for 1 second.", 20, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, bronzesword2UI, 2f, 0f);
        AllSpells[41] = Bronze_Sweep;

        Spell Bronze_GS = new Spell();
        SpellSet(Bronze_GS, 42, "Bronze Greatsword", false, bronzegsicon, "Summon a greatsword that performs a large sweep and stuns for 2 seconds.", 30, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, bronzegsUI, 6f, 0f);
        AllSpells[42] = Bronze_GS;

        Spell Bronze_dagd = new Spell();
        SpellSet(Bronze_dagd, 43, "Bronze Dagger Throw", false, bronzedagicon, "Counterattack spell.\n\nDagger throw that deals 5 damage. If timed correctly right before some enemies attack, they can stagger and can then be counterattacked", 15, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, bronzedagUI, 2f, 0f);
        AllSpells[43] = Bronze_dagd;

        Spell Lithium = new Spell();
        SpellSet(Lithium, 44, "Lithium Spark", false, lithiumicon, "Lithium Spark that stuns for 5 seconds and deals 5 damage. Has 1 second cast time.", 60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, lithiumUI, 30f, 1f);
        AllSpells[44] = Lithium;

        // BIOCHEM

        Spell Heme1 = new Spell();
        SpellSet(Heme1, 45, "Hemoglobin Drain", true, hemeicon, "Counterattack spell.\n\nThrow a bolt of blood and if it hits recover 5% of your health and deal twice that amount. If timed correctly right before some enemies attack, they can stagger and can then be counterattacked\nHemoglobin is the main oxygen carrier in the blood, and when disrupted can cause major damage.", 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, hemeui, 0.5f, 0.5f);
        AllSpells[45] = Heme1;

        Spell Aspirin = new Spell();
        SpellSet(Aspirin, 46, "Aspirin Rejuvination", true, aspirinicon, "Restore a portion of your life over time.", 80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, aspirinui, 30f, 1.5f);
        AllSpells[46] = Aspirin;

        Spell Ibuprofen = new Spell();
        SpellSet(Ibuprofen, 47, "Ibuprophen Heal", true, ibuicon, "A 5 second cast heal spell.", 150, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ibui, 45f, 5f);
        AllSpells[47] = Ibuprofen;

        Spell Influenza = new Spell();
        SpellSet(Influenza, 48, "Influenza Cloud", true, influenzaicon, "Summon a miasma of influenza directly in front of the caster, dealing damage over time.", 40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, influenzaui, 10f, 2f);
        AllSpells[48] = Influenza;

        Spell ChlorineGas = new Spell();
        SpellSet(ChlorineGas, 49, "Chlorine Gas Cloud", false, chlorinegasicon, "Summon a chlorine gas cloud, covering a large area and dealing a bit of damage over time to enemies.", 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, chlorinegasui, 15f, 3f);
        AllSpells[49] = ChlorineGas;

        Spell Myoglobin = new Spell ();
        SpellSet (Myoglobin, 50, "Myoglobin Scimitar", true, myoglobicon, "Sacrifice 10% of your maximum HP to summon a blood scimitar, which swings once and deals damage.", 13, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, myoglobui, 0.7f, 0f);
        AllSpells [50] = Myoglobin;

        /* ---- ITEMS ---- */
        // Health potion
        Item hpot = new Item();
        ItemSet(hpot, 0, hpotui, "Health Potion", "Consumable", "A consumable health elixir. Restores 40 health.\n\nInvented by the biochemists of Kratzoff, this concoction of known restorative herbs and drugs allows temporary relief of pain.", false, 40, 0, false, false, 0);
        AllItems[0] = hpot;

        // Stamina potion
        Item spot = new Item();
        ItemSet(spot, 1, stampotui, "Stamina Potion", "Consumable", "A consumable stamina elixir that grants 40 stamina the cost of 20 health.\n\nA highly concentrated solution of ethanol, with a strong aromatic flavoring added to cover up the smell. Alcoholic beverages were quickly discovered to allow for more spellcasts on Synthuses. The exact chemical mechanism of this phenomenon is unknown, but many speculate that it has to do with the ethereal psychological link between the Syntus and its user.", false, -20, 40, false, false, 0);
        AllItems[1] = spot;

        Item smallchime = new Item();
        ItemSet(smallchime, 2, smallchimeui, "Small Resonant Chime", "Resonant", "Ring the chime to resonate with the Multiverse.\nThis small chime should grant a small amount of soul energy for the Synthus.\nWhen the chime is rung, the soul energies of alternate universes can be resonated with and brought to this universe. To compensate for the energy gained in this universe, the chime is completely consumed. Resonant instruments are quite rare and expensive and are crafted in a very special way such that the inaudible sound they produce can resonate with the Multiverse.", false, 0, 0, false, false, 300);
        AllItems[2] = smallchime;

        Item chlorinereactable = new Item();
        ItemSet(chlorinereactable, 3, chemicalui, "Concentrated Chlorine", "Reactable", "A highly concentrated solution of chlorine. The container is highly pressurized and as a result the Chlorine is in its liquid state. Halogenation reactions are often performed rather easily with more concentrated solutions like these.", false, 0, 0, false, false, 0);
        AllItems[3] = chlorinereactable;

        Item Lithium_Hydroxide = new Item();
        ItemSet(Lithium_Hydroxide, 4, chemicalui, "Lithium Hydroxide", "Reactable", "A highly concentrated solution of Lithium Hydroxide. It would make a perfect electrolyte for a Lithium battery cell. Lithium hydroxide is often mass produced in inorganic societies, and as a result has spread across the land.", false, 0, 0, false, false, 0);
        AllItems[4] = Lithium_Hydroxide;

        Item culture = new Item();
        ItemSet(culture, 5, chemicalui, "Culture Catalyst", "Reactable", "A collection of special minerals and nutrients that are said to speed up the growth of certain microbiological cultures. It is a shame that so much effort was put into the development of deadly diseases and organisms by biochemists instead of researching medicine for their fellow man.", true, 0, 0, false, false, 0);
        AllItems[5] = culture;

        Item key1 = new Item();
        ItemSet(key1, 6, key1ui, "Castle Courtyard Key", "Key", "A master key to the courtyard of Castle Vod. Castle Vod, originating from the Cosmosian word for 'Life', is supposedly devoted to study the life aspects of water. As a result, water is seen as a holy medium in the region, and is believed to be the most important gift from hyperspace and Phota, the giver of life.", false, 0, 0, false, true, 0);
        AllItems[6] = key1;

        Item key2 = new Item();
        ItemSet(key2, 7, key2ui, "Ornate Key", "Key", "An ornate looking key, possibly only carried by high ranking members of Vod.\nOnly the most elite of the Vodists know of the Magister's secrets, which are hidden away in the courtyard shack. Only high ranking officers are ever seen entering or exiting it.", false, 0, 0, false, true, 0);
        AllItems[7] = key2;

        Item abominationsoul = new Item();
        ItemSet(abominationsoul, 8, boss1soului, "Lifeless Soul", "Soul", "Soul essence of the Lifeless Abomination, the mysterious creature lurking in the Castle Vod Undercroft. It is nothing at all like a human soul, or like any living creature's soul.\n\nEspecially large souls have a hard time funneling into the Synthus, and need to be physically crushed to give it that final push. Use to gain a large amount of Energy or save to use for making new Spells at the Lab.", false, 0, 0, false, false, 800);
        AllItems[8] = abominationsoul;

        Item key3 = new Item();
        ItemSet(key3, 9, key3ui, "Dormitory Key", "Key", "Key to the front door of the Dormitories of Castle Vod. The floors are ordered in accordance to rank. Even the highest ranking Aqua Regia are known to live with minimal opulence. The Magister of each Castle usually resides in a seperate building from the others.", false, 0, 0, false, true, 0);
        AllItems[9] = key3;

        Item key4 = new Item ();
        ItemSet (key4, 10, key3ui, "Ophelia's Key", "Key", "Key to Ophelia's room.", false, 0, 0, false, true, 0);
        AllItems [10] = key4;

        Item synthus = new Item ();
        ItemSet (synthus, 11, synthusui, "Synthus", "", "Crush the Synthus to consume all of your energy and reappear in a parallel universe at the previous checkpoint. \nNicknamed the 'Soul Synthus', the mechanism behind how this device turns chemicals into weapons is still a mystery. The user is also said to have quantum immortality and the power to absorb the soul essences of others, two phenomena that are still shrouded in mystery. Although very fragile, its ability to grow in power and to be easily mass produced make it the strongest chemical weapon ever conceived.", false, -50000, 0, false, false, 0);
        AllItems [11] = synthus;

        Item TowerKey = new Item();
        ItemSet(TowerKey, 12, key4ui, "Tower Key", "Key", "Key to the western Vod Tower and adobe of the Magister.", false, 0, 0, false, true, 0);
        AllItems[12] = TowerKey;

        Item goldpendant = new Item();
        ItemSet(goldpendant, 13, pendantui, "Gold Pendant", "Key", "A very expensive looking pendant, likely belonging to the Magister of Castle Vod. Magisters of Regia Castles usually come from a long line of nobility, and it is said that each line passes along a knightly piece of jewelry to complete the coronation.", false, 0, 0, false, true, 0);
        AllItems[13] = goldpendant;

        Item bloodykey = new Item();
        ItemSet(bloodykey, 14, key3ui, "Blood Stained Key", "Key", "A blood stained dormitory key, belonging to the biochemist Aslan of the West who was temporarily performing joint research with the Vod. Biochemists often require the use of their own blood to cast most Synthus spells, as a result the state of their belongings after combat may become a bit messy.", false, 0, 0, false, true, 0);
        AllItems[14] = bloodykey;

        Item ritualsitekey = new Item();
        ItemSet(ritualsitekey, 15, key2ui, "Ritual Site Key", "Key", "Key to the Vod ritual site. Castle Vod is the only Regia establishment with a large open area dubbed a 'Ritual Site'. The Site was constructed by special request of the Magister. Its function is unknown", false, 0, 0, false, true, 0);
        AllItems[15] = ritualsitekey;

        Item squidsoul = new Item();
        ItemSet(squidsoul, 16, boss1soului, "Squid Soul", "Soul", "Soul essence of the Lifeless Abomination, the mysterious creature lurking in the Castle Vod Undercroft. It is nothing at all like a human soul, or like any living creature's soul.\n\nEspecially large souls have a hard time funneling into the Synthus, and need to be physically crushed to give it that final push. Use to gain a large amount of Energy or save to use for making new Spells at the Lab.", false, 0, 0, false, false, 800);
        AllItems[16] = squidsoul;

        /* ---- HATS ---- */
        Hat redHat = new Hat();
        HatSet(redHat, 0, "Crimson Crusader Topper", "A hat worn by the group known as the crimson crusaders who were renowned for their undetakings in blood chemistry. Formerly Regia disciples who focused on biochemistry, very little is known about those who experiment with blood. There are tales of Crimson Crusaders who had the ability to completely pop every artery of their enemies, but such stories are believed to be fictitious.", redhatui, hatredoverworld, hatredbig);
        AllHats[0] = redHat;

        Hat blueHat = new Hat();
        HatSet(blueHat, 1, "Aqua Regia Hat", "Hat worn by the disciples of Aqua Regia, who devote their life to studying the properties of water, due to its importance in nature. The Regia people were once known as peaceful nomads, and have built several castles and villages across the land as they hope to spread their beliefs of water. Recent developments in discoveries about using water as an effective weapon have changed that, however.", bluehatui, hatdefault, bluehatbig);
        AllHats[1] = blueHat;

        Hat brownHat = new Hat();
        HatSet(brownHat, 2, "Sancta Hat", "Worn by low ranking disciples of Sancta. Followers of the Sanct have a very strict intolerance to the chemical magics. Instead, they worship the Sancta Choir, a mysterious group of high ranking members of the Sanct whose singing is said to somehow destructively interfere with the Synthus.", brownhaticon, brownhatig, brownhatbig);
        AllHats[2] = brownHat;

        Hat blueber = new Hat();
        HatSet(blueber, 3, "Kratzhoff Beret", "Beret and Mask worn by the Kratzhoff, a people who are said to live in the far West. They are most notorious for their aptitude in Biochemistry and healing. It is said that Kratzhoff encampments are the final beacons of Healing and Repose for humanity, amongst the seemingly endless Wars. The mask is said to distance the healer from the disease of their patient.", bluebereticon, blueberetig, blueberetbig);
        AllHats[3] = blueber;

        /* --- TUNICS --- */
        Tunic vest1 = new Tunic();
        TunicSet(vest1, 0, tunicui, "Tattered Tunic", "Old tunic that has very limited defensive capabilities. Leather tunics have been produced for several centuries now, due to their moderate defensive capabilities and relatively high flexibility. This particular one seems to have been worn out by some sort of battle.", 0.1f, -0.1f, 0);
        AllTunics[0] = vest1;

        Tunic nullVest = new Tunic();
        TunicSet(nullVest, 1, nullui, "", "", 0f, 0f, 0f);
        AllTunics[1] = nullVest;

        /* -- AMULETS -- */
        Amulet ammy1 = new Amulet();
        AmuletSet(ammy1, 0, sapphui, "Sapphire Amulet", "Amulet embedded with a sapphire. Quite common amongst aqua regia soldiers. The sapphire was thought to contain secrets in the studies of water, but was later found out that its distinctive color was simply due to impurities of the Aluminum Oxide that it contains.", 0.01f, 500f);
        AllAmulets[0] = ammy1;

        Amulet nullAmmy = new Amulet();
        AmuletSet(nullAmmy, 1, nullui, "", "", 0.025f, 100000f);
        AllAmulets[1] = nullAmmy;

        EquippedAmulet = 1;
        EquippedHat = 1;
        EquippedTunic = 1;
    }
	public void recreateFighterItem(int x, int y, int i){
		Item item;
		if(PlayerPrefs.GetString("Fighter Item type" + i) == "ManaPotion"){
			item = new ManaPotion();
			inventory.addItem(x,y,item, inventorySlots, inventoryItems);
		}
		else if(PlayerPrefs.GetString("Fighter Item type"  + i) == "HealthPotion"){
			item = new HealthPotion();
			inventory.addItem(x,y,item, inventorySlots, inventoryItems);
		}
		else if(PlayerPrefs.GetString("Fighter Item type"  + i) == "Axe"){
			item = new Axe();
			inventory.addItem(x,y,item, inventorySlots, inventoryItems);
		}
		else if(PlayerPrefs.GetString( "Fighter Item type" + i) == "Ring"){
			item = new Ring();
			inventory.addItem(x,y,item, inventorySlots, inventoryItems);
		}
		else if(PlayerPrefs.GetString("Fighter Item type" + i) == "Chest"){
			item = new Chest();
			inventory.addItem(x,y,item, inventorySlots, inventoryItems);
		}
		else if(PlayerPrefs.GetString("Fighter Item type" + i) == "Boots"){
			item = new Boots();
			inventory.addItem(x,y,item, inventorySlots, inventoryItems);
		}
		else if(PlayerPrefs.GetString("Fighter Item type"  + i) == "Amulet"){
			item = new Amulet();
			inventory.addItem(x,y,item, inventorySlots, inventoryItems);
		}
		else if(PlayerPrefs.GetString( "Fighter Item type" + i) == "Sword"){
			item = new Sword();
			inventory.addItem(x,y,item, inventorySlots, inventoryItems);
		}
	}
Beispiel #37
0
        // Load the monster.txt drop file.
        private void LoadDropFile(bool edit)
        {
            var lines = (edit == false) ? File.ReadAllLines(Path.Combine(Settings.DropPath, String.Format("{0}.txt", listBoxMonsters.SelectedItem)), Encoding.GetEncoding("euc-kr")) : textBoxDropList.Lines;

            for (int i = 0; i < lines.Length; i++)
            {
                if (lines[i].StartsWith(";Gold"))
                {
                    if (lines[i + 1].StartsWith("1/"))
                    {
                        var workingLine = lines[i + 1].Split(' ');
                        GoldOdds = workingLine[0].Remove(0, 2);
                        Gold     = workingLine[2];
                        break;
                    }
                    else
                    {
                        GoldOdds = "0";
                        Gold     = "0";
                    }
                }
            }

            string[] Headers = new string[34]
            {
                ";Weapons",
                ";Armours",
                ";Helmets",
                ";Necklaces",
                ";Bracelets",
                ";Rings",
                ";Amulets",
                ";Belts",
                ";Boots",
                ";Stones",
                ";Torches",
                ";Potions",
                ";Ores",
                ";Meat",
                ";Crafting Materials",
                ";Scrolls",
                ";Gems",
                ";Mount",
                ";Books",
                ";Nothing",
                ";Script",
                ";Reins",
                ";Bells",
                ";Saddle",
                ";Ribbon",
                ";Mask",
                ";Food",
                ";Hook",
                ";Float",
                ";Bait",
                ";Finder",
                ";Reel",
                ";Fish",
                ";Quest"
            };

            for (int i = 0; i < Headers.Length; i++)
            {
                for (int j = 0; j < lines.Length; j++)
                {
                    if (lines[j].StartsWith(Headers[i]))
                    {
                        for (int k = j + 1; k < lines.Length; k++)
                        {
                            if (lines[k].StartsWith(";"))
                            {
                                break;
                            }

                            var workingLine = lines[k].Split(' ');
                            if (workingLine.Length < 2)
                            {
                                continue;
                            }

                            var quest = "";

                            if (workingLine.Length > 2 && workingLine[2] == "Q")
                            {
                                quest = workingLine[2];
                            }

                            DropItem newDropItem = new DropItem {
                                Odds = workingLine[0], Name = workingLine[1], Quest = quest
                            };
                            switch (i)
                            {
                            case 0:
                                Weapon.Add(newDropItem);
                                break;

                            case 1:
                                Armour.Add(newDropItem);
                                break;

                            case 2:
                                Helmet.Add(newDropItem);
                                break;

                            case 3:
                                Necklace.Add(newDropItem);
                                break;

                            case 4:
                                Bracelet.Add(newDropItem);
                                break;

                            case 5:
                                Ring.Add(newDropItem);
                                break;

                            case 6:
                                Amulet.Add(newDropItem);
                                break;

                            case 7:
                                Belt.Add(newDropItem);
                                break;

                            case 8:
                                Boot.Add(newDropItem);
                                break;

                            case 9:
                                Stone.Add(newDropItem);
                                break;

                            case 10:
                                Torch.Add(newDropItem);
                                break;

                            case 11:
                                Potion.Add(newDropItem);
                                break;

                            case 12:
                                Ore.Add(newDropItem);
                                break;

                            case 13:
                                Meat.Add(newDropItem);
                                break;

                            case 14:
                                CraftingMaterial.Add(newDropItem);
                                break;

                            case 15:
                                Scrolls.Add(newDropItem);
                                break;

                            case 16:
                                Gem.Add(newDropItem);
                                break;

                            case 17:
                                Mount.Add(newDropItem);
                                break;

                            case 18:
                                Book.Add(newDropItem);
                                break;

                            case 19:
                                Nothing.Add(newDropItem);
                                break;

                            case 20:
                                Script.Add(newDropItem);
                                break;

                            case 21:
                                Reins.Add(newDropItem);
                                break;

                            case 22:
                                Bells.Add(newDropItem);
                                break;

                            case 23:
                                Saddle.Add(newDropItem);
                                break;

                            case 24:
                                Ribbon.Add(newDropItem);
                                break;

                            case 25:
                                Mask.Add(newDropItem);
                                break;

                            case 26:
                                Food.Add(newDropItem);
                                break;

                            case 27:
                                Hook.Add(newDropItem);
                                break;

                            case 28:
                                Float.Add(newDropItem);
                                break;

                            case 29:
                                Bait.Add(newDropItem);
                                break;

                            case 30:
                                Finder.Add(newDropItem);
                                break;

                            case 31:
                                Reel.Add(newDropItem);
                                break;

                            case 32:
                                Fish.Add(newDropItem);
                                break;

                            case 33:
                                Quest.Add(newDropItem);
                                break;

                            default:
                                break;
                            }
                        }
                    }
                }
            }
        }