示例#1
0
        public override void InitOutfit()
        {
            HairItemID       = 0x203C;
            FacialHairItemID = 0x204D;
            HairHue          = FacialHairHue = 0x8A7;

            AddItem(new Sandals());

            Item item;

            item = new Cloak
            {
                ItemID = 0x26AD,
                Hue    = 0x455
            };
            AddItem(item);

            item = new Robe
            {
                ItemID = 0x26AE,
                Hue    = 0x4AB
            };
            AddItem(item);

            item = new Backpack
            {
                Movable = false
            };
            AddItem(item);
        }
示例#2
0
        public override void Activate(Actor collector)
        {
            var cloakInfo = new CloakInfo()
            {
                InitialDelay = Info.InitialDelay,
                CloakDelay   = Info.CloakDelay,
                CloakSound   = Info.CloakSound,
                UncloakSound = Info.UncloakSound
            };
            var cloak = new Cloak(collector, cloakInfo);

            collector.World.AddFrameEndTask(w =>
            {
                w.Remove(collector);

                collector.AddTrait(cloak);
                if (collector.HasTrait <TargetableUnit <TargetableUnitInfo> >())
                {
                    collector.Trait <TargetableUnit <TargetableUnitInfo> >().RecievedCloak(collector);
                }

                w.Add(collector);
            });

            base.Activate(collector);
        }
示例#3
0
        private void EquipItems(Mobile Player, int TeamHue)
        {
            Player.SendMessage("Equiping Team Items");
            Player.AddItem(new PBArmor(TeamHue, 5136, Layer.Arms));
            Player.AddItem(new PBArmor(TeamHue, 5137, Layer.Pants));
            Player.AddItem(new PBArmor(TeamHue, 5138, Layer.Helm));
            Player.AddItem(new PBArmor(TeamHue, 5139, Layer.Neck));
            Player.AddItem(new PBArmor(TeamHue, 5140, Layer.Gloves));
            Player.AddItem(new PBArmor(TeamHue, 5141, Layer.InnerTorso));
            Player.AddItem(new PBWeapon(TeamHue, this));
            Cloak cloak = new Cloak(TeamHue);

            cloak.Movable = false;
            Player.AddItem(cloak);
            Player.AddToBackpack(new PaintBall(TeamHue, 200));

            switch (TeamHue)
            {
            case 3:  { Player.MoveToWorld(Team1Dest, MapDest);     m_Team1 += 1;     break; }

            case 38: { Player.MoveToWorld(Team2Dest, MapDest);     m_Team2 += 1;     break; }

            case 68: { Player.MoveToWorld(Team3Dest, MapDest);     m_Team3 += 1;     break; }

            case 53: { Player.MoveToWorld(Team4Dest, MapDest);     m_Team4 += 1;     break; }

            default: { Player.MoveToWorld(Team1Dest, MapDest);     m_Team1 += 1;     break; }
            }

            Player.Frozen = true;
        }
示例#4
0
 public UnloadCargo(Actor self, bool unloadAll)
 {
     this.self      = self;
     cargo          = self.Trait <Cargo>();
     cloak          = self.TraitOrDefault <Cloak>();
     this.unloadAll = unloadAll;
 }
示例#5
0
        public Infiltrate(Actor self, Actor target)
            : base(self, target)
        {
            this.target = target;

            cloak = self.TraitOrDefault <Cloak>();
        }
示例#6
0
        public RaresVendor() : base("the custom provisioner")
        {
            Item temp;

            temp         = new Shoes();
            temp.Hue     = 1953;
            temp.Movable = false;
            AddItem(temp);
            temp         = new LongPants();
            temp.Hue     = 01;
            temp.Movable = false;
            AddItem(temp);
            temp         = new Doublet();
            temp.Hue     = 1953;
            temp.Movable = false;
            AddItem(temp);
            temp         = new FancyShirt();
            temp.Hue     = 01;
            temp.Movable = false;
            AddItem(temp);
            temp         = new FloppyHat();
            temp.Hue     = 1953;
            temp.Movable = false;
            AddItem(temp);
            temp         = new Cloak();
            temp.Hue     = 1953;
            temp.Movable = false;
            AddItem(temp);
        }
