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
|
|
@ -5,10 +5,11 @@ namespace Server.Items
|
|||
{
|
||||
public class PlagueBeastGland : Item
|
||||
{
|
||||
public override string DefaultName => "a healthy gland";
|
||||
|
||||
[Constructible]
|
||||
public PlagueBeastGland() : base( 0x1CEF )
|
||||
{
|
||||
Name = "A Healthy Gland";
|
||||
Weight = 1.0;
|
||||
Hue = 0x6;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,14 +7,11 @@ namespace Server.Items
|
|||
{
|
||||
public class PlagueBeastInnard : Item, IScissorable, ICarvable
|
||||
{
|
||||
public PlagueBeastLord Owner
|
||||
{
|
||||
get { return RootParent as PlagueBeastLord; }
|
||||
}
|
||||
public PlagueBeastLord Owner => RootParent as PlagueBeastLord;
|
||||
public override string DefaultName => "plague beast innards";
|
||||
|
||||
public PlagueBeastInnard( int itemID, int hue ) : base( itemID )
|
||||
{
|
||||
Name = "plague beast innards";
|
||||
Hue = hue;
|
||||
Movable = false;
|
||||
Weight = 1.0;
|
||||
|
|
|
|||
|
|
@ -16,12 +16,12 @@ namespace Server.Items
|
|||
set { m_Cut = value; }
|
||||
}
|
||||
|
||||
public override string DefaultName => "a plague beast mutation core";
|
||||
|
||||
[Constructible]
|
||||
public PlagueBeastMutationCore() : base( 0x1CF0 )
|
||||
{
|
||||
m_Cut = true;
|
||||
|
||||
Name = "a plague beast mutation core";
|
||||
Weight = 1.0;
|
||||
Hue = 0x480;
|
||||
}
|
||||
|
|
@ -36,7 +36,7 @@ namespace Server.Items
|
|||
Movable = true;
|
||||
|
||||
from.AddToBackpack( this );
|
||||
from.LocalOverheadMessage( MessageType.Regular, 0x34, 1071906 ); // * You remove the plague mutation core from the plague beast, causing it to dissolve into a pile of goo *
|
||||
from.LocalOverheadMessage( MessageType.Regular, 0x34, 1071906 ); // * You remove the plague mutation core from the plague beast, causing it to dissolve into a pile of goo *
|
||||
|
||||
if ( owner != null )
|
||||
Timer.DelayCall<PlagueBeastLord>( TimeSpan.FromSeconds( 1 ), new TimerStateCallback<PlagueBeastLord>( KillParent ), owner );
|
||||
|
|
|
|||
|
|
@ -153,7 +153,7 @@ namespace Server.Items
|
|||
|
||||
if ( Owner != null )
|
||||
Owner.PlaySound( 0x187 );
|
||||
|
||||
|
||||
AddComponent( new PlagueBeastComponent( 0x1D0D, 0x0 ), 22, 3 );
|
||||
AddComponent( new PlagueBeastComponent( 0x1D12, 0x0 ), 15, 18 );
|
||||
AddComponent( new PlagueBeastComponent( 0x1DA3, 0x21 ), 26, 46 );
|
||||
|
|
@ -185,8 +185,8 @@ namespace Server.Items
|
|||
|
||||
public class PlagueBeastRockOrgan : PlagueBeastOrgan
|
||||
{
|
||||
public override bool IsCuttable { get { return true; } }
|
||||
|
||||
public override bool IsCuttable => true;
|
||||
|
||||
public PlagueBeastRockOrgan() : base( 0x177A, 0x60 )
|
||||
{
|
||||
}
|
||||
|
|
@ -194,7 +194,7 @@ namespace Server.Items
|
|||
public override void Carve( Mobile from, Item with )
|
||||
{
|
||||
if ( IsAccessibleTo( from ) )
|
||||
with.PublicOverheadMessage( MessageType.Regular, 0x3B2, 1071896 ); // This is too crude an implement for such a procedure.
|
||||
with.PublicOverheadMessage( MessageType.Regular, 0x3B2, 1071896 ); // This is too crude an implement for such a procedure.
|
||||
}
|
||||
|
||||
public override bool OnLifted( Mobile from, PlagueBeastComponent c )
|
||||
|
|
@ -218,7 +218,7 @@ namespace Server.Items
|
|||
AddComponent( new PlagueBeastComponent( 0x1777, 0x1 ), 10, 14 );
|
||||
|
||||
if ( BrainHue > 0 )
|
||||
AddComponent( new PlagueBeastComponent( 0x1CF0, BrainHue, true ), 1, 24 ); // 22, 29
|
||||
AddComponent( new PlagueBeastComponent( 0x1CF0, BrainHue, true ), 1, 24 ); // 22, 29
|
||||
else
|
||||
AddComponent( new PlagueBeastBlood(), -7, 24 );
|
||||
}
|
||||
|
|
@ -245,7 +245,7 @@ namespace Server.Items
|
|||
public class PlagueBeastRubbleOrgan : PlagueBeastOrgan
|
||||
{
|
||||
private int m_Veins;
|
||||
|
||||
|
||||
public PlagueBeastRubbleOrgan() : base()
|
||||
{
|
||||
m_Veins = 3;
|
||||
|
|
@ -351,14 +351,14 @@ namespace Server.Items
|
|||
m_Veins = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public class PlagueBeastBackupOrgan : PlagueBeastOrgan
|
||||
{
|
||||
public override bool IsCuttable { get { return true; } }
|
||||
public override bool IsCuttable => true;
|
||||
|
||||
private Timer m_Timer;
|
||||
private Item m_Gland;
|
||||
|
||||
|
||||
public PlagueBeastBackupOrgan() : base( 0x1362, 0x6 )
|
||||
{
|
||||
}
|
||||
|
|
@ -377,7 +377,7 @@ namespace Server.Items
|
|||
public override void Carve( Mobile from, Item with )
|
||||
{
|
||||
if ( IsAccessibleTo( from ) )
|
||||
with.PublicOverheadMessage( MessageType.Regular, 0x3B2, 1071896 ); // This is too crude an implement for such a procedure.
|
||||
with.PublicOverheadMessage( MessageType.Regular, 0x3B2, 1071896 ); // This is too crude an implement for such a procedure.
|
||||
}
|
||||
|
||||
public override bool OnLifted( Mobile from, PlagueBeastComponent c )
|
||||
|
|
@ -530,7 +530,7 @@ namespace Server.Items
|
|||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ( m_Brains == 4 )
|
||||
FinishOpening( from );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue