public Page1()
        {
            InitializeComponent();


            Things Copper_Armor       = new Things();
            Things Tunic              = new Things();
            Things Magic_Barite       = new Things();
            Things Potion_Of_Strength = new Things();

            Copper_Armor       SA  = new Copper_Armor();
            Tunic              T   = new Tunic();
            Magic_Barite       MB  = new Magic_Barite();
            Potion_Of_Strength POS = new Potion_Of_Strength();


            Copper_Armor.itemName        = $"{SA.Name}";
            Copper_Armor.itemDescription = $"Durability = {SA.Durability} , Resistance = {SA.Resistance} , Health = {SA.Health}";

            Tunic.itemName        = $"{T.Name}";
            Tunic.itemDescription = $"Durability = {T.Durability} , Resistance = {T.Resistance} , Healt = {T.Health} , Intelligence = {T.Intelligence}";

            Magic_Barite.itemName        = $"{MB.Name}";
            Magic_Barite.itemDescription = $"Durability = {MB.Durability} , Resistance = {MB.Resistance} , Hurt = {MB.Hurt}";

            Potion_Of_Strength.itemName        = $"{POS.Name}";
            Potion_Of_Strength.itemDescription = "Increase the " + POS.Health + "% of its strength.";


            DataGrid.Items.Add(Copper_Armor);
            DataGrid.Items.Add(Tunic);
            DataGrid.Items.Add(Magic_Barite);
            DataGrid.Items.Add(Potion_Of_Strength);
        }
 public void AddTunic(string id)
 {
     Tunic x = new Tunic();
     x.ID = id;
     x.Description = "A tunic";
     Tunics.Add(x);
 }
Пример #3
0
        public static Item GetRandomShirt()
        {
            Item shirt = null;

            switch (Utility.Random(5))
            {
            case 0:
                shirt = new Doublet(GetRandomHue());
                break;

            case 1:
                shirt = new Surcoat(GetRandomHue());
                break;

            case 2:
                shirt = new Tunic(GetRandomHue());
                break;

            case 3:
                shirt = new FancyShirt(GetRandomHue());
                break;

            case 4:
                shirt = new Shirt(GetRandomHue());
                break;
            }

            return(shirt);
        }
    public void AddTunic(string id)
    {
        Tunic x = new Tunic();

        x.ID          = id;
        x.Description = "A tunic";
        Tunics.Add(x);
    }