示例#7
0
        public KhaldunSummoner() : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            Body  = 0x190;
            Name  = "Zealot of Khaldun";
            Title = "the Summoner";

            SetStr(50);
            SetDex(50);
            SetInt(100);

            SetHits(400);
            SetMana(2000);

            SetDamage(5, 10);

            SetSkill(SkillName.Wrestling, 90);
            SetSkill(SkillName.Tactics, 100);

            SetSkill(SkillName.MagicResist, 100);

            SetSkill(SkillName.Magery, 100);
            SetSkill(SkillName.EvalInt, 100);
            SetSkill(SkillName.Meditation, 100);

            VirtualArmor = 25;

            Fame  = 10000;
            Karma = -10000;

            LeatherGloves gloves = new LeatherGloves();

            gloves.Hue = 0x66D;
            AddItem(gloves);

            BoneHelm helm = new BoneHelm();

            helm.Hue = 0x835;
            AddItem(helm);

            Necklace necklace = new Necklace();

            necklace.Hue = 0x66D;
            AddItem(necklace);

            Cloak cloak = new Cloak();

            cloak.Hue = 0x66D;
            AddItem(cloak);

            Kilt kilt = new Kilt();

            kilt.Hue = 0x66D;
            AddItem(kilt);

            Sandals sandals = new Sandals();

            sandals.Hue = 0x66D;
            AddItem(sandals);
        }
示例#8
0
 public Infiltrate(Actor self, Actor target, EnterBehaviour enterBehaviour, Stance validStances, string notification)
     : base(self, target, enterBehaviour)
 {
     this.target       = target;
     this.validStances = validStances;
     this.notification = notification;
     cloak             = self.TraitOrDefault <Cloak>();
 }
示例#9
0
        public void EquipCloak(Cloak cloak)
        {
            var pc        = player.GetComponent <PlayerCharacter>();
            var prevCloak = pc.cloak;

            pc.ModifyStats(prevCloak, cloak);
            pc.cloak = cloak;
        }
示例#10
0
        public KhaldunSummoner() : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            Body  = 0x190;
            Title = "the Summoner";

            SetStr(1254, 1381);
            SetDex(93, 135);
            SetInt(745, 810);

            SetHits(694, 875);

            SetDamage(12, 20);



            SetSkill(SkillName.Wrestling, 90.1, 100.0);
            SetSkill(SkillName.Tactics, 90.1, 100.0);
            SetSkill(SkillName.MagicResist, 90.1, 100.0);
            SetSkill(SkillName.Magery, 90.1, 100.0);
            SetSkill(SkillName.EvalInt, 100.0);
            SetSkill(SkillName.Meditation, 120.1, 130.0);

            VirtualArmor = 36;
            Fame         = 10000;
            Karma        = -10000;

            LeatherGloves gloves = new LeatherGloves();

            gloves.Hue        = 0x66D;
            gloves.Identified = true;
            AddItem(Immovable(gloves));

            BoneHelm helm = new BoneHelm();

            helm.Hue        = 0x835;
            helm.Identified = true;
            AddItem(Immovable(helm));

            Necklace necklace = new Necklace();

            necklace.Hue = 0x66D;
            AddItem(Immovable(necklace));

            Cloak cloak = new Cloak();

            cloak.Hue = 0x66D;
            AddItem(Immovable(cloak));

            Kilt kilt = new Kilt();

            kilt.Hue = 0x66D;
            AddItem(Immovable(kilt));

            Sandals sandals = new Sandals();

            sandals.Hue = 0x66D;
            AddItem(Immovable(sandals));
        }
示例#11
0
    public static Cloak GenerateCloak()
    {
        var cloak = new Cloak {
            name        = "Random Cloak",
            description = ""
        };

        return(cloak);
    }
