Add DefaultName property to Mobiles & Items (#18)

This commit is contained in:
Kamron Batman 2018-08-09 17:18:41 -07:00 • committed by GitHub
parent b06f5bf60d
commit 8ee42c8ea2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
713 changed files with 5112 additions and 4987 deletions

View file

@ -6,11 +6,12 @@ namespace Server.Mobiles
[CorpseName("a parrot corpse")]
public class Parrot : BaseCreature
{
public override string DefaultName => "a parrot";
[Constructible]
public Parrot() : base(AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
this.Body = 831;
this.Name = ("a parrot");
this.VirtualArmor = Utility.Random(0,6);
this.InitStats((10),Utility.Random(25,16),(10));
@ -31,30 +32,30 @@ namespace Server.Mobiles
{
}
public override int GetAngerSound()
{
return 0x1B;
}
public override int GetAngerSound()
{
return 0x1B;
}
public override int GetIdleSound()
{
return 0x1C;
}
public override int GetIdleSound()
{
return 0x1C;
}
public override int GetAttackSound()
{
return 0x1D;
}
public override int GetAttackSound()
{
return 0x1D;
}
public override int GetHurtSound()
{
return 0x1E;
}
public override int GetHurtSound()
{
return 0x1E;
}
public override int GetDeathSound()
{
return 0x1F;
}
public override int GetDeathSound()
{
return 0x1F;
}
public override void Serialize(GenericWriter writer)
{
@ -70,4 +71,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -76,17 +76,18 @@ namespace Server.Mobiles
if ( Hue == 0 )
Hue = Utility.RandomBirdHue();
}
}
}
[CorpseName( "a bird corpse" )]
public class TropicalBird : BaseCreature
{
public override string DefaultName => "a tropical bird";
[Constructible]
public TropicalBird() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Hue = Utility.RandomBirdHue();
Name = "a tropical bird";
Body = 6;
BaseSoundID = 0xBF;
@ -134,6 +135,6 @@ namespace Server.Mobiles
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}
}
}

View file

@ -7,10 +7,11 @@ namespace Server.Mobiles
[TypeAlias( "Server.Mobiles.Housecat" )]
public class Cat : BaseCreature
{
public override string DefaultName => "a cat";
[Constructible]
public Cat() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "a cat";
Body = 0xC9;
Hue = Utility.RandomAnimalHue();
BaseSoundID = 0x69;
@ -64,4 +65,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -6,10 +6,11 @@ namespace Server.Mobiles
[CorpseName( "a dog corpse" )]
public class Dog : BaseCreature
{
public override string DefaultName => "a dog";
[Constructible]
public Dog() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "a dog";
Body = 0xD9;
Hue = Utility.RandomAnimalHue();
BaseSoundID = 0x85;
@ -63,4 +64,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -6,10 +6,11 @@ namespace Server.Mobiles
[CorpseName( "a rat corpse" )]
public class Rat : BaseCreature
{
public override string DefaultName => "a rat";
[Constructible]
public Rat() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "a rat";
Body = 238;
BaseSoundID = 0xCC;
@ -67,4 +68,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}