Пример #5
0
            public InternalBuyInfo()
            {
                Add(new GenericBuyInfo("Bolt of Cloth", typeof(BoltOfCloth), BoltOfCloth.GetSBPurchaseValue(), 50, 0xf95, 0));

                Add(new GenericBuyInfo("Scissors", typeof(Scissors), Scissors.GetSBPurchaseValue(), 25, 0xF9F, 0));
                Add(new GenericBuyInfo("Sewing Kit", typeof(SewingKit), SewingKit.GetSBPurchaseValue(), 50, 0xF9D, 0));
                Add(new GenericBuyInfo("Dyes", typeof(Dyes), Dyes.GetSBPurchaseValue(), 25, 0xFA9, 0));
                Add(new GenericBuyInfo("Dye Tub", typeof(DyeTub), DyeTub.GetSBPurchaseValue(), 25, 0xFAB, 0));

                //Hats
                Add(new GenericBuyInfo("Skull Cap", typeof(SkullCap), SkullCap.GetSBPurchaseValue(), 25, 0x1544, 0));
                Add(new GenericBuyInfo("Bandana", typeof(Bandana), Bandana.GetSBPurchaseValue(), 25, 0x1540, 0));
                Add(new GenericBuyInfo("Floppy Hat", typeof(FloppyHat), FloppyHat.GetSBPurchaseValue(), 25, 0x1713, 0));
                Add(new GenericBuyInfo("Cap", typeof(Cap), Cap.GetSBPurchaseValue(), 25, 0x1715, 0));
                Add(new GenericBuyInfo("Wide Brim Hat", typeof(WideBrimHat), WideBrimHat.GetSBPurchaseValue(), 25, 0x1714, 0));
                Add(new GenericBuyInfo("Tall Straw Hat", typeof(TallStrawHat), TallStrawHat.GetSBPurchaseValue(), 25, 0x1716, 0));
                Add(new GenericBuyInfo("Bonnet", typeof(Bonnet), Bonnet.GetSBPurchaseValue(), 25, 0x1719, 0));
                Add(new GenericBuyInfo("Feathered Hat", typeof(FeatheredHat), FeatheredHat.GetSBPurchaseValue(), 25, 0x171A, 0));
                Add(new GenericBuyInfo("Tricorne Hat", typeof(TricorneHat), TricorneHat.GetSBPurchaseValue(), 25, 0x171B, 0));
                Add(new GenericBuyInfo("Jester Hat", typeof(JesterHat), JesterHat.GetSBPurchaseValue(), 25, 0x171C, 0));
                Add(new GenericBuyInfo("Wizards Hat", typeof(WizardsHat), WizardsHat.GetSBPurchaseValue(), 25, 0x1718, 0));

                //Shirts
                Add(new GenericBuyInfo("Doublet", typeof(Doublet), Doublet.GetSBPurchaseValue(), 25, 0x1F7B, 0));
                Add(new GenericBuyInfo("Shirt", typeof(Shirt), Shirt.GetSBPurchaseValue(), 25, 0x1517, 0));
                Add(new GenericBuyInfo("Fancy Shirt", typeof(FancyShirt), FancyShirt.GetSBPurchaseValue(), 25, 0x1EFD, 0));
                Add(new GenericBuyInfo("Tunic", typeof(Tunic), Tunic.GetSBPurchaseValue(), 25, 0x1FA1, 0));
                Add(new GenericBuyInfo("Surcoat", typeof(Surcoat), Surcoat.GetSBPurchaseValue(), 25, 0x1FFD, 0));
                Add(new GenericBuyInfo("Jester Suit", typeof(JesterSuit), JesterSuit.GetSBPurchaseValue(), 25, 0x1F9F, 0));
                Add(new GenericBuyInfo("Plain Dress", typeof(PlainDress), PlainDress.GetSBPurchaseValue(), 25, 0x1F01, 0));
                Add(new GenericBuyInfo("Fancy Dress", typeof(FancyDress), FancyDress.GetSBPurchaseValue(), 25, 0x1EFF, 0));
                Add(new GenericBuyInfo("Robe", typeof(Robe), Robe.GetSBPurchaseValue(), 25, 0x1F03, 0));

                //Pants
                Add(new GenericBuyInfo("Short Pants", typeof(ShortPants), ShortPants.GetSBPurchaseValue(), 25, 0x152E, 0));
                Add(new GenericBuyInfo("Long Pants", typeof(LongPants), LongPants.GetSBPurchaseValue(), 25, 0x1539, 0));
                Add(new GenericBuyInfo("Kilt", typeof(Kilt), Kilt.GetSBPurchaseValue(), 25, 0x1537, 0));
                Add(new GenericBuyInfo("Skirt", typeof(Skirt), Skirt.GetSBPurchaseValue(), 25, 0x1516, 0));

                Add(new GenericBuyInfo("Cloak", typeof(Cloak), Cloak.GetSBPurchaseValue(), 25, 0x1515, 0));
                Add(new GenericBuyInfo("Body Sash", typeof(BodySash), BodySash.GetSBPurchaseValue(), 25, 0x1541, 0));
                Add(new GenericBuyInfo("Half Apron", typeof(HalfApron), HalfApron.GetSBPurchaseValue(), 25, 0x153b, 0));
                Add(new GenericBuyInfo("Full Apron", typeof(FullApron), FullApron.GetSBPurchaseValue(), 25, 0x153d, 0));

                //Shoes
                Add(new GenericBuyInfo("Sandals", typeof(Sandals), Sandals.GetSBPurchaseValue(), 25, 0x170D, 0));
                Add(new GenericBuyInfo("Shoes", typeof(Shoes), Shoes.GetSBPurchaseValue(), 25, 0x170F, 0));
                Add(new GenericBuyInfo("Boots", typeof(Boots), Boots.GetSBPurchaseValue(), 25, 0x170B, 0));
                Add(new GenericBuyInfo("Thigh Boots", typeof(ThighBoots), ThighBoots.GetSBPurchaseValue(), 25, 0x1711, 0));

                //TEST: FIX
                //Add( new GenericBuyInfo( typeof( SpoolOfThread ), 18, 20, 0xFA0, 0 ) );
                //Add( new GenericBuyInfo( typeof( Flax ), 156, 20, 0x1A9C, 0 ) );
                //Add( new GenericBuyInfo( typeof( Cotton ), 156, 20, 0xDF9, 0 ) );
                //Add( new GenericBuyInfo( typeof( Wool ), 78, 20, 0xDF8, 0 ) );
            }
Пример #6
0
 private void TunicSet(Tunic tunic, int id, Texture2D icon, string name, string descrip, float resist, float moveSpeed, float Maxhealth)
 {
     tunic.tunicID          = id;
     tunic.tunicIcon        = icon;
     tunic.tunicName        = name;
     tunic.tunicDescription = descrip;
     tunic.tunicResist      = resist;
     tunic.moveSpeed        = moveSpeed;
     tunic.maxhealth        = Maxhealth;
 }
Пример #7
0
        public Santa()
        {
            Name  = "SantaClaus";
            Title = "Quest Giver";

            Body     = 400;
            Hue      = 1002;
            CantWalk = true;
            Blessed  = true;



            Item longpants;

            longpants     = new LongPants();
            longpants.Hue = 1109;
            AddItem(longpants);


            Item tunic;

            tunic     = new Tunic();
            tunic.Hue = 33;
            AddItem(tunic);


            Item leatherninjabelt;

            leatherninjabelt     = new LeatherNinjaBelt();
            leatherninjabelt.Hue = 1109;
            AddItem(leatherninjabelt);


            FacialHairItemID = 0x204C;
            FacialHairHue    = 1153;

            Item JesterHat;

            JesterHat     = new JesterHat();
            JesterHat.Hue = 33;
            AddItem(JesterHat);



            HairItemID = 0x203C;
            HairHue    = 1153;

            Item boots;

            boots     = new Boots();
            boots.Hue = 1109;
            AddItem(boots);
        }
Пример #8
0
            public InternalSellInfo()
            {
                Add(typeof(BoltOfCloth), BoltOfCloth.GetSBSellValue());

                Add(typeof(Scissors), Scissors.GetSBSellValue());
                Add(typeof(SewingKit), SewingKit.GetSBSellValue());
                Add(typeof(Dyes), Dyes.GetSBSellValue());
                Add(typeof(DyeTub), DyeTub.GetSBSellValue());

                Add(typeof(SkullCap), SkullCap.GetSBSellValue());
                Add(typeof(Bandana), Bandana.GetSBSellValue());
                Add(typeof(FloppyHat), FloppyHat.GetSBSellValue());
                Add(typeof(Cap), Cap.GetSBSellValue());
                Add(typeof(WideBrimHat), WideBrimHat.GetSBSellValue());
                Add(typeof(TallStrawHat), TallStrawHat.GetSBSellValue());
                Add(typeof(Bonnet), Bonnet.GetSBSellValue());
                Add(typeof(FeatheredHat), FeatheredHat.GetSBSellValue());
                Add(typeof(TricorneHat), TricorneHat.GetSBSellValue());
                Add(typeof(JesterHat), JesterHat.GetSBSellValue());
                Add(typeof(WizardsHat), WizardsHat.GetSBSellValue());

                Add(typeof(Doublet), Doublet.GetSBSellValue());
                Add(typeof(Shirt), Shirt.GetSBSellValue());
                Add(typeof(FancyShirt), FancyShirt.GetSBSellValue());
                Add(typeof(Tunic), Tunic.GetSBSellValue());
                Add(typeof(Surcoat), Surcoat.GetSBSellValue());
                Add(typeof(JesterSuit), JesterSuit.GetSBSellValue());
                Add(typeof(PlainDress), PlainDress.GetSBSellValue());
                Add(typeof(FancyDress), FancyDress.GetSBSellValue());
                Add(typeof(Robe), Robe.GetSBSellValue());

                Add(typeof(ShortPants), ShortPants.GetSBSellValue());
                Add(typeof(LongPants), LongPants.GetSBSellValue());
                Add(typeof(Kilt), Kilt.GetSBSellValue());
                Add(typeof(Skirt), Skirt.GetSBSellValue());

                Add(typeof(Cloak), Cloak.GetSBSellValue());
                Add(typeof(BodySash), BodySash.GetSBSellValue());
                Add(typeof(HalfApron), HalfApron.GetSBSellValue());
                Add(typeof(FullApron), FullApron.GetSBSellValue());

                Add(typeof(Sandals), Sandals.GetSBSellValue());
                Add(typeof(Shoes), Shoes.GetSBSellValue());
                Add(typeof(Boots), Boots.GetSBSellValue());
                Add(typeof(ThighBoots), ThighBoots.GetSBSellValue());
            }
Пример #9
0
        public void InitOutfit()
        {
            Item hair = new Item(8261)
            {
                Hue     = 1118,
                Layer   = Layer.Hair,
                Movable = false
            };

            AddItem(hair);

            Item shirt = new Tunic()
            {
                Hue     = 3,
                Movable = false
            };

            AddItem(shirt);

            Item belt = new LeatherNinjaBelt()
            {
                Hue     = 0,
                Movable = false
            };

            AddItem(belt);

            Item pants = new LongPants()
            {
                Hue     = 1150,
                Movable = false
            };

            AddItem(pants);

            Shoes shoes = new Shoes()
            {
                Hue     = 1150,
                Movable = false
            };

            AddItem(shoes);

            PackGold(50, 200);
        }
Пример #10
0
        public override void InitOutfit()
        {
            BearMask head = new BearMask();

            head.Hue = 347;
            AddItem(head);
            Tunic chest = new Tunic();

            chest.Hue = 347;
            AddItem(chest);
            LongPants leg = new LongPants();

            leg.Hue = 347;
            AddItem(leg);
            ThighBoots feet = new ThighBoots();

            feet.Hue = 347;
            AddItem(feet);
        }
Пример #11
0
        public override void InitOutfit()
        {
            Item item = null;

            item     = AddRandomHair();
            item.Hue = Utility.RandomHairHue();
            item     = AddRandomFacialHair(item.Hue);
            item     = new PlateChest();
            AddItem(item);
            item = new PlateLegs();
            AddItem(item);
            item = new PlateArms();
            AddItem(item);
            item = new PlateGloves();
            AddItem(item);
            switch (Utility.Random(6))
            {
            case 0: item = new PlateHelm(); break;

            case 1: item = new ChainCoif(); break;

            case 2: item = new CloseHelm(); break;

            case 3: item = new Bascinet(); break;

            case 4: item = new NorseHelm(); break;

            case 5:
            default: item = new Helmet(); break;
            }
            AddItem(item);
            item     = new Tunic();
            item.Hue = Utility.RandomNondyedHue();
            AddItem(item);
            item = new PlateGorget();
            AddItem(item);
            item = new DoubleAxe();
            AddItem(item);
            PackGold(15, 100);
        }
Пример #12
0
        public XmlQuestNPC(int gender, bool clothes) : base(AIType.AI_Melee, FightMode.None, 10, 1, 0.8, 3.0)
        {
            SetStr(10, 30);
            SetDex(10, 30);
            SetInt(10, 30);

            Fame  = 50;
            Karma = 50;

            CanHearGhosts = true;

            SpeechHue = Utility.RandomDyedHue();
            Title     = string.Empty;
            Hue       = Utility.RandomSkinHue();

            switch (gender)
            {
            case -1: this.Female = Utility.RandomBool(); break;

            case 0: this.Female = false; break;

            case 1: this.Female = true; break;
            }

            if (clothes)
            {
                if (this.Female)
                {
                    this.Body = 0x191;
                    this.Name = NameList.RandomName("female");
                    Item hair = new Item(Utility.RandomList(0x203B, 0x203C, 0x203D, 0x2045, 0x204A, 0x2046, 0x2049));
                    hair.Hue     = Utility.RandomHairHue();
                    hair.Layer   = Layer.Hair;
                    hair.Movable = false;
                    AddItem(hair);
                    Item hat = null;
                    switch (Utility.Random(5))//4 hats, one empty, for no hat
                    {
                    case 0: hat = new FloppyHat(Utility.RandomNeutralHue()); break;

                    case 1: hat = new FeatheredHat(Utility.RandomNeutralHue()); break;

                    case 2: hat = new Bonnet(); break;

                    case 3: hat = new Cap(Utility.RandomNeutralHue()); break;
                    }
                    AddItem(hat);
                    Item pants = null;
                    switch (Utility.Random(3))
                    {
                    case 0: pants = new ShortPants(GetRandomHue()); break;

                    case 1: pants = new LongPants(GetRandomHue()); break;

                    case 2: pants = new Skirt(GetRandomHue()); break;
                    }
                    AddItem(pants);
                    Item shirt = null;
                    switch (Utility.Random(7))
                    {
                    case 0: shirt = new Doublet(GetRandomHue()); break;

                    case 1: shirt = new Surcoat(GetRandomHue()); break;

                    case 2: shirt = new Tunic(GetRandomHue()); break;

                    case 3: shirt = new FancyDress(GetRandomHue()); break;

                    case 4: shirt = new PlainDress(GetRandomHue()); break;

                    case 5: shirt = new FancyShirt(GetRandomHue()); break;

                    case 6: shirt = new Shirt(GetRandomHue()); break;
                    }
                    AddItem(shirt);
                }
                else
                {
                    this.Body = 0x190;
                    this.Name = NameList.RandomName("male");
                    Item hair = new Item(Utility.RandomList(0x203B, 0x203C, 0x203D, 0x2044, 0x2045, 0x2047, 0x2048));
                    hair.Hue     = Utility.RandomHairHue();
                    hair.Layer   = Layer.Hair;
                    hair.Movable = false;
                    AddItem(hair);
                    Item beard = new Item(Utility.RandomList(0x0000, 0x203E, 0x203F, 0x2040, 0x2041, 0x2067, 0x2068, 0x2069));
                    beard.Hue     = hair.Hue;
                    beard.Layer   = Layer.FacialHair;
                    beard.Movable = false;
                    AddItem(beard);
                    Item hat = null;
                    switch (Utility.Random(7)) //6 hats, one empty, for no hat
                    {
                    case 0: hat = new SkullCap(GetRandomHue()); break;

                    case 1: hat = new Bandana(GetRandomHue()); break;

                    case 2: hat = new WideBrimHat(); break;

                    case 3: hat = new TallStrawHat(Utility.RandomNeutralHue()); break;

                    case 4: hat = new StrawHat(Utility.RandomNeutralHue()); break;

                    case 5: hat = new TricorneHat(Utility.RandomNeutralHue()); break;
                    }
                    AddItem(hat);
                    Item pants = null;
                    switch (Utility.Random(2))
                    {
                    case 0: pants = new ShortPants(GetRandomHue()); break;

                    case 1: pants = new LongPants(GetRandomHue()); break;
                    }
                    AddItem(pants);
                    Item shirt = null;
                    switch (Utility.Random(5))
                    {
                    case 0: shirt = new Doublet(GetRandomHue()); break;

                    case 1: shirt = new Surcoat(GetRandomHue()); break;

                    case 2: shirt = new Tunic(GetRandomHue()); break;

                    case 3: shirt = new FancyShirt(GetRandomHue()); break;

                    case 4: shirt = new Shirt(GetRandomHue()); break;
                    }
                    AddItem(shirt);
                }

                Item feet = null;
                switch (Utility.Random(3))
                {
                case 0: feet = new Boots(Utility.RandomNeutralHue()); break;

                case 1: feet = new Shoes(Utility.RandomNeutralHue()); break;

                case 2: feet = new Sandals(Utility.RandomNeutralHue()); break;
                }
                AddItem(feet);
            }
            Container pack = new Backpack();

            //pack.DropItem( new Gold( 0, 50 ) );

            pack.Movable = false;

            AddItem(pack);
        }
Пример #13
0
        public BaseShieldGuard() : base(AIType.AI_Melee, FightMode.Agressor, 14, 1, 0.8, 1.6)
        {
            Job = JobFragment.guard;

            Female = Utility.RandomBool();
            Body   = Female ? 401 : 400;
            Name   = NameList.RandomName(Female ? "female" : "male");
            Hue    = Utility.RandomSkinHue();
            SetStr(9000);
            SetDex(9000);
            SetInt(9000);
            Karma = 100;


            SetSkill(SkillName.Tactics, 90.1, 100);
            SetSkill(SkillName.MagicResist, 90.1, 100);
            SetSkill(SkillName.Parry, 90.1, 100);
            SetSkill(SkillName.Swords, 90.1, 100);
            SetSkill(SkillName.Macing, 90.1, 100);
            SetSkill(SkillName.Fencing, 90.1, 100);
            SetSkill(SkillName.Wrestling, 90.1, 100);
            SetSkill(SkillName.DetectHidden, 90.1, 100);
            SetSkill(SkillName.Forensics, 90.1, 100);


            Item item = null;

            if (!Female)
            {
                item     = AddRandomHair();
                item.Hue = Utility.RandomHairHue();
                item     = AddRandomFacialHair(item.Hue);
                item     = new Shirt();
                item.Hue = Utility.RandomNondyedHue();
                AddItem(item);
                item     = new ShortPants();
                item.Hue = Utility.RandomNondyedHue();
                AddItem(item);
                item = new PlateChest();
                AddItem(item);
                item = new PlateLegs();
                AddItem(item);
                item = new PlateArms();
                AddItem(item);
                item     = new Tunic();
                item.Hue = Utility.RandomRedHue();
                AddItem(item);
            }
            else
            {
                item     = AddRandomHair();
                item.Hue = Utility.RandomHairHue();
                item     = new Shirt();
                item.Hue = Utility.RandomNondyedHue();
                AddItem(item);
                item     = new Skirt();
                item.Hue = Utility.RandomNondyedHue();
                AddItem(item);
                item = new PlateChest();
                AddItem(item);
                item = new PlateLegs();
                AddItem(item);
                item = new PlateArms();
                AddItem(item);
                item     = new Tunic();
                item.Hue = Utility.RandomRedHue();
                AddItem(item);
            }

            VikingSword weapon = new VikingSword();

            weapon.Movable = false;
            AddItem(weapon);

            BaseShield shield = Shield;

            shield.Movable = false;
            AddItem(shield);
            PackGold(15, 100);
        }
Пример #14
0
        public Paladin() : base(AIType.AI_Melee, FightMode.Aggressor, 10, 1, 0.36, 0.56)
        {
            Female = Utility.RandomBool();
            Body   = Female ? 401 : 400;
            Title  = "the paladin";
            Name   = NameList.RandomName(Female ? "female" : "male");
            Hue    = Utility.RandomSkinHue();
            SetStr(64, 92);
            SetDex(46, 88);
            SetInt(37, 49);
            Karma = Utility.RandomMinMax(33, -25);


            SetSkill(SkillName.Tactics, 55, 77.5);
            SetSkill(SkillName.MagicResist, 55, 77.5);
            SetSkill(SkillName.Parry, 55, 77.5);
            SetSkill(SkillName.Swords, 55, 77.5);
            SetSkill(SkillName.Macing, 55, 77.5);
            SetSkill(SkillName.Fencing, 55, 77.5);
            SetSkill(SkillName.Wrestling, 55, 77.5);
            SetSkill(SkillName.ArmsLore, 52.5, 75);


            Item item = null;

            if (!Female)
            {
                int hairHue = Utility.RandomHairHue();
                Utility.AssignRandomHair(this, hairHue);
                Utility.AssignRandomFacialHair(this, hairHue);
                item = new PlateChest();
                AddItem(item);
                item = new PlateLegs();
                AddItem(item);
                item = new PlateArms();
                AddItem(item);
                item = new PlateGloves();
                AddItem(item);
                item = new PlateGorget();
                AddItem(item);
                switch (Utility.Random(5))
                {
                case 0: item = new PlateHelm(); break;

                case 1: item = new Helmet(); break;

                case 2: item = new CloseHelm(); break;

                case 3: item = new Bascinet(); break;

                case 4:
                default: item = new NorseHelm(); break;
                }
                AddItem(item);
                item     = new Tunic();
                item.Hue = Utility.RandomNondyedHue();
                AddItem(item);
                item     = new HeaterShield();
                item.Hue = Utility.RandomNondyedHue();
                AddItem(item);
                item = new VikingSword();
                AddItem(item);
                item = Utility.RandomBool() ? (Item) new Boots() : (Item) new ThighBoots();
                AddItem(item);
                PackGold(15, 100);
            }
            else
            {
                int hairHue = Utility.RandomHairHue();
                Utility.AssignRandomHair(this, hairHue);
                item = new PlateChest();
                AddItem(item);
                item = new PlateLegs();
                AddItem(item);
                item = new PlateArms();
                AddItem(item);
                item = new PlateGloves();
                AddItem(item);
                item = new PlateGorget();
                AddItem(item);
                switch (Utility.Random(5))
                {
                case 0: item = new PlateHelm(); break;

                case 1: item = new Helmet(); break;

                case 2: item = new CloseHelm(); break;

                case 3: item = new Bascinet(); break;

                case 4:
                default: item = new NorseHelm(); break;
                }
                AddItem(item);
                item     = new Tunic();
                item.Hue = Utility.RandomNondyedHue();
                AddItem(item);
                item     = new HeaterShield();
                item.Hue = Utility.RandomNondyedHue();
                AddItem(item);
                item = new VikingSword();
                AddItem(item);
                item = Utility.RandomBool() ? (Item) new Boots() : (Item) new ThighBoots();
                AddItem(item);
                PackGold(15, 100);
            }
        }
Пример #15
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;
    }
Пример #16
0
        public Commoner()
            : base(AIType.AI_Melee, FightMode.None, 10, 1, 0.8, 3.0)
        {
            SetStr(10, 30);
            SetDex(10, 30);
            SetInt(10, 30);

            Fame  = 50;
            Karma = 50;

            SpeechHue = Utility.RandomDyedHue();
            Title     = string.Empty;        //Commoner.Titles[Utility.Random( 0, Titles.Length )];
            Hue       = Utility.RandomSkinHue();
            if (this.Female = Utility.RandomBool())
            {
                this.Body = 0x191;
                this.Name = NameList.RandomName("female");

                HairItemID = Utility.RandomList(0x203B, 0x203C, 0x203D, 0x2045, 0x204A, 0x2046, 0x2049);
                HairHue    = Utility.RandomHairHue();

                Item hat = null;
                switch (Utility.Random(5))                   //4 hats, one empty, for no hat
                {
                case 0: hat = new FloppyHat(Utility.RandomNeutralHue()); break;

                case 1: hat = new FeatheredHat(Utility.RandomNeutralHue()); break;

                case 2: hat = new Bonnet(); break;

                case 3: hat = new Cap(Utility.RandomNeutralHue()); break;
                }
                AddItem(hat);
                Item pants = null;
                switch (Utility.Random(3))
                {
                case 0: pants = new ShortPants(GetRandomHue()); break;

                case 1: pants = new LongPants(GetRandomHue()); break;

                case 2: pants = new Skirt(GetRandomHue()); break;
                }
                AddItem(pants);
                Item shirt = null;
                switch (Utility.Random(7))
                {
                case 0: shirt = new Doublet(GetRandomHue()); break;

                case 1: shirt = new Surcoat(GetRandomHue()); break;

                case 2: shirt = new Tunic(GetRandomHue()); break;

                case 3: shirt = new FancyDress(GetRandomHue()); break;

                case 4: shirt = new PlainDress(GetRandomHue()); break;

                case 5: shirt = new FancyShirt(GetRandomHue()); break;

                case 6: shirt = new Shirt(GetRandomHue()); break;
                }
                AddItem(shirt);
            }
            else
            {
                this.Body = 0x190;
                this.Name = NameList.RandomName("male");

                HairItemID = Utility.RandomList(0x203B, 0x203C, 0x203D, 0x2044, 0x2045, 0x2047, 0x2048);
                HairHue    = Utility.RandomHairHue();

                FacialHairItemID = Utility.RandomList(0x0000, 0x203E, 0x203F, 0x2040, 0x2041, 0x2067, 0x2068, 0x2069);
                FacialHairHue    = HairHue;

                Item hat = null;
                switch (Utility.Random(7))                    //6 hats, one empty, for no hat
                {
                case 0: hat = new SkullCap(GetRandomHue()); break;

                case 1: hat = new Bandana(GetRandomHue()); break;

                case 2: hat = new WideBrimHat(); break;

                case 3: hat = new TallStrawHat(Utility.RandomNeutralHue()); break;

                case 4: hat = new StrawHat(Utility.RandomNeutralHue()); break;

                case 5: hat = new TricorneHat(Utility.RandomNeutralHue()); break;
                }
                AddItem(hat);
                Item pants = null;
                switch (Utility.Random(2))
                {
                case 0: pants = new ShortPants(GetRandomHue()); break;

                case 1: pants = new LongPants(GetRandomHue()); break;
                }
                AddItem(pants);
                Item shirt = null;
                switch (Utility.Random(5))
                {
                case 0: shirt = new Doublet(GetRandomHue()); break;

                case 1: shirt = new Surcoat(GetRandomHue()); break;

                case 2: shirt = new Tunic(GetRandomHue()); break;

                case 3: shirt = new FancyShirt(GetRandomHue()); break;

                case 4: shirt = new Shirt(GetRandomHue()); break;
                }
                AddItem(shirt);
            }

            Item feet = null;

            switch (Utility.Random(3))
            {
            case 0: feet = new Boots(Utility.RandomNeutralHue()); break;

            case 1: feet = new Shoes(Utility.RandomNeutralHue()); break;

            case 2: feet = new Sandals(Utility.RandomNeutralHue()); break;
            }
            AddItem(feet);
            Container pack = new Backpack();

            pack.Movable = false;

            AddItem(pack);
        }
Пример #17
0
        public DeerTrapper() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            Name = "Deer Trapper";
            Body = 400;
            Hue  = 1002;


            SetStr(796, 825);
            SetDex(86, 105);
            SetInt(436, 475);
            SetHits(478, 495);
            SetDamage(20, 30);


            Item longpants;

            longpants     = new LongPants();
            longpants.Hue = 944;
            AddItem(longpants);
            longpants.LootType = LootType.Newbied;

            Item shirt;

            shirt     = new Tunic();
            shirt.Hue = 605;
            AddItem(shirt);
            shirt.LootType = LootType.Newbied;


            Item StrawHat;

            StrawHat     = new StrawHat();
            StrawHat.Hue = 944;
            AddItem(StrawHat);
            StrawHat.LootType = LootType.Newbied;

            Item boots;

            boots     = new Boots();
            boots.Hue = 1109;
            AddItem(boots);
            boots.LootType = LootType.Newbied;


            this.FacialHairItemID = 0x203F;
            this.FacialHairHue    = 1001;


            this.HairItemID = 0x2049;
            this.HairHue    = 1001;



            DoubleAxe weapon = new DoubleAxe();

            weapon.Movable = false;
            AddItem(weapon);

            SetDamageType(ResistanceType.Physical, 100);

            SetResistance(ResistanceType.Physical, 55, 60);
            SetResistance(ResistanceType.Fire, 61, 71);
            SetResistance(ResistanceType.Cold, 30, 40);
            SetResistance(ResistanceType.Poison, 25, 35);
            SetResistance(ResistanceType.Energy, 35, 45);

            SetSkill(SkillName.MagicResist, 99.2, 100);
            SetSkill(SkillName.Tactics, 97.6, 100);
            SetSkill(SkillName.Wrestling, 90.1, 92.5);
            SetSkill(SkillName.Anatomy, 75.1, 78);



            PackGold(250, 350);
        }
Пример #18
0
        public ArcherGuard(Mobile target) : base(target)
        {
            Summoned = true;

            InitStats(1000, 1000, 1000);

            SpeechHue = 0;

            Hue = Utility.RandomSkinHue();

            #region Armor
            for (int i = 0; i < m_GuardArmor.Length; ++i)
            {
                m_GuardArmor[i].Resource = GuardTheme;
                AddItem(m_GuardArmor[i]);
                m_GuardArmor[i].Movable = false;
            }
            #endregion

            #region Cloth
            BaseClothing bC = null;

            switch (Utility.Random(3))
            {
            case 0:
                bC = new Doublet();
                break;

            case 1:
                bC = new Tunic();
                break;

            case 2:
                bC       = new BodySash();
                bC.Layer = Layer.Earrings;
                break;
            }

            if (bC != null)
            {
                bC.Resource = GuardTheme;
                AddItem(bC);
                bC.Movable = false;
            }
            #endregion

            #region Male/Female
            if (Female = Utility.RandomBool())
            {
                Body = 0x191;
                if (string.IsNullOrEmpty(Name))
                {
                    Name  = NameList.RandomName("female");
                    Title = "the guard";
                }

                FemalePlateChest ar = new FemalePlateChest();
                ar.Resource = GuardTheme;
                AddItem(ar);
                ar.Movable = false;
            }
            else
            {
                Body = 0x190;
                if (string.IsNullOrEmpty(Name))
                {
                    Name  = NameList.RandomName("male");
                    Title = "the guard";
                }

                PlateChest ar = new PlateChest();
                ar.Resource = GuardTheme;
                AddItem(ar);
                ar.Movable = false;
            }
            #endregion

            Utility.AssignRandomHair(this);

            if (Utility.RandomBool())
            {
                Utility.AssignRandomFacialHair(this, HairHue);
            }

            Container pack = new Backpack();
            pack.Movable = false;
            pack.DropItem(new Gold(10, 25));
            AddItem(pack);

            #region Weapon
            BaseWeapon weapon;
            Item       ammo;

            switch (Utility.Random(3))
            {
            case 1:
                weapon = new Bow();
                ammo   = new Arrow(250);
                break;

            case 2:
                weapon = new Crossbow();
                ammo   = new Bolt(250);
                break;

            case 3:
                weapon = new HeavyCrossbow();
                ammo   = new Bolt(250);
                break;

            default:
                weapon = new Bow();
                ammo   = new Arrow(250);
                break;
            }

            weapon.Crafter   = this;
            weapon.Resource  = GuardTheme;
            weapon.Quality   = WeaponQuality.Exceptional;
            weapon.Speed     = 1;
            weapon.MinDamage = 10000;
            weapon.MaxDamage = 10000;
            AddItem(weapon);
            weapon.Movable = false;

            AddItem(ammo);
            ammo.LootType = LootType.Blessed;
            #endregion

            Skills[SkillName.Anatomy].Base      = 120.0;
            Skills[SkillName.Tactics].Base      = 125.0;
            Skills[SkillName.Archery].Base      = 100.0;
            Skills[SkillName.MagicResist].Base  = 120.0;
            Skills[SkillName.DetectHidden].Base = 100.0;

            if (Utility.RandomDouble() <= 0.1)
            {
                new Horse().Rider = this;
            }

            NextCombatTime = DateTime.Now + TimeSpan.FromSeconds(1.0);
            Focus          = target;
        }
Пример #19
0
        public BaseShieldGuard(Mobile target) : base(target)
        {
            Item item = null;

            Female    = Utility.RandomBool();
            Body      = Female ? 401 : 400;
            SpeechHue = Utility.RandomDyedHue();
            Name      = NameList.RandomName(Female ? "female" : "male");
            Hue       = Utility.RandomSkinHue();
            Title     = "the guard";

            BaseSoundID = 332;

            int hairHue = Utility.RandomHairHue();

            Utility.AssignRandomHair(this, hairHue);

            item = new Shirt();
            AddItem(item);
            item.Hue = Utility.RandomNondyedHue();

            item = new PlateChest();
            AddItem(item);

            item = new PlateLegs();
            AddItem(item);

            item = new PlateArms();
            AddItem(item);

            item = new Tunic();
            AddItem(item);
            if (Type == GuildType.Order)
            {
                item.Hue = Utility.RandomBlueHue();
            }
            else
            {
                item.Hue = Utility.RandomRedHue();
            }

            item = new VikingSword();
            AddItem(item);

            item         = Shield;
            item.Movable = false;
            AddItem(item);

            if (!Female)
            {
                Utility.AssignRandomFacialHair(this, hairHue);

                item = new ShortPants();
                AddItem(item);
                item.Hue = Utility.RandomNondyedHue();
            }
            else
            {
                item = new Skirt();
                AddItem(item);
                item.Hue = Utility.RandomNondyedHue();
            }
        }
Пример #20
0
        public EvilElf() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            Name = "Evil Elf";
            Body = 400;
            Hue  = 1002;


            SetStr(796, 825);
            SetDex(86, 105);
            SetInt(436, 475);
            SetHits(478, 495);
            SetDamage(20, 30);


            Item longpants;

            longpants     = new LongPants();
            longpants.Hue = 1368;
            AddItem(longpants);
            longpants.LootType = LootType.Newbied;

            Item tunic;

            tunic     = new Tunic();
            tunic.Hue = 1368;
            AddItem(tunic);
            tunic.LootType = LootType.Newbied;


            Item JesterHat;

            JesterHat     = new JesterHat();
            JesterHat.Hue = 1368;
            AddItem(JesterHat);
            JesterHat.LootType = LootType.Newbied;

            Item boots;

            boots     = new Boots();
            boots.Hue = 1109;
            AddItem(boots);
            boots.LootType = LootType.Newbied;


            FacialHairItemID = 0x204B;
            FacialHairHue    = 996;


            HairItemID = 0x203C;
            HairHue    = 996;

            Item leatherninjabelt;

            leatherninjabelt     = new LeatherNinjaBelt();
            leatherninjabelt.Hue = 1109;
            AddItem(leatherninjabelt);
            leatherninjabelt.LootType = LootType.Newbied;

            DoubleAxe weapon = new DoubleAxe();

            weapon.Movable = false;
            AddItem(weapon);

            SetDamageType(ResistanceType.Physical, 100);

            SetResistance(ResistanceType.Physical, 55, 60);
            SetResistance(ResistanceType.Fire, 61, 71);
            SetResistance(ResistanceType.Cold, 30, 40);
            SetResistance(ResistanceType.Poison, 25, 35);
            SetResistance(ResistanceType.Energy, 35, 45);

            SetSkill(SkillName.MagicResist, 99.2, 100);
            SetSkill(SkillName.Tactics, 97.6, 100);
            SetSkill(SkillName.Wrestling, 90.1, 92.5);
            SetSkill(SkillName.Anatomy, 75.1, 78);



            PackGold(250, 350);
        }
Пример #21
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;
    }
Пример #22
0
        public WarriorGuard(Mobile target)
            : base(target)
        {
            SpeechHue = Utility.RandomDyedHue();
            Hue       = Utility.RandomSkinHue();
            Title     = "the guard";

            if (Female = Utility.RandomBool())
            {
                Body = 0x191;
                Name = NameList.RandomName("female");

                switch (Utility.Random(2))
                {
                case 0: AddItem(new LeatherSkirt()); break;

                case 1: AddItem(new LeatherShorts()); break;
                }

                AddItem(new FemalePlateChest());
            }
            else
            {
                Body = 0x190;
                Name = NameList.RandomName("male");

                Item item = new Shirt();
                AddItem(item);
                item.Hue = Utility.RandomNondyedHue();

                item = new ShortPants();
                AddItem(item);
                item.Hue = Utility.RandomNondyedHue();

                item = new PlateChest();
                AddItem(item);

                item = new PlateLegs();
                AddItem(item);

                item = new PlateArms();
                AddItem(item);

                item = new Tunic();
                AddItem(item);
                item.Hue = Utility.RandomNondyedHue();
            }
            Utility.AssignRandomHair(this);

            if (Female)
            {
                Utility.AssignRandomFacialHair(this, HairHue);
            }

            Halberd weapon = new Halberd();

            weapon.Movable = false;
            weapon.Quality = WeaponQuality.Exceptional;

            AddItem(weapon);

            Container pack = new Backpack();

            pack.Movable = false;

            pack.DropItem(new Gold(10, 25));

            AddItem(pack);
        }
Пример #23
0
 private void TunicSet(Tunic tunic, int id, Texture2D icon, string name, string descrip, float resist, float moveSpeed, float Maxhealth)
 {
     tunic.tunicID = id;
     tunic.tunicIcon = icon;
     tunic.tunicName = name;
     tunic.tunicDescription = descrip;
     tunic.tunicResist = resist;
     tunic.moveSpeed = moveSpeed;
     tunic.maxhealth = Maxhealth;
 }