Add DefaultName property to Mobiles & Items (#18)
This commit is contained in:
parent
b06f5bf60d
commit
8ee42c8ea2
713 changed files with 5112 additions and 4987 deletions
|
|
@ -8,8 +8,10 @@ namespace Server.Mobiles
|
|||
[CorpseName( "a cu sidhe corpse" )]
|
||||
public class CuSidhe : BaseMount
|
||||
{
|
||||
public override string DefaultName => "a cu sidhe";
|
||||
|
||||
[Constructible]
|
||||
public CuSidhe() : this( "a cu sidhe" )
|
||||
public CuSidhe() : this( null )
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -90,18 +92,15 @@ namespace Server.Mobiles
|
|||
base.OnDoubleClick( from );
|
||||
}
|
||||
|
||||
public override bool CanHeal{ get{ return true; } }
|
||||
public override bool CanHealOwner{ get{ return true; } }
|
||||
public override bool CanHeal => true;
|
||||
public override bool CanHealOwner => true;
|
||||
public override FoodType FavoriteFood{ get{ return FoodType.FruitsAndVegies; } }
|
||||
public override bool CanAngerOnTame{ get { return true; } }
|
||||
public override bool StatLossAfterTame{ get{ return true; } }
|
||||
public override bool StatLossAfterTame => true;
|
||||
public override int Hides{ get{ return 10; } }
|
||||
public override int Meat{ get{ return 3; } }
|
||||
|
||||
public override WeaponAbility GetWeaponAbility()
|
||||
{
|
||||
return WeaponAbility.BleedAttack;
|
||||
}
|
||||
public override WeaponAbility GetWeaponAbility() => WeaponAbility.BleedAttack;
|
||||
|
||||
public CuSidhe( Serial serial ) : base( serial )
|
||||
{
|
||||
|
|
@ -127,7 +126,7 @@ namespace Server.Mobiles
|
|||
int version = reader.ReadInt();
|
||||
|
||||
if ( version < 1 && Name == "a Cu Sidhe" )
|
||||
Name = "a cu sidhe";
|
||||
Name = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,10 +7,11 @@ namespace Server.Mobiles
|
|||
[CorpseName( "a ferret corpse" )]
|
||||
public class Ferret : BaseCreature
|
||||
{
|
||||
public override string DefaultName => "a ferret";
|
||||
|
||||
[Constructible]
|
||||
public Ferret() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Name = "a ferret";
|
||||
Body = 0x117;
|
||||
|
||||
SetStr( 41, 48 );
|
||||
|
|
@ -47,7 +48,7 @@ namespace Server.Mobiles
|
|||
{
|
||||
}
|
||||
|
||||
public override void OnMovement( Mobile m, Point3D oldLocation )
|
||||
public override void OnMovement( Mobile m, Point3D oldLocation )
|
||||
{
|
||||
if ( m is Ferret && m.InRange( this, 3 ) && m.Alive )
|
||||
Talk( (Ferret) m );
|
||||
|
|
@ -75,7 +76,7 @@ namespace Server.Mobiles
|
|||
QuestSystem.FocusTo( this, to );
|
||||
|
||||
Say( m_Vocabulary[ Utility.Random( m_Vocabulary.Length ) ] );
|
||||
|
||||
|
||||
if ( to != null && Utility.RandomBool() )
|
||||
Timer.DelayCall( TimeSpan.FromSeconds( Utility.RandomMinMax( 5, 8 ) ), new TimerCallback( delegate() { to.Talk(); } ) );
|
||||
|
||||
|
|
|
|||
|
|
@ -7,10 +7,11 @@ namespace Server.Mobiles
|
|||
[TypeAlias( "Server.Mobiles.Grizzlybear" )]
|
||||
public class RagingGrizzlyBear : BaseCreature
|
||||
{
|
||||
public override string DefaultName => "a raging grizzly bear";
|
||||
|
||||
[Constructible]
|
||||
public RagingGrizzlyBear() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Name = "a raging grizzly bear";
|
||||
Body = 212;
|
||||
BaseSoundID = 0xA3;
|
||||
|
||||
|
|
@ -41,7 +42,7 @@ namespace Server.Mobiles
|
|||
VirtualArmor = 24;
|
||||
|
||||
Tamable = false;
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override int Meat{ get{ return 4; } }
|
||||
|
|
|
|||
|
|
@ -4,13 +4,14 @@ using Server.Mobiles;
|
|||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName( "a squirrel corpse" )]
|
||||
[CorpseName( "a squirrel corpse" )]
|
||||
public class Squirrel : BaseCreature
|
||||
{
|
||||
public override string DefaultName => "a squirrell";
|
||||
|
||||
[Constructible]
|
||||
public Squirrel() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Name = "a squirrel";
|
||||
Body = 0x116;
|
||||
|
||||
SetStr( 44, 50 );
|
||||
|
|
@ -33,7 +34,7 @@ namespace Server.Mobiles
|
|||
SetSkill( SkillName.Tactics, 4.0 );
|
||||
SetSkill( SkillName.Wrestling, 4.0 );
|
||||
|
||||
Tamable = true;
|
||||
Tamable = true;
|
||||
ControlSlots = 1;
|
||||
MinTameSkill = -21.3;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue