Sets a default parameter for OnHit. More casting cleanup.
This commit is contained in:
parent
74f498c1c8
commit
d6c0bf2d4c
96 changed files with 350 additions and 579 deletions
|
|
@ -28,8 +28,7 @@ namespace Server.Items
|
|||
|
||||
public virtual void StartTimer()
|
||||
{
|
||||
if ( m_Timer != null )
|
||||
m_Timer.Stop();
|
||||
m_Timer?.Stop();
|
||||
|
||||
m_Timer = Timer.DelayCall( DeathDelay, new TimerCallback( Kill ) );
|
||||
|
||||
|
|
@ -38,8 +37,7 @@ namespace Server.Items
|
|||
|
||||
public virtual void StopTimer()
|
||||
{
|
||||
if ( m_Timer != null )
|
||||
m_Timer.Stop();
|
||||
m_Timer?.Stop();
|
||||
|
||||
m_Timer = null;
|
||||
|
||||
|
|
@ -64,7 +62,7 @@ namespace Server.Items
|
|||
// TODO: This will never return "very unusual dead aquarium creature" due to the way it is killed
|
||||
if ( ItemID > 0x3B0F )
|
||||
return Dead ? 1074424 : 1074422; // A very unusual [dead/live] aquarium creature
|
||||
else if ( Hue != 0 )
|
||||
if ( Hue != 0 )
|
||||
return Dead ? 1074425 : 1074423; // A [dead/live] aquarium creature of unusual color
|
||||
|
||||
return Dead ? 1073623 : 1073622; // A [dead/live] aquarium creature
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue