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

@ -15,10 +15,11 @@ namespace Server.Mobiles
public override TimeSpan ReacquireDelay { get { return TimeSpan.FromSeconds( 1.0 ); } }
public override string DefaultName => "a wisp";
[Constructible]
public DarkWisp() : base( AIType.AI_Mage, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "a wisp";
Body = 165;
BaseSoundID = 466;
@ -81,4 +82,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -3,16 +3,16 @@ using Server;
using Server.Items;
using Server.Gumps;
namespace Server.Mobiles
{
[CorpseName( "an ethereal warrior corpse" )]
public class EtherealWarrior : BaseCreature
{
public override bool InitialInnocent{ get{ return true; } }
namespace Server.Mobiles
{
[CorpseName( "an ethereal warrior corpse" )]
public class EtherealWarrior : BaseCreature
{
public override bool InitialInnocent => true;
[Constructible]
public EtherealWarrior() : base( AIType.AI_Mage, FightMode.Evil, 10, 1, 0.2, 0.4 )
{
[Constructible]
public EtherealWarrior() : base( AIType.AI_Mage, FightMode.Evil, 10, 1, 0.2, 0.4 )
{
Name = NameList.RandomName( "ethereal warrior" );
Body = 123;
@ -129,20 +129,20 @@ namespace Server.Mobiles
attacker.Mana -= Utility.Random( 10, 10 );
}
public EtherealWarrior( Serial serial ) : base( serial )
{
}
public EtherealWarrior( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 );
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 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

@ -8,7 +8,7 @@ namespace Server.Mobiles
[CorpseName( "a pixie corpse" )]
public class Pixie : BaseCreature
{
public override bool InitialInnocent{ get{ return true; } }
public override bool InitialInnocent => true;
[Constructible]
public Pixie() : base( AIType.AI_Mage, FightMode.Evil, 10, 1, 0.2, 0.4 )
@ -88,4 +88,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -7,10 +7,11 @@ namespace Server.Mobiles
[CorpseName( "a wisp corpse" )]
public class ShadowWisp : BaseCreature
{
public override string DefaultName => "a shadow wisp";
[Constructible]
public ShadowWisp() : base( AIType.AI_Mage, FightMode.Aggressor, 10, 1, 0.3, 0.6 )
{
Name = "a shadow wisp";
Body = 165;
BaseSoundID = 466;
@ -78,4 +79,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}

View file

@ -16,10 +16,11 @@ namespace Server.Mobiles
public override TimeSpan ReacquireDelay { get { return TimeSpan.FromSeconds( 1.0 ); } }
public override string DefaultName => "a wisp";
[Constructible]
public Wisp() : base( AIType.AI_Mage, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "a wisp";
Body = 58;
BaseSoundID = 466;
@ -84,4 +85,4 @@ namespace Server.Mobiles
int version = reader.ReadInt();
}
}
}
}