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,10 +6,11 @@ namespace Server.Mobiles
[CorpseName( "a frost spider corpse" )]
public class FrostSpider : BaseCreature
{
public override string DefaultName => "a frost spider";
[Constructible]
public FrostSpider() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "a frost spider";
Body = 20;
BaseSoundID = 0x388;
@ -38,7 +39,7 @@ namespace Server.Mobiles
Fame = 775;
Karma = -775;
VirtualArmor = 28;
VirtualArmor = 28;
Tamable = true;
ControlSlots = 1;
@ -75,4 +76,4 @@ namespace Server.Mobiles
BaseSoundID = 0x388;
}
}
}
}

View file

@ -8,10 +8,11 @@ namespace Server.Mobiles
[CorpseName( "a giant black widow spider corpse" )] // stupid corpse name
public class GiantBlackWidow : BaseCreature
{
public override string DefaultName => "a giant black wide";
[Constructible]
public GiantBlackWidow() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "a giant black widow";
Body = 0x9D;
BaseSoundID = 0x388; // TODO: validate
@ -53,8 +54,8 @@ namespace Server.Mobiles
}
public override FoodType FavoriteFood{ get{ return FoodType.Meat; } }
public override Poison PoisonImmune{ get{ return Poison.Deadly; } }
public override Poison HitPoison{ get{ return Poison.Deadly; } }
public override Poison PoisonImmune => Poison.Deadly;
public override Poison HitPoison => Poison.Deadly;
public GiantBlackWidow( Serial serial ) : base( serial )
{
@ -72,4 +73,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -8,10 +8,11 @@ namespace Server.Mobiles
[CorpseName( "a giant spider corpse" )]
public class GiantSpider : BaseCreature
{
public override string DefaultName => "a giant spider";
[Constructible]
public GiantSpider() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "a giant spider";
Body = 28;
BaseSoundID = 0x388;
@ -53,8 +54,8 @@ namespace Server.Mobiles
public override FoodType FavoriteFood{ get{ return FoodType.Meat; } }
public override PackInstinct PackInstinct{ get{ return PackInstinct.Arachnid; } }
public override Poison PoisonImmune{ get{ return Poison.Regular; } }
public override Poison HitPoison{ get{ return Poison.Regular; } }
public override Poison PoisonImmune => Poison.Regular;
public override Poison HitPoison => Poison.Regular;
public GiantSpider( Serial serial ) : base( serial )
{
@ -72,4 +73,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -8,10 +8,11 @@ namespace Server.Mobiles
[CorpseName( "a terathan drone corpse" )]
public class TerathanDrone : BaseCreature
{
public override string DefaultName => "a terathan drone";
[Constructible]
public TerathanDrone() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "a terathan drone";
Body = 71;
BaseSoundID = 594;
@ -41,7 +42,7 @@ namespace Server.Mobiles
Karma = -2000;
VirtualArmor = 24;
PackItem( new SpidersSilk( 2 ) );
}
@ -77,4 +78,4 @@ namespace Server.Mobiles
BaseSoundID = 594;
}
}
}
}

View file

@ -8,10 +8,11 @@ namespace Server.Mobiles
[CorpseName( "a terathan warrior corpse" )]
public class TerathanWarrior : BaseCreature
{
public override string DefaultName => "a terathan warrior";
[Constructible]
public TerathanWarrior() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "a terathan warrior";
Body = 70;
BaseSoundID = 589;
@ -75,4 +76,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}