// Use this for initialization /* * void Start () { * if (activeWeapon != null) * { * initialize(); * } * }*/ public void initialize() { if (init == false) { this.wpn = activeWeapon.GetComponent <ThrowingWeapon>(); GetComponent <SpriteRenderer>().sprite = this.wpn.sprite; init = true; } }
public Neanderthal() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) { Name = "a neanderthal"; Body = Utility.RandomList(267, 162); BaseSoundID = 427; SetStr(176, 205); SetDex(46, 65); SetInt(46, 70); SetHits(106, 123); SetDamage(8, 14); SetDamageType(ResistanceType.Physical, 100); SetResistance(ResistanceType.Physical, 35, 45); SetResistance(ResistanceType.Fire, 25, 35); SetResistance(ResistanceType.Cold, 15, 25); SetResistance(ResistanceType.Poison, 5, 15); SetResistance(ResistanceType.Energy, 5, 15); SetSkill(SkillName.MagicResist, 45.1, 60.0); SetSkill(SkillName.Tactics, 50.1, 70.0); SetSkill(SkillName.Wrestling, 50.1, 70.0); SetSkill(SkillName.Archery, 50.1, 70.0); Fame = 3500; Karma = -3500; VirtualArmor = 40; if (Utility.RandomBool()) { AI = AIType.AI_Archer; SetDex(176, 205); MonsterGloves gloves = new MonsterGloves(); gloves.ThrowType = "Stones"; AddItem(gloves); ThrowingWeapon toss = new ThrowingWeapon(Utility.RandomMinMax(10, 30)); toss.ammo = "Throwing Stones"; toss.ItemID = 0x10B6; toss.Name = "throwing stone"; PackItem(toss); } else { PackItem(new Club()); } }
public Morlock() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) { Name = "a morlock"; Body = 332; BaseSoundID = 427; SetStr(156, 185); SetDex(111, 135); SetInt(46, 70); SetHits(106, 123); SetMana(0); SetDamage(10, 15); SetDamageType(ResistanceType.Physical, 100); SetResistance(ResistanceType.Physical, 25, 35); SetResistance(ResistanceType.Cold, 85, 95); SetResistance(ResistanceType.Poison, 5, 10); SetResistance(ResistanceType.Energy, 5, 10); SetSkill(SkillName.MagicResist, 25.1, 40.0); SetSkill(SkillName.Tactics, 70.1, 100.0); SetSkill(SkillName.Wrestling, 45.1, 70.0); SetSkill(SkillName.Archery, 45.1, 70.0); Fame = 1500; Karma = -1500; VirtualArmor = 30; if (Utility.RandomBool()) { AI = AIType.AI_Archer; SetDex(156, 185); MonsterGloves gloves = new MonsterGloves(); gloves.ThrowType = "Stones"; AddItem(gloves); ThrowingWeapon toss = new ThrowingWeapon(Utility.RandomMinMax(10, 30)); toss.ammo = "Throwing Stones"; toss.ItemID = 0x10B6; toss.Name = "throwing stone"; PackItem(toss); } else { PackItem(new Club()); } }
public Urc() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) { Name = NameList.RandomName("orc"); Title = "the urc"; Body = 20; BaseSoundID = 0x45A; SetStr(336, 385); SetDex(96, 115); SetInt(31, 55); SetHits(202, 231); SetMana(0); SetDamage(7, 23); SetDamageType(ResistanceType.Physical, 100); SetResistance(ResistanceType.Physical, 45, 50); SetResistance(ResistanceType.Fire, 30, 40); SetResistance(ResistanceType.Cold, 25, 35); SetResistance(ResistanceType.Poison, 30, 40); SetResistance(ResistanceType.Energy, 30, 40); SetSkill(SkillName.MagicResist, 60.3, 105.0); SetSkill(SkillName.Tactics, 80.1, 100.0); SetSkill(SkillName.Wrestling, 80.1, 90.0); SetSkill(SkillName.Archery, 80.1, 90.0); Fame = 4500; Karma = -4500; VirtualArmor = 48; if (Utility.RandomBool()) { AI = AIType.AI_Archer; SetDex(336, 385); MonsterGloves gloves = new MonsterGloves(); gloves.ThrowType = "Stones"; AddItem(gloves); ThrowingWeapon toss = new ThrowingWeapon(Utility.RandomMinMax(10, 30)); toss.ammo = "Throwing Stones"; toss.ItemID = 0x10B6; toss.Name = "throwing stone"; PackItem(toss); } }
public Minotaur() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) // NEED TO CHECK { Name = "a minotaur"; Body = 263; BaseSoundID = 0x54E; SetStr(166, 195); SetDex(46, 65); SetInt(46, 70); SetHits(100, 117); SetMana(0); SetDamage(9, 11); SetDamageType(ResistanceType.Physical, 100); SetResistance(ResistanceType.Physical, 30, 35); SetResistance(ResistanceType.Fire, 15, 25); SetResistance(ResistanceType.Cold, 15, 25); SetResistance(ResistanceType.Poison, 15, 25); SetResistance(ResistanceType.Energy, 25); SetSkill(SkillName.MagicResist, 55.1, 70.0); SetSkill(SkillName.Tactics, 60.1, 70.0); SetSkill(SkillName.Wrestling, 70.1, 80.0); SetSkill(SkillName.Archery, 70.1, 80.0); Fame = 4000; Karma = -4000; VirtualArmor = 32; if (Utility.RandomBool()) { AI = AIType.AI_Archer; SetDex(166, 195); MonsterGloves gloves = new MonsterGloves(); gloves.ThrowType = "Axes"; AddItem(gloves); ThrowingWeapon toss = new ThrowingWeapon(Utility.RandomMinMax(10, 30)); toss.ammo = "Throwing Axes"; toss.ItemID = 0x10B3; toss.Name = "throwing axe"; PackItem(toss); } }
public Hobgoblin() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) { Name = "a hobgoblin"; Body = 11; BaseSoundID = 0x45A; SetStr(166, 195); SetDex(46, 65); SetInt(46, 70); SetHits(100, 117); SetMana(0); SetDamage(9, 11); SetDamageType(ResistanceType.Physical, 100); SetResistance(ResistanceType.Physical, 30, 35); SetResistance(ResistanceType.Fire, 15, 25); SetResistance(ResistanceType.Cold, 15, 25); SetResistance(ResistanceType.Poison, 15, 25); SetResistance(ResistanceType.Energy, 25); SetSkill(SkillName.MagicResist, 55.1, 70.0); SetSkill(SkillName.Tactics, 60.1, 70.0); SetSkill(SkillName.Wrestling, 70.1, 80.0); SetSkill(SkillName.Macing, 70.1, 80.0); Fame = 3000; Karma = -3000; VirtualArmor = 32; if (Utility.RandomBool()) { AI = AIType.AI_Archer; SetDex(166, 195); MonsterGloves gloves = new MonsterGloves(); gloves.ThrowType = "Daggers"; AddItem(gloves); ThrowingWeapon toss = new ThrowingWeapon(Utility.RandomMinMax(10, 30)); toss.ammo = "Throwing Daggers"; toss.ItemID = 0x10B7; toss.Name = "throwing dagger"; PackItem(toss); } }
public RatmanArcher() : base(AIType.AI_Archer, FightMode.Closest, 10, 1, 0.2, 0.4) { Name = NameList.RandomName("ratman"); Title = "the ratman"; Body = 42; BaseSoundID = 437; 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); Fame = 6500; Karma = -6500; VirtualArmor = 56; MonsterGloves gloves = new MonsterGloves(); gloves.ThrowType = "Daggers"; AddItem(gloves); ThrowingWeapon toss = new ThrowingWeapon(Utility.RandomMinMax(10, 30)); toss.ammo = "Throwing Daggers"; toss.ItemID = 0x10B7; toss.Name = "throwing dagger"; PackItem(toss); }
public SaklethArcher() : base(AIType.AI_Archer, FightMode.Closest, 10, 1, 0.2, 0.4) { Name = NameList.RandomName("lizardman"); Title = "the sakkhra"; Body = 326; BaseSoundID = 417; SetStr(136, 165); SetDex(56, 75); SetInt(31, 55); SetHits(82, 99); SetDamage(7, 17); SetDamageType(ResistanceType.Physical, 100); SetResistance(ResistanceType.Physical, 35, 40); SetResistance(ResistanceType.Fire, 15, 25); SetResistance(ResistanceType.Cold, 40, 50); SetResistance(ResistanceType.Poison, 15, 25); SetResistance(ResistanceType.Energy, 15, 25); SetSkill(SkillName.MagicResist, 40.1, 55.0); SetSkill(SkillName.Tactics, 50.1, 70.0); SetSkill(SkillName.Wrestling, 50.1, 60.0); SetSkill(SkillName.Archery, 50.1, 60.0); Fame = 3500; Karma = -3500; VirtualArmor = 38; MonsterGloves gloves = new MonsterGloves(); gloves.ThrowType = "Daggers"; AddItem(gloves); ThrowingWeapon toss = new ThrowingWeapon(Utility.RandomMinMax(10, 30)); toss.ammo = "Throwing Daggers"; toss.ItemID = 0x10B7; toss.Name = "throwing dagger"; PackItem(toss); }
public Orc() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) { Name = NameList.RandomName("orc"); Title = "the orc"; Body = 17; BaseSoundID = 0x45A; SetStr(96, 120); SetDex(81, 105); SetInt(36, 60); SetHits(58, 72); SetDamage(5, 7); SetDamageType(ResistanceType.Physical, 100); SetResistance(ResistanceType.Physical, 25, 30); SetResistance(ResistanceType.Fire, 20, 30); SetResistance(ResistanceType.Cold, 10, 20); SetResistance(ResistanceType.Poison, 10, 20); SetResistance(ResistanceType.Energy, 20, 30); SetSkill(SkillName.MagicResist, 50.1, 75.0); SetSkill(SkillName.Tactics, 55.1, 80.0); SetSkill(SkillName.Wrestling, 50.1, 70.0); SetSkill(SkillName.Archery, 50.1, 70.0); Fame = 1500; Karma = -1500; VirtualArmor = 28; if (Utility.RandomBool()) { AI = AIType.AI_Archer; SetDex(96, 120); MonsterGloves gloves = new MonsterGloves(); gloves.ThrowType = "Stones"; AddItem(gloves); ThrowingWeapon toss = new ThrowingWeapon(Utility.RandomMinMax(10, 30)); toss.ammo = "Throwing Stones"; toss.ItemID = 0x10B6; toss.Name = "throwing stone"; PackItem(toss); } else { switch (Utility.Random(20)) { case 0: PackItem(new Scimitar()); break; case 1: PackItem(new Katana()); break; case 2: PackItem(new WarMace()); break; case 3: PackItem(new WarHammer()); break; case 4: PackItem(new Kryss()); break; case 5: PackItem(new Pitchfork()); break; } } PackItem(new ThighBoots()); switch (Utility.Random(3)) { case 0: PackItem(new Ribs()); break; case 1: PackItem(new Shaft()); break; case 2: PackItem(new Candle()); break; } }
public void AddRangeWeapon() { if (FindItemOnLayer(Layer.OneHanded) != null) { FindItemOnLayer(Layer.OneHanded).Delete(); } if (FindItemOnLayer(Layer.TwoHanded) != null) { FindItemOnLayer(Layer.TwoHanded).Delete(); } if (Utility.RandomBool()) { ThrowingGloves glove = new ThrowingGloves(); ThrowingWeapon ammo = new ThrowingWeapon(Utility.RandomMinMax(15, 30)); switch (Utility.Random(5)) { case 0: glove.GloveType = "Stones"; ammo.ammo = "Throwing Stones"; ammo.ItemID = 0x10B6; ammo.Name = "throwing stone"; break; case 1: glove.GloveType = "Axes"; ammo.ammo = "Throwing Axes"; ammo.ItemID = 0x10B3; ammo.Name = "throwing axe"; break; case 2: glove.GloveType = "Daggers"; ammo.ammo = "Throwing Daggers"; ammo.ItemID = 0x10B7; ammo.Name = "throwing dagger"; break; case 3: glove.GloveType = "Darts"; ammo.ammo = "Throwing Darts"; ammo.ItemID = 0x10B5; ammo.Name = "throwing dart"; break; case 4: glove.GloveType = "Stars"; ammo.ammo = "Throwing Stars"; ammo.ItemID = 0x10B2; ammo.Name = "throwing star"; break; } ; AddItem(glove); PackItem(ammo); } else if (CitizenType == 1) { switch (Utility.Random(2)) { case 0: AddItem(new WizardStaff()); break; case 1: AddItem(new WizardStick()); break; } ; PackItem(new MageEye(Utility.RandomMinMax(15, 30))); } else { switch (Utility.Random(8)) { case 0: AddItem(new Bow()); PackItem(new Arrow(Utility.RandomMinMax(15, 30))); break; case 1: AddItem(new Crossbow()); PackItem(new Bolt(Utility.RandomMinMax(15, 30))); break; case 2: AddItem(new HeavyCrossbow()); PackItem(new Bolt(Utility.RandomMinMax(15, 30))); break; case 3: AddItem(new RepeatingCrossbow()); PackItem(new Bolt(Utility.RandomMinMax(15, 30))); break; case 4: AddItem(new CompositeBow()); PackItem(new Arrow(Utility.RandomMinMax(15, 30))); break; case 5: AddItem(new MagicalShortbow()); PackItem(new Arrow(Utility.RandomMinMax(15, 30))); break; case 6: AddItem(new ElvenCompositeLongbow()); PackItem(new Arrow(Utility.RandomMinMax(15, 30))); break; case 7: AddItem(new Harpoon()); PackItem(new HarpoonRope(Utility.RandomMinMax(15, 30))); break; } ; } }