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
|
|
@ -159,8 +159,7 @@ namespace Server.Items
|
|||
|
||||
public override void OnAfterDelete()
|
||||
{
|
||||
if ( m_Timer != null )
|
||||
m_Timer.Stop();
|
||||
m_Timer?.Stop();
|
||||
|
||||
ClearEntries();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -192,8 +192,7 @@ namespace Server.Items
|
|||
{
|
||||
m_Table.Remove( m_Healer );
|
||||
|
||||
if ( m_Timer != null )
|
||||
m_Timer.Stop();
|
||||
m_Timer?.Stop();
|
||||
|
||||
m_Timer = null;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ namespace Server.Items
|
|||
|
||||
Recipe r = this.Recipe;
|
||||
|
||||
if ( r != null && @from is PlayerMobile pm )
|
||||
if ( r != null && from is PlayerMobile pm )
|
||||
{
|
||||
if ( !pm.HasRecipe( r ) )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -165,7 +165,7 @@ namespace Server.Items
|
|||
|
||||
public static BaseInstrument GetInstrument( Mobile from )
|
||||
{
|
||||
if ( !(m_Instruments[@from] is BaseInstrument item) )
|
||||
if ( !(m_Instruments[from] is BaseInstrument item) )
|
||||
return null;
|
||||
|
||||
if ( !item.IsChildOf( from.Backpack ) )
|
||||
|
|
@ -210,7 +210,7 @@ namespace Server.Items
|
|||
|
||||
InstrumentPickedCallback callback = state as InstrumentPickedCallback;
|
||||
|
||||
callback?.Invoke( @from, instrument );
|
||||
callback?.Invoke( from, instrument );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ namespace Server.Items
|
|||
from.Send( new MessageLocalizedAffix( from.Serial, from.Body, MessageType.Regular, 0x3B2, 3, 1008146 + (int)Clock.GetMoonPhase( Map.Trammel, from.X, from.Y ), "", AffixType.Prepend, "Trammel : ", "" ) );
|
||||
from.Send( new MessageLocalizedAffix( from.Serial, from.Body, MessageType.Regular, 0x3B2, 3, 1008146 + (int)Clock.GetMoonPhase( Map.Felucca, from.X, from.Y ), "", AffixType.Prepend, "Felucca : ", "" ) );
|
||||
|
||||
if ( @from is PlayerMobile player )
|
||||
if ( from is PlayerMobile player )
|
||||
{
|
||||
QuestSystem qs = player.Quest;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue