Fixes code according to modern code style. Fixes a few expression bugs.

This commit is contained in:
Kamron Batman 2018-09-15 09:58:51 -07:00
parent 89eea25e5f
commit 970fd563b2
3324 changed files with 441118 additions and 433755 deletions

View file

@ -1,92 +1,92 @@
namespace Server.Mobiles
{
public class CorruptedSoul : BaseCreature
{
public override bool DeleteCorpseOnDeath => true;
public class CorruptedSoul : BaseCreature
{
[Constructible]
public CorruptedSoul() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, .1, 5)
{
Body = 0x3CA;
Hue = 0x453;
public override string DefaultName => "a corrupted soul";
SetStr(102, 115);
SetDex(101, 115);
SetInt(203, 215);
[Constructible]
public CorruptedSoul() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, .1, 5 )
{
Body = 0x3CA;
Hue = 0x453;
SetHits(61, 69);
SetStr( 102, 115 );
SetDex( 101, 115 );
SetInt( 203, 215 );
SetDamage(4, 40);
SetHits( 61, 69 );
SetDamageType(ResistanceType.Physical, 100);
SetDamage( 4, 40 );
SetResistance(ResistanceType.Physical, 61, 74);
SetResistance(ResistanceType.Fire, 22, 48);
SetResistance(ResistanceType.Cold, 73, 100);
SetResistance(ResistanceType.Poison, 0);
SetResistance(ResistanceType.Energy, 51, 60);
SetDamageType( ResistanceType.Physical, 100 );
SetSkill(SkillName.MagicResist, 80.2, 89.4);
SetSkill(SkillName.Tactics, 81.3, 89.9);
SetSkill(SkillName.Wrestling, 80.1, 88.7);
SetResistance( ResistanceType.Physical, 61, 74 );
SetResistance( ResistanceType.Fire, 22, 48 );
SetResistance( ResistanceType.Cold, 73, 100 );
SetResistance( ResistanceType.Poison, 0 );
SetResistance( ResistanceType.Energy, 51, 60 );
Fame = 5000;
Karma = -5000;
SetSkill( SkillName.MagicResist, 80.2, 89.4 );
SetSkill( SkillName.Tactics, 81.3, 89.9 );
SetSkill( SkillName.Wrestling, 80.1, 88.7 );
// VirtualArmor = 6; Not sure
}
Fame = 5000;
Karma = -5000;
public CorruptedSoul(Serial serial) : base(serial)
{
}
// VirtualArmor = 6; Not sure
}
public override bool DeleteCorpseOnDeath => true;
public override bool AlwaysAttackable => true;
public override bool BleedImmune => true; // NEED TO VERIFY
public override string DefaultName => "a corrupted soul";
// NEED TO VERIFY SOUNDS! Known: No Idle Sound.
public override bool AlwaysAttackable => true;
public override bool BleedImmune => true; // NEED TO VERIFY
/*public override int GetAngerSound()
{
return 0x0;
}*/
/*public override int GetDeathSound()
{
return 0x0;
}*/
public override int GetAttackSound()
{
return 0x233;
}
public override bool AlwaysMurderer => true;
/*public override int GetDeathSound()
{
return 0x0;
}*/
// NEED TO VERIFY SOUNDS! Known: No Idle Sound.
public override bool AlwaysMurderer => true;
/*public override int GetAngerSound()
{
return 0x0;
}*/
// TODO: Proper OnDeath Effect
public override int GetAttackSound()
{
return 0x233;
}
public override bool OnBeforeDeath()
{
if ( !base.OnBeforeDeath() )
return false;
// TODO: Proper OnDeath Effect
// 1 in 20 chance that a Thread of Fate will appear in the killer's pack
public override bool OnBeforeDeath()
{
if (!base.OnBeforeDeath())
return false;
Effects.SendLocationEffect( Location, Map, 0x376A, 10, 1 );
return true;
}
// 1 in 20 chance that a Thread of Fate will appear in the killer's pack
public CorruptedSoul( Serial serial ) : base( serial )
{
}
Effects.SendLocationEffect(Location, Map, 0x376A, 10, 1);
return true;
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 );
}
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write(0);
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
}
}
}