示例#12
0
        public SpriteArcher() : base(AIType.AI_Archer, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            Name   = "Sprite Archer";
            Hue    = 0x045e;
            Body   = 0x191;
            Female = true;
            AddItem(new LongHair(0x0597));
            AddItem(new Arrow(Utility.Random(20, 40)));

            SetStr(86, 90);
            SetDex(91, 100);
            SetInt(71, 85);

            SetHits(86, 90);
            SetStam(91, 100);
            SetMana(0);

            SetDamage(6, 10);

            SetDamageType(ResistanceType.Physical, 100);

            SetSkill(SkillName.Archery, 65.0, 88.0);
            SetSkill(SkillName.MagicResist, 50.0, 60.0);
            SetSkill(SkillName.Tactics, 75.0, 85.0);
            SetSkill(SkillName.Wrestling, 35.0, 58.0);

            Fame  = Utility.RandomMinMax(1700, 3700);
            Karma = Utility.RandomMinMax(-1500, -6000);

            VirtualArmor = 5;

            Item temp;

            temp         = new ThighBoots();
            temp.Hue     = 0x0599;
            temp.Movable = false;
            AddItem(temp);
            temp         = new LeatherChest();
            temp.Hue     = 0x0595;
            temp.Movable = false;
            AddItem(temp);
            temp         = new LeatherGloves();
            temp.Hue     = 0x0595;
            temp.Movable = false;
            AddItem(temp);
            temp         = new LeatherLegs();
            temp.Hue     = 0x0595;
            temp.Movable = false;
            AddItem(temp);
            temp         = new Cloak();
            temp.Hue     = 0x0599;
            temp.Movable = false;
            AddItem(temp);
            temp = new Bow();

            AddItem(temp);
        }
示例#13
0
 public override void OnStackChange(int delta)
 {
     base.OnStackChange(delta);
     if (delta > 0 && Creature is Creature creature)
     {
         var cloak = new Cloak(creature, 30);
         cloak.OnUpdate += c => Cloak.PowerUp(c, 5, ColorMatrix.Greyscale() * ColorMatrix.Tint(Color.SteelBlue), LerpHelper.QuadraticOut, LerpHelper.QuadraticOut, 20);
     }
 }
示例#14
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 ) );
            }
示例#15
0
        public GokturArcherOutrider() : base(AIType.AI_Archer, FightMode.Closest, 10, 1, 0.01, 0.005)
        {
            Name        = NameList.RandomName("orc");
            Body        = 0x190;
            BaseSoundID = 0x45A;
            Title       = "the Goktur Clan Outrider";
            Hue         = Utility.RandomMinMax(2207, 2212);

            SetStr(146, 180);
            SetDex(101, 130);
            SetInt(116, 140);

            SetHits(88, 108);

            SetDamage(4, 10);

            SetDamageType(ResistanceType.Physical, 100);

            SetResistance(ResistanceType.Physical, 40, 55);
            SetResistance(ResistanceType.Fire, 10, 20);
            SetResistance(ResistanceType.Cold, 10, 20);
            SetResistance(ResistanceType.Poison, 10, 20);
            SetResistance(ResistanceType.Energy, 10, 20);

            SetSkill(SkillName.Anatomy, 60.2, 100.0);
            SetSkill(SkillName.Archery, 80.1, 90.0);
            SetSkill(SkillName.MagicResist, 65.1, 90.0);
            SetSkill(SkillName.Tactics, 50.1, 75.0);
            SetSkill(SkillName.Wrestling, 50.1, 75.0);
            SetSkill(SkillName.Wrestling, 80.1, 90.0);

            Fame  = 0;
            Karma = 0;

            VirtualArmor = 56;

            AddItem(new Crossbow());
            PackItem(new CrossbowBolts(Utility.RandomMinMax(50, 70)));


            OrcishKinMask helm = new OrcishKinMask();

            helm.Hue = this.Hue;
            AddItem(helm);

            Boots boots = new Boots();

            boots.Hue = 0;
            AddItem(boots);

            Cloak cloak = new Cloak();

            cloak.Hue = 637;
            AddItem(cloak);
            new CuSidhe().Rider = this;
        }
 public void SetUp()
 {
     //Arrange
     bow       = new Bow("Arco gigante", 75, "Tira fuego");
     cloak     = new Cloak("Capa maxima", 80, "Agilidad");
     elf       = new Elf("Frank", 15, "Escurridizo");
     spellBook = new SpellBook("Libro de Hechizos Oscuros", "Hechizos oscuros");
     spell     = new Spell("Lumos", "La varita enciende luz", 65, 0);
     wizard    = new Wizard("Harry", "Mago De Apoyo", spellBook);
 }
示例#17
0
    public Cloak DropCloak(Character attacker)
    {
        var cloak = new Cloak {
            name        = "Random Cloak",
            description = ""
        };

        attacker.GetComponent <ObjectSpawner>().CreateFloatingStatusText("CLOAK FOUND", "Cloak found.");
        return(cloak);
    }
示例#18
0
        public override void InitOutfit()
        {
            Name       = "Susan Emiyoko";
            Body       = 606;
            Female     = true;
            Race       = Race.Elf;
            Hue        = 33813;
            HairItemID = 12225;
            HairHue    = 1109;

            SetStr(267);
            SetDex(229);
            SetInt(168);

            SetSkill(SkillName.Archery, 80.0, 100.0);
            SetSkill(SkillName.Anatomy, 59.5, 68.7);
            SetSkill(SkillName.Fletching, 80.0, 100.0);
            SetSkill(SkillName.Tactics, 60.0, 83.0);
            SetSkill(SkillName.Wrestling, 61.0, 93.0);

            PackGold(14, 46);

            Yumi weapon = new Yumi();

            weapon.Movable = true;
            weapon.Quality = WeaponQuality.Exceptional;
            AddItem(weapon);

            RoyalCirclet helm = new RoyalCirclet();

            helm.Movable = true;
            AddItem(helm);

            LeatherNinjaMitts gloves = new LeatherNinjaMitts();

            gloves.Movable = true;
            gloves.Hue     = 2219;
            AddItem(gloves);

            ConfessorDress dress = new ConfessorDress();

            dress.Movable = true;
            dress.Hue     = 783;
            AddItem(dress);

            Cloak cloak = new Cloak();

            cloak.Movable = true;
            cloak.Hue     = 463;
            AddItem(cloak);

            AddItem(new HeavyBoots(568));

            PackItem(new Arrow(Utility.RandomMinMax(20, 30)));
        }
示例#19
0
        public override void InitOutfit()
        {
            AddItem(new LordBritishSuit());

            Item cape = new Cloak();

            cape.Hue     = 38;
            cape.Movable = false;

            AddItem(cape);
        }
示例#20
0
 private void EquipCloak(int number)
 {
     if (cloak != null)
     {
         inventory.items.Add(cloak);
     }
     ModifyStats(cloak, inventory.items[number]);
     cloak = (Cloak)(inventory.items[number]);
     inventory.items.RemoveAt(number);
     GetComponent <HotbarUser>().CmdRefreshAbilityInfo();
 }
示例#21
0
    public Cloak ConvertTo()
    {
        var obj = new Cloak {
            name        = name,
            level       = level,
            description = description,
            quality     = quality
        };

        obj.stats = ConvertStatsTo(statKeys, statValues);
        return(obj);
    }
示例#22
0
 public Demolish(Actor self, Actor target, int delay, int flashes, int flashesDelay, int flashInterval, int flashDuration)
     : base(self, target)
 {
     this.target        = target;
     demolishables      = target.TraitsImplementing <IDemolishable>();
     this.delay         = delay;
     this.flashes       = flashes;
     this.flashesDelay  = flashesDelay;
     this.flashInterval = flashInterval;
     this.flashDuration = flashDuration;
     cloak = self.TraitOrDefault <Cloak>();
 }
示例#23
0
        public Sprite() : base(AIType.AI_SphereMelee, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            Name   = "Sprite";
            Hue    = 0x045e;
            Body   = 0x191;
            Female = true;
            AddItem(new PonyTail(0x0597));

            SetStr(86, 90);
            SetDex(91, 100);
            SetInt(71, 85);

            SetHits(86, 90);
            SetStam(91, 100);
            SetMana(0);

            SetDamage(6, 10);

            SetDamageType(ResistanceType.Physical, 100);

            SetSkill(SkillName.Fencing, 65.0, 88.0);
            SetSkill(SkillName.MagicResist, 60.0, 80.0);
            SetSkill(SkillName.Tactics, 75.0, 85.0);
            SetSkill(SkillName.Wrestling, 35.0, 58.0);

            Fame = Utility.RandomMinMax(1200, 3200);

            VirtualArmor = 5;

            Item temp;

            temp         = new ThighBoots();
            temp.Hue     = 0x0599;
            temp.Movable = false;
            AddItem(temp);
            temp         = new FemaleLeatherChest();
            temp.Hue     = 0x0599;
            temp.Movable = false;
            AddItem(temp);
            temp         = new Cloak();
            temp.Hue     = 0x0599;
            temp.Movable = false;
            AddItem(temp);
            temp         = new Kryss();
            temp.Hue     = 0x0599;
            temp.Movable = false;
            AddItem(temp);
            temp         = new LeatherLegs();
            temp.Hue     = 0x0599;
            temp.Movable = false;
            AddItem(temp);
        }
示例#24
0
        public override void InitOutfit()
        {
            int lowHue   = GetRandomHue();
            int hairHue  = Utility.RandomHairHue();
            int cloakHue = 1;                   // black

            if (Female)
            {
                AddItem(new PlainDress(GetRandomHue()));
            }
            else
            {
                AddItem(new Shirt(GetRandomHue()));
                AddItem(new ShortPants(lowHue));
            }

            AddItem(new Shoes(lowHue));

            if (Female == false)
            {
                if (Utility.RandomBool())
                {
                    AddItem(new Mustache(hairHue));
                }
                else
                {
                    AddItem(new Goatee(hairHue));
                }
            }

            // they are color coordinated :P
            Cloak     cloak = new Cloak(cloakHue);
            FloppyHat hat   = new FloppyHat(cloakHue);

            hat.LootType   = LootType.Newbied;
            cloak.LootType = LootType.Newbied;
            AddItem(cloak);
            AddItem(hat);

            AddItem(new Kryss());

            switch (Utility.Random(4))
            {
            case 0: AddItem(new ShortHair(hairHue)); break;

            case 1: AddItem(new LongHair(hairHue)); break;

            case 2: AddItem(new ReceedingHair(hairHue)); break;

            case 3: AddItem(new PonyTail(hairHue)); break;
            }
        }
        public PriestOfRessurection()
            : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            Name  = "Delevawn";
            Body  = 400;
            Title = "The Priest of Ressurection";

            SetStr(1235, 1391);
            SetDex(128, 139);
            SetInt(537, 664);

            SetHits(20000);

            SetDamage(21, 28);

            SetDamageType(ResistanceType.Physical, 60);
            SetDamageType(ResistanceType.Fire, 20);
            SetDamageType(ResistanceType.Energy, 20);

            SetResistance(ResistanceType.Physical, 55, 65);
            SetResistance(ResistanceType.Fire, 55, 65);
            SetResistance(ResistanceType.Cold, 55, 65);
            SetResistance(ResistanceType.Poison, 80, 90);
            SetResistance(ResistanceType.Energy, 60, 75);

            SetSkill(SkillName.Anatomy, 110.6, 116.1);
            SetSkill(SkillName.EvalInt, 100.0, 114.4);
            SetSkill(SkillName.Archery, 115.0, 120.0);
            SetSkill(SkillName.Magery, 100.0);
            SetSkill(SkillName.Meditation, 118.2, 127.8);
            SetSkill(SkillName.MagicResist, 120.0);
            SetSkill(SkillName.Tactics, 111.9, 134.5);
            SetSkill(SkillName.Wrestling, 119.7, 128.9);

            HoodedShroudOfShadows shroud = new HoodedShroudOfShadows();

            shroud.Hue = 1175;
            AddItem(shroud);

            Cloak cloak = new Cloak();

            cloak.Hue = 1175;
            AddItem(cloak);

            Fame  = 10000;
            Karma = -10000;

            VirtualArmor = 70;
        }
示例#26
0
        public override void InitOutfit()
        {
            WipeLayers();
            AddItem(new Sandals());

            // New Fall Fashions!

            Item EvilMageRobe = new Robe();

            EvilMageRobe.Hue      = 0x1;
            EvilMageRobe.LootType = LootType.Newbied;
            AddItem(EvilMageRobe);

            Item BDB = new BloodDrenchedBandana();

            BDB.LootType = LootType.Newbied;
            AddItem(BDB);

            Item Cloak = new Cloak();

            Cloak.Hue      = 0x1;
            Cloak.LootType = LootType.Newbied;
            AddItem(Cloak);

            Item Bracelet = new GoldBracelet();

            Bracelet.LootType = LootType.Newbied;
            AddItem(Bracelet);

            Item Ring = new GoldRing();

            Ring.LootType = LootType.Newbied;
            AddItem(Ring);

            Item hair = new LongHair();

            hair.Hue     = 0x47E;
            hair.Layer   = Layer.Hair;
            hair.Movable = false;
            AddItem(hair);

            Item beard = new Goatee();

            beard.Hue     = 0x47E;
            beard.Movable = false;
            AddItem(beard);

            //  End New Additions
        }
示例#27
0
        public Pilock()
        {
            Name     = "Pilock";
            Title    = "the farmer";
            Body     = 0x190;
            CantWalk = true;
            Hue      = Utility.RandomSkinHue();

            Item Boots = new Boots();

            Boots.Hue     = 2112;
            Boots.Name    = "Farming Boots";
            Boots.Movable = false;
            AddItem(Boots);

            Item FancyShirt = new FancyShirt();

            FancyShirt.Hue     = 1267;
            FancyShirt.Name    = "Farming Shirt";
            FancyShirt.Movable = false;
            AddItem(FancyShirt);

            Item LongPants = new LongPants();

            LongPants.Hue     = 847;
            LongPants.Name    = "Farming Pants";
            LongPants.Movable = false;
            AddItem(LongPants);

            Item Cloak = new Cloak();

            Cloak.Hue     = 1267;
            Cloak.Name    = "Farming Cloak";
            Cloak.Movable = false;
            AddItem(Cloak);



            int hairHue = 1814;

            switch (Utility.Random(1))
            {
            case 0: AddItem(new PonyTail(hairHue)); break;

            case 1: AddItem(new Goatee(hairHue)); break;
            }

            Blessed = true;
        }
示例#28
0
        public Armond() : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            Body  = 0x190;
            Name  = "Armond";
            Title = "The Dark One";

            SetStr(356, 396);
            SetDex(105, 135);
            SetInt(530, 653);
            SetSkill(SkillName.Wrestling, 91.3, 97.8);
            SetSkill(SkillName.Tactics, 91.5, 99.0);
            SetSkill(SkillName.MagicResist, 90.6, 96.8);
            SetSkill(SkillName.Magery, 91.7, 99.0);
            SetSkill(SkillName.EvalInt, 100.1, 100.1);
            SetSkill(SkillName.Meditation, 121.1, 128.1);

            VirtualArmor = 64;

            new Kirin().Rider = this;

            SetFameLevel(8);
            SetKarmaLevel(-8);

            LeatherGloves gloves = new LeatherGloves();

            gloves.Hue = 1;
            AddItem(gloves);

            HoodedShroudOfShadows shroud = new HoodedShroudOfShadows();

            shroud.Hue = 1157;
            AddItem(shroud);

            Cloak cloak = new Cloak();

            cloak.Hue = 1157;
            AddItem(cloak);

            Kilt kilt = new Kilt();

            kilt.Hue = 1;
            AddItem(kilt);

            Sandals sandals = new Sandals();

            sandals.Hue = 1;
            AddItem(sandals);
        }
示例#29
0
    public static SavedCloak ConvertFrom(Cloak accessory)
    {
        if (accessory == null)
        {
            return(null);
        }
        var obj = new SavedCloak {
            name        = accessory.name,
            level       = accessory.level,
            description = accessory.description,
            quality     = accessory.quality
        };

        obj.ConvertStatsFrom(accessory.stats);
        return(obj);
    }
示例#30
0
 private void Reloj_EnCambiaSegundo(object sender, Cloak.CambiaSegundoEventArgs e)
 {
     lblSegundos.Content = e.Segundo;
 }
示例#31
0
 public TargetableUnit(Actor self, TargetableUnitInfo info)
 {
     this.info = info;
     cloak = self.TraitOrDefault<Cloak>();
 }
示例#32
0
 private void Reloj_EnCambiaHora(object sender, Cloak.CambiaHoraEventArgs e)
 {
     lblHora.Content = e.Hora;
 }
示例#33
0
 private void Reloj_EnCambiaMinuto(object sender, Cloak.CambiaMinutoEventArgs e)
 {
     lblMinutos.Content = e.Minuto;
 }
示例#34
0
        public void EnemyUseSkill(SkillType skillType, uint callerID, uint targetID)
        {
            foreach (CoolDown cd in _game.CoolDownComponent.All)
            {
                if (cd.Type == skillType && cd.UserID == callerID)
                {
                    return;
                }
            }

            uint eid = Entity.NextEntity();
            uint eid_2 = Entity.NextEntity();
            uint eid_3 = Entity.NextEntity();
            InstantEffect instantEffect;
            DirectDamage directDamage;
            CoolDown coolDown;
            Sprite sprite;
            TimedEffect timedEffect;

            switch (skillType) //add in any skills you need an enemy to use
            {
                case SkillType.DamagingPull:

                    instantEffect = new InstantEffect()
                    {
                        EntityID = eid,
                    };
                    _game.InstantEffectComponent.Add(eid, instantEffect);

                    TargetedKnockBack targetedKnockBack = new TargetedKnockBack()
                    {
                        TargetID = targetID,
                        Origin = _game.PositionComponent[callerID].Center,
                        Distance = -15,
                    };
                    _game.TargetedKnockBackComponent.Add(eid, targetedKnockBack);

                    directDamage = new DirectDamage()
                    {
                        TargetID = targetID,
                        Damage = 1,
                        EntityID = eid,
                    };
                    _game.DirectDamageComponent.Add(eid, directDamage);

                    coolDown = new CoolDown()
                    {
                        EntityID = eid_2,
                        MaxTime = 8f,
                        TimeLeft = 8f,
                        Type = SkillType.DamagingPull,
                        UserID = callerID,
                    };
                    _game.CoolDownComponent.Add(eid_2, coolDown);

                    timedEffect = new TimedEffect()
                    {
                        EntityID = eid_3,
                        TimeLeft = 2f,
                        TotalDuration = 2f,
                    };
                    _game.TimedEffectComponent.Add(eid_3, timedEffect);

                    sprite = new Sprite()
                    {
                        EntityID = eid_3,
                        SpriteSheet = _game.Content.Load<Texture2D>("Spritesheets/Skills/Effects/SpiderWeb"),
                        SpriteBounds = new Rectangle(0, 0, 50, 50),
                    };
                    _game.SpriteComponent.Add(eid_3, sprite);

                    Position webPosition = _game.PositionComponent[targetID];
                    webPosition.EntityID = eid_3;
                    _game.PositionComponent.Add(eid_3, webPosition);

                    Buff buffEffect = new Buff()
                    {
                        EntityID = eid_3,
                        TargetID = targetID,
                        MovementSpeed = -50,
                    };
                    _game.BuffComponent.Add(eid_3, buffEffect);

                    break;

                case SkillType.SniperShot:
                    Position callerPos = _game.PositionComponent[callerID];
                    Position targetPos = _game.PositionComponent[targetID];

                    Vector2 direction = targetPos.Center - callerPos.Center;

                    //if (_game.SpriteAnimationComponent.Contains(callerID))
                    //{
                    //    SpriteAnimation spriteAnimation = _game.SpriteAnimationComponent[callerID];
                    //    spriteAnimation.CurrentAnimationRow = (int)_game.MovementComponent.GetFacingFromDirection(direction);
                    //    _game.SpriteAnimationComponent[callerID] = spriteAnimation;
                    //}

                    eid = _game.SkillEntityFactory.CreateSkillProjectile(SkillType.SniperShot, direction, callerPos, 1, 300,callerID, true, false);

                    coolDown = new CoolDown()
                    {
                        EntityID = eid,
                        MaxTime = 1f,
                        TimeLeft = 1f,
                        Type = SkillType.SniperShot,
                        UserID = callerID,
                    };
                    _game.CoolDownComponent.Add(eid, coolDown);

                    break;

                case SkillType.Cloak:
                    timedEffect = new TimedEffect()
                    {
                        EntityID = eid,
                        TimeLeft = 12f,
                        TotalDuration = 12f,
                    };
                    _game.TimedEffectComponent.Add(eid, timedEffect);

                    Cloak cloak = new Cloak(eid, targetID, 10);
                    _game.CloakComponent.Add(eid, cloak);

                    coolDown = new CoolDown()
                    {
                        EntityID = eid,
                        MaxTime = 12f,
                        TimeLeft = 12f,
                        Type = SkillType.Cloak,
                        UserID = callerID,
                    };
                    _game.CoolDownComponent.Add(eid, coolDown);

                    break;

                default:
                    throw new NotImplementedException();
            }
        }
示例#35
-1
 public Infiltrate(Actor self, Actor target, Infiltrates infiltrate)
     : base(self, target, infiltrate.Info.EnterBehaviour)
 {
     this.target = target;
     infiltrates = infiltrate;
     cloak       = self.TraitOrDefault <Cloak>();
 }