View file

@ -2,83 +2,87 @@ using Server.Items;
namespace Server.Mobiles
{
[TypeAlias("Server.Mobiles.FerelTreefellow")]
public class FeralTreefellow : BaseCreature
{
public override string CorpseName => "a treefellow corpse";
public override WeaponAbility GetWeaponAbility() => WeaponAbility.Dismount;
[TypeAlias("Server.Mobiles.FerelTreefellow")]
public class FeralTreefellow : BaseCreature
{
[Constructible]
public FeralTreefellow() : base(AIType.AI_Melee, FightMode.Evil, 10, 1, 0.2, 0.4)
{
Body = 301;
public override string DefaultName => "a feral treefellow";
SetStr(1351, 1600);
SetDex(301, 550);
SetInt(651, 900);
[Constructible]
public FeralTreefellow() : base( AIType.AI_Melee, FightMode.Evil, 10, 1, 0.2, 0.4 )
{
Body = 301;
SetHits(1170, 1320);
SetStr( 1351, 1600 );
SetDex( 301, 550 );
SetInt( 651, 900 );
SetDamage(26, 35);
SetHits( 1170, 1320 );
SetDamageType(ResistanceType.Physical, 100);
SetDamage( 26, 35 );
SetResistance(ResistanceType.Physical, 60, 70);
SetResistance(ResistanceType.Cold, 70, 80);
SetResistance(ResistanceType.Poison, 60, 70);
SetResistance(ResistanceType.Energy, 40, 60);
SetDamageType( ResistanceType.Physical, 100 );
SetSkill(SkillName.MagicResist, 40.1, 55.0); // Unknown
SetSkill(SkillName.Tactics, 65.1, 90.0); // Unknown
SetSkill(SkillName.Wrestling, 65.1, 85.0); // Unknown
SetResistance( ResistanceType.Physical, 60, 70 );
SetResistance( ResistanceType.Cold, 70, 80 );
SetResistance( ResistanceType.Poison, 60, 70 );
SetResistance( ResistanceType.Energy, 40, 60 );
Fame = 12500; //Unknown
Karma = 12500; //Unknown
SetSkill( SkillName.MagicResist, 40.1, 55.0 );// Unknown
SetSkill( SkillName.Tactics, 65.1, 90.0 );// Unknown
SetSkill( SkillName.Wrestling, 65.1, 85.0 );// Unknown
VirtualArmor = 24;
PackItem(new Log(Utility.RandomMinMax(23, 34)));
}
Fame = 12500; //Unknown
Karma = 12500; //Unknown
public FeralTreefellow(Serial serial) : base(serial)
{
}
VirtualArmor = 24;
PackItem( new Log( Utility.RandomMinMax( 23, 34 ) ) );
}
public override string CorpseName => "a treefellow corpse";
public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
public override string DefaultName => "a feral treefellow";
public override int GetIdleSound()
{
return 443;
}
public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
public override int GetDeathSound()
{
return 31;
}
public override bool BleedImmune => true;
public override int GetAttackSound()
{
return 672;
}
public override WeaponAbility GetWeaponAbility()
{
return WeaponAbility.Dismount;
}
public override bool BleedImmune => true;
public override int GetIdleSound()
{
return 443;
}
public override void GenerateLoot()
{
AddLoot( LootPack.Average ); //Unknown
}
public override int GetDeathSound()
{
return 31;
}
public FeralTreefellow( Serial serial ) : base( serial )
{
}
public override int GetAttackSound()
{
return 672;
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 );
}
public override void GenerateLoot()
{
AddLoot(LootPack.Average); //Unknown
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write(0);
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
}
}
}

View file

@ -2,94 +2,98 @@ using Server.Items;
namespace Server.Mobiles
{
public class Minotaur : BaseCreature
{
public override string CorpseName => "a minotaur corpse";
public override WeaponAbility GetWeaponAbility() => WeaponAbility.ParalyzingBlow;
public class Minotaur : BaseCreature
{
[Constructible]
public Minotaur() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) // NEED TO CHECK
{
Body = 263;
public override string DefaultName => "a minotaur";
SetStr(301, 340);
SetDex(91, 110);
SetInt(31, 50);
[Constructible]
public Minotaur() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 ) // NEED TO CHECK
{
Body = 263;
SetHits(301, 340);
SetStr( 301, 340 );
SetDex( 91, 110 );
SetInt( 31, 50 );
SetDamage(11, 20);
SetHits( 301, 340 );
SetDamageType(ResistanceType.Physical, 100);
SetDamage( 11, 20 );
SetResistance(ResistanceType.Physical, 55, 65);
SetResistance(ResistanceType.Fire, 25, 35);
SetResistance(ResistanceType.Cold, 30, 40);
SetResistance(ResistanceType.Poison, 30, 40);
SetResistance(ResistanceType.Energy, 30, 40);
SetDamageType( ResistanceType.Physical, 100 );
SetSkill(SkillName.Meditation, 0);
SetSkill(SkillName.EvalInt, 0);
SetSkill(SkillName.Magery, 0);
SetSkill(SkillName.Poisoning, 0);
SetSkill(SkillName.Anatomy, 0);
SetSkill(SkillName.MagicResist, 56.1, 64.0);
SetSkill(SkillName.Tactics, 93.3, 97.8);
SetSkill(SkillName.Wrestling, 90.4, 92.1);
SetResistance( ResistanceType.Physical, 55, 65 );
SetResistance( ResistanceType.Fire, 25, 35 );
SetResistance( ResistanceType.Cold, 30, 40 );
SetResistance( ResistanceType.Poison, 30, 40 );
SetResistance( ResistanceType.Energy, 30, 40 );
Fame = 5000;
Karma = -5000;
SetSkill( SkillName.Meditation, 0 );
SetSkill( SkillName.EvalInt, 0 );
SetSkill( SkillName.Magery, 0 );
SetSkill( SkillName.Poisoning, 0 );
SetSkill( SkillName.Anatomy, 0 );
SetSkill( SkillName.MagicResist, 56.1, 64.0 );
SetSkill( SkillName.Tactics, 93.3, 97.8 );
SetSkill( SkillName.Wrestling, 90.4, 92.1 );
VirtualArmor = 28; // Don't know what it should be
}
Fame = 5000;
Karma = -5000;
public Minotaur(Serial serial) : base(serial)
{
}
VirtualArmor = 28; // Don't know what it should be
}
public override string CorpseName => "a minotaur corpse";
public override void GenerateLoot()
{
AddLoot( LootPack.Rich ); // Need to verify
}
public override string DefaultName => "a minotaur";
// Using Tormented Minotaur sounds - Need to veryfy
public override int GetAngerSound()
{
return 0x597;
}
public override WeaponAbility GetWeaponAbility()
{
return WeaponAbility.ParalyzingBlow;
}
public override int GetIdleSound()
{
return 0x596;
}
public override void GenerateLoot()
{
AddLoot(LootPack.Rich); // Need to verify
}
public override int GetAttackSound()
{
return 0x599;
}
// Using Tormented Minotaur sounds - Need to veryfy
public override int GetAngerSound()
{
return 0x597;
}
public override int GetHurtSound()
{
return 0x59a;
}
public override int GetIdleSound()
{
return 0x596;
}
public override int GetDeathSound()
{
return 0x59c;
}
public override int GetAttackSound()
{
return 0x599;
}
public Minotaur( Serial serial ) : base( serial )
{
}
public override int GetHurtSound()
{
return 0x59a;
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 );
}
public override int GetDeathSound()
{
return 0x59c;
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write(0);
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
}
}
}

View file

@ -2,94 +2,98 @@ using Server.Items;
namespace Server.Mobiles
{
public class MinotaurCaptain : BaseCreature
{
public override string CorpseName => "a minotaur corpse";
public override WeaponAbility GetWeaponAbility() => WeaponAbility.ParalyzingBlow;
public class MinotaurCaptain : BaseCreature
{
[Constructible]
public MinotaurCaptain() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) // NEED TO CHECK
{
Body = 280;
public override string DefaultName => "a minotaur captain";
SetStr(401, 425);
SetDex(91, 110);
SetInt(31, 50);
[Constructible]
public MinotaurCaptain() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 ) // NEED TO CHECK
{
Body = 280;
SetHits(401, 440);
SetStr( 401, 425 );
SetDex( 91, 110 );
SetInt( 31, 50 );
SetDamage(11, 20);
SetHits( 401, 440 );
SetDamageType(ResistanceType.Physical, 100);
SetDamage( 11, 20 );
SetResistance(ResistanceType.Physical, 65, 75);
SetResistance(ResistanceType.Fire, 35, 45);
SetResistance(ResistanceType.Cold, 40, 50);
SetResistance(ResistanceType.Poison, 40, 50);
SetResistance(ResistanceType.Energy, 40, 50);
SetDamageType( ResistanceType.Physical, 100 );
SetSkill(SkillName.Meditation, 0);
SetSkill(SkillName.EvalInt, 0);
SetSkill(SkillName.Magery, 0);
SetSkill(SkillName.Poisoning, 0);
SetSkill(SkillName.Anatomy, 0, 6.3);
SetSkill(SkillName.MagicResist, 66.1, 73.6);
SetSkill(SkillName.Tactics, 93.0, 109.9);
SetSkill(SkillName.Wrestling, 92.6, 107.2);
SetResistance( ResistanceType.Physical, 65, 75 );
SetResistance( ResistanceType.Fire, 35, 45 );
SetResistance( ResistanceType.Cold, 40, 50 );
SetResistance( ResistanceType.Poison, 40, 50 );
SetResistance( ResistanceType.Energy, 40, 50 );
Fame = 7000;
Karma = -7000;
SetSkill( SkillName.Meditation, 0 );
SetSkill( SkillName.EvalInt, 0 );
SetSkill( SkillName.Magery, 0 );
SetSkill( SkillName.Poisoning, 0 );
SetSkill( SkillName.Anatomy, 0, 6.3 );
SetSkill( SkillName.MagicResist, 66.1, 73.6 );
SetSkill( SkillName.Tactics, 93.0, 109.9 );
SetSkill( SkillName.Wrestling, 92.6, 107.2 );
VirtualArmor = 28; // Don't know what it should be
}
Fame = 7000;
Karma = -7000;
public MinotaurCaptain(Serial serial) : base(serial)
{
}
VirtualArmor = 28; // Don't know what it should be
}
public override string CorpseName => "a minotaur corpse";
public override void GenerateLoot()
{
AddLoot( LootPack.Rich ); // Need to verify
}
public override string DefaultName => "a minotaur captain";
// Using Tormented Minotaur sounds - Need to veryfy
public override int GetAngerSound()
{
return 0x597;
}
public override WeaponAbility GetWeaponAbility()
{
return WeaponAbility.ParalyzingBlow;
}
public override int GetIdleSound()
{
return 0x596;
}
public override void GenerateLoot()
{
AddLoot(LootPack.Rich); // Need to verify
}
public override int GetAttackSound()
{
return 0x599;
}
// Using Tormented Minotaur sounds - Need to veryfy
public override int GetAngerSound()
{
return 0x597;
}
public override int GetHurtSound()
{
return 0x59a;
}
public override int GetIdleSound()
{
return 0x596;
}
public override int GetDeathSound()
{
return 0x59c;
}
public override int GetAttackSound()
{
return 0x599;
}
public MinotaurCaptain( Serial serial ) : base( serial )
{
}
public override int GetHurtSound()
{
return 0x59a;
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 );
}
public override int GetDeathSound()
{
return 0x59c;
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write(0);
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
}
}
}

View file

@ -2,94 +2,98 @@ using Server.Items;
namespace Server.Mobiles
{
public class MinotaurScout : BaseCreature
{
public override string CorpseName => "a minotaur corpse";
public override WeaponAbility GetWeaponAbility() => WeaponAbility.ParalyzingBlow;
public class MinotaurScout : BaseCreature
{
[Constructible]
public MinotaurScout() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) // NEED TO CHECK
{
Body = 281;
public override string DefaultName => "a minotaur scout";
SetStr(353, 375);
SetDex(111, 130);
SetInt(34, 50);
[Constructible]
public MinotaurScout() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 ) // NEED TO CHECK
{
Body = 281;
SetHits(354, 383);
SetStr( 353, 375 );
SetDex( 111, 130 );
SetInt( 34, 50 );
SetDamage(11, 20);
SetHits( 354, 383 );
SetDamageType(ResistanceType.Physical, 100);
SetDamage( 11, 20 );
SetResistance(ResistanceType.Physical, 55, 65);
SetResistance(ResistanceType.Fire, 25, 35);
SetResistance(ResistanceType.Cold, 30, 40);
SetResistance(ResistanceType.Poison, 30, 40);
SetResistance(ResistanceType.Energy, 30, 40);
SetDamageType( ResistanceType.Physical, 100 );
//SetSkill( SkillName.Meditation, Unknown );
//SetSkill( SkillName.EvalInt, Unknown );
//SetSkill( SkillName.Magery, Unknown );
//SetSkill( SkillName.Poisoning, Unknown );
SetSkill(SkillName.Anatomy, 0);
SetSkill(SkillName.MagicResist, 60.6, 67.5);
SetSkill(SkillName.Tactics, 86.9, 103.6);
SetSkill(SkillName.Wrestling, 85.6, 104.5);
SetResistance( ResistanceType.Physical, 55, 65 );
SetResistance( ResistanceType.Fire, 25, 35 );
SetResistance( ResistanceType.Cold, 30, 40 );
SetResistance( ResistanceType.Poison, 30, 40 );
SetResistance( ResistanceType.Energy, 30, 40 );
Fame = 5000;
Karma = -5000;
//SetSkill( SkillName.Meditation, Unknown );
//SetSkill( SkillName.EvalInt, Unknown );
//SetSkill( SkillName.Magery, Unknown );
//SetSkill( SkillName.Poisoning, Unknown );
SetSkill( SkillName.Anatomy, 0 );
SetSkill( SkillName.MagicResist, 60.6, 67.5 );
SetSkill( SkillName.Tactics, 86.9, 103.6 );
SetSkill( SkillName.Wrestling, 85.6, 104.5 );
VirtualArmor = 28; // Don't know what it should be
}
Fame = 5000;
Karma = -5000;
public MinotaurScout(Serial serial) : base(serial)
{
}
VirtualArmor = 28; // Don't know what it should be
}
public override string CorpseName => "a minotaur corpse";
public override void GenerateLoot()
{
AddLoot( LootPack.Rich ); // Need to verify
}
public override string DefaultName => "a minotaur scout";
// Using Tormented Minotaur sounds - Need to veryfy
public override int GetAngerSound()
{
return 0x597;
}
public override WeaponAbility GetWeaponAbility()
{
return WeaponAbility.ParalyzingBlow;
}
public override int GetIdleSound()
{
return 0x596;
}
public override void GenerateLoot()
{
AddLoot(LootPack.Rich); // Need to verify
}
public override int GetAttackSound()
{
return 0x599;
}
// Using Tormented Minotaur sounds - Need to veryfy
public override int GetAngerSound()
{
return 0x597;
}
public override int GetHurtSound()
{
return 0x59a;
}
public override int GetIdleSound()
{
return 0x596;
}
public override int GetDeathSound()
{
return 0x59c;
}
public override int GetAttackSound()
{
return 0x599;
}
public MinotaurScout( Serial serial ) : base( serial )
{
}
public override int GetHurtSound()
{
return 0x59a;
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 );
}
public override int GetDeathSound()
{
return 0x59c;
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write(0);
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
}
}
}

View file

@ -2,79 +2,79 @@ using Server.Items;
namespace Server.Mobiles
{
public class PestilentBandage : BaseCreature
{
public override string CorpseName => "a pestilent bandage corpse";
// Neither Stratics nor UOGuide have much description
// beyond being a "Grey Mummy". BodyValue, Sound and
// Hue are all guessed until they can be verified.
// Loot and Fame/Karma are also guesses at this point.
//
// They also apparently have a Poison Attack, which I've stolen from Yamandons.
public class PestilentBandage : BaseCreature
{
[Constructible]
public PestilentBandage() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) // NEED TO CHECK
{
Body = 154;
Hue = 0x515;
BaseSoundID = 471;
public override string DefaultName => "a pestilent bandage";
SetStr(691, 740);
SetDex(141, 180);
SetInt(51, 80);
[Constructible]
public PestilentBandage() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 ) // NEED TO CHECK
{
Body = 154;
Hue = 0x515;
BaseSoundID = 471;
SetHits(415, 445);
SetStr( 691, 740 );
SetDex( 141, 180 );
SetInt( 51, 80 );
SetDamage(13, 23);
SetHits( 415, 445 );
SetDamageType(ResistanceType.Physical, 40);
SetDamageType(ResistanceType.Cold, 20);
SetDamageType(ResistanceType.Poison, 40);
SetDamage( 13, 23 );
SetResistance(ResistanceType.Physical, 45, 55);
SetResistance(ResistanceType.Fire, 10, 20);
SetResistance(ResistanceType.Cold, 50, 60);
SetResistance(ResistanceType.Poison, 20, 30);
SetResistance(ResistanceType.Energy, 20, 30);
SetDamageType( ResistanceType.Physical, 40 );
SetDamageType( ResistanceType.Cold, 20 );
SetDamageType( ResistanceType.Poison, 40 );
SetSkill(SkillName.Poisoning, 0.0, 10.0);
SetSkill(SkillName.Anatomy, 0);
SetSkill(SkillName.MagicResist, 75.0, 80.0);
SetSkill(SkillName.Tactics, 80.0, 85.0);
SetSkill(SkillName.Wrestling, 70.0, 75.0);
SetResistance( ResistanceType.Physical, 45, 55 );
SetResistance( ResistanceType.Fire, 10, 20 );
SetResistance( ResistanceType.Cold, 50, 60 );
SetResistance( ResistanceType.Poison, 20, 30 );
SetResistance( ResistanceType.Energy, 20, 30 );
Fame = 20000;
Karma = -20000;
SetSkill( SkillName.Poisoning, 0.0, 10.0 );
SetSkill( SkillName.Anatomy, 0 );
SetSkill( SkillName.MagicResist, 75.0, 80.0 );
SetSkill( SkillName.Tactics, 80.0, 85.0 );
SetSkill( SkillName.Wrestling, 70.0, 75.0 );
// VirtualArmor = 28; // Don't know what it should be
Fame = 20000;
Karma = -20000;
PackItem(new Bandage(5)); // How many?
}
// VirtualArmor = 28; // Don't know what it should be
public PestilentBandage(Serial serial) : base(serial)
{
}
PackItem( new Bandage( 5 ) ); // How many?
public override string CorpseName => "a pestilent bandage corpse";
// Neither Stratics nor UOGuide have much description
// beyond being a "Grey Mummy". BodyValue, Sound and
// Hue are all guessed until they can be verified.
// Loot and Fame/Karma are also guesses at this point.
//
// They also apparently have a Poison Attack, which I've stolen from Yamandons.
}
public override string DefaultName => "a pestilent bandage";
public override Poison HitPoison => Poison.Lethal;
public override bool CanHeal => true;
public override void GenerateLoot()
{
AddLoot( LootPack.Rich ); // Need to verify
}
public override Poison HitPoison => Poison.Lethal;
public override bool CanHeal => true;
public PestilentBandage( Serial serial ) : base( serial )
{
}
public override void GenerateLoot()
{
AddLoot(LootPack.Rich); // Need to verify
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 );
}
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write(0);
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
}
}
}

View file

@ -2,74 +2,96 @@ using Server.Items;
namespace Server.Mobiles
{
public class TormentedMinotaur : BaseCreature
{
public override string CorpseName => "a tormented minotaur corpse";
public override WeaponAbility GetWeaponAbility() => WeaponAbility.Dismount;
public class TormentedMinotaur : BaseCreature
{
[Constructible]
public TormentedMinotaur() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
{
Body = 262;
public override string DefaultName => "Tormented Minotaur";
SetStr(822, 930);
SetDex(401, 415);
SetInt(128, 138);
[Constructible]
public TormentedMinotaur() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Body = 262;
SetHits(4000, 4200);
SetStr( 822, 930 );
SetDex( 401, 415 );
SetInt( 128, 138 );
SetDamage(16, 30);
SetHits( 4000, 4200 );
SetDamageType(ResistanceType.Physical, 100);
SetDamage( 16, 30 );
SetResistance(ResistanceType.Physical, 62);
SetResistance(ResistanceType.Fire, 74);
SetResistance(ResistanceType.Cold, 54);
SetResistance(ResistanceType.Poison, 56);
SetResistance(ResistanceType.Energy, 54);
SetDamageType( ResistanceType.Physical, 100 );
SetResistance( ResistanceType.Physical, 62 );
SetResistance( ResistanceType.Fire, 74 );
SetResistance( ResistanceType.Cold, 54 );
SetResistance( ResistanceType.Poison, 56 );
SetResistance( ResistanceType.Energy, 54 );
SetSkill( SkillName.Wrestling, 110.1, 111.0 );
SetSkill( SkillName.Tactics, 100.7, 102.8 );
SetSkill( SkillName.MagicResist, 104.3, 116.3 );
SetSkill(SkillName.Wrestling, 110.1, 111.0);
SetSkill(SkillName.Tactics, 100.7, 102.8);
SetSkill(SkillName.MagicResist, 104.3, 116.3);
Fame = 20000;
Karma = -20000;
Fame = 20000;
Karma = -20000;
}
}
public TormentedMinotaur(Serial serial) : base(serial)
{
}
public override void GenerateLoot()
{
AddLoot(LootPack.FilthyRich, 10);
}
public override string CorpseName => "a tormented minotaur corpse";
public override Poison PoisonImmune => Poison.Deadly;
public override int TreasureMapLevel => 3;
public override string DefaultName => "Tormented Minotaur";
public override int GetDeathSound() { return 0x596; }
public override int GetAttackSound() { return 0x597; }
public override int GetIdleSound() { return 0x598; }
public override int GetAngerSound() { return 0x599; }
public override int GetHurtSound() { return 0x59A; }
public override Poison PoisonImmune => Poison.Deadly;
public override int TreasureMapLevel => 3;
public TormentedMinotaur( Serial serial ) : base( serial )
{
}
public override WeaponAbility GetWeaponAbility()
{
return WeaponAbility.Dismount;
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
public override void GenerateLoot()
{
AddLoot(LootPack.FilthyRich, 10);
}
writer.Write( (int) 0 ); // version
}
public override int GetDeathSound()
{
return 0x596;
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
public override int GetAttackSound()
{
return 0x597;
}
int version = reader.ReadInt();
}
}
}
public override int GetIdleSound()
{
return 0x598;
}
public override int GetAngerSound()
{
return 0x599;
}
public override int GetHurtSound()
{
return 0x59A;
}
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write(0); // version
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
}
}
}

View file

@ -2,77 +2,77 @@ using Server.Items;
namespace Server.Mobiles
{
public class Troglodyte : BaseCreature
{
public override string CorpseName => "a troglodyte corpse";
public override string DefaultName => "a troglodyte";
public class Troglodyte : BaseCreature
{
[Constructible]
public Troglodyte() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) // NEED TO CHECK
{
Body = 267;
BaseSoundID = 0x59F;
[Constructible]
public Troglodyte() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 ) // NEED TO CHECK
{
Body = 267;
BaseSoundID = 0x59F;
SetStr(148, 217);
SetDex(91, 120);
SetInt(51, 70);
SetStr( 148, 217 );
SetDex( 91, 120 );
SetInt( 51, 70 );
SetHits(302, 340);
SetHits( 302, 340 );
SetDamage(11, 14);
SetDamage( 11, 14 );
SetDamageType(ResistanceType.Physical, 100);
SetDamageType( ResistanceType.Physical, 100 );
SetResistance(ResistanceType.Physical, 30, 35);
SetResistance(ResistanceType.Fire, 20, 30);
SetResistance(ResistanceType.Cold, 35, 40);
SetResistance(ResistanceType.Poison, 30, 40);
SetResistance(ResistanceType.Energy, 30, 40);
SetResistance( ResistanceType.Physical, 30, 35 );
SetResistance( ResistanceType.Fire, 20, 30 );
SetResistance( ResistanceType.Cold, 35, 40 );
SetResistance( ResistanceType.Poison, 30, 40 );
SetResistance( ResistanceType.Energy, 30, 40 );
SetSkill(SkillName.Anatomy, 70.5, 94.8);
SetSkill(SkillName.MagicResist, 51.8, 65.0);
SetSkill(SkillName.Tactics, 80.4, 94.7);
SetSkill(SkillName.Wrestling, 70.2, 93.5);
SetSkill(SkillName.Healing, 70.0, 95.0);
SetSkill( SkillName.Anatomy, 70.5, 94.8 );
SetSkill( SkillName.MagicResist, 51.8, 65.0 );
SetSkill( SkillName.Tactics, 80.4, 94.7 );
SetSkill( SkillName.Wrestling, 70.2, 93.5 );
SetSkill( SkillName.Healing, 70.0, 95.0 );
Fame = 5000;
Karma = -5000;
Fame = 5000;
Karma = -5000;
VirtualArmor = 28; // Don't know what it should be
VirtualArmor = 28; // Don't know what it should be
PackItem(new Bandage(5)); // How many?
PackItem(new Ribs());
}
PackItem( new Bandage( 5 ) ); // How many?
PackItem( new Ribs() );
}
public Troglodyte(Serial serial) : base(serial)
{
}
public override bool CanHeal => true;
public override string CorpseName => "a troglodyte corpse";
public override string DefaultName => "a troglodyte";
public override void GenerateLoot()
{
AddLoot( LootPack.Rich ); // Need to verify
}
public override bool CanHeal => true;
public override void OnDeath( Container c )
{
base.OnDeath( c );
public override void GenerateLoot()
{
AddLoot(LootPack.Rich); // Need to verify
}
if ( Utility.RandomDouble() < 0.1 )
c.DropItem( new PrimitiveFetish() );
}
public override void OnDeath(Container c)
{
base.OnDeath(c);
public Troglodyte( Serial serial ) : base( serial )
{
}
if (Utility.RandomDouble() < 0.1)
c.DropItem(new PrimitiveFetish());
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 );
}
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write(0);
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
}
}
}