Removes redundant delegate type declarations
This commit is contained in:
parent
3c9842ee5a
commit
c85b0a740c
317 changed files with 898 additions and 903 deletions
|
|
@ -24,13 +24,13 @@ namespace Server.Spells.Spellweaving
|
|||
|
||||
public static void Initialize()
|
||||
{
|
||||
EventSink.AggressiveAction += new AggressiveActionEventHandler( delegate( AggressiveActionEventArgs e )
|
||||
EventSink.AggressiveAction += delegate( AggressiveActionEventArgs e )
|
||||
{
|
||||
if ( TransformationSpellHelper.UnderTransformation( e.Aggressor, typeof( EtherealVoyageSpell ) ) )
|
||||
{
|
||||
TransformationSpellHelper.RemoveContext( e.Aggressor, true );
|
||||
}
|
||||
} );
|
||||
};
|
||||
}
|
||||
|
||||
public override bool CheckCast()
|
||||
|
|
@ -64,7 +64,7 @@ namespace Server.Spells.Spellweaving
|
|||
|
||||
TimeSpan duration = TimeSpan.FromSeconds( 12 + (int)(skill / 24) + (FocusLevel * 2) );
|
||||
|
||||
Timer.DelayCall<Mobile>( duration, new TimerStateCallback<Mobile>( RemoveEffect ), Caster );
|
||||
Timer.DelayCall<Mobile>( duration, RemoveEffect, Caster );
|
||||
|
||||
Caster.BeginAction( typeof( EtherealVoyageSpell ) ); //Cannot cast this spell for another 5 minutes(300sec) after effect removed.
|
||||
|
||||
|
|
|
|||
|
|
@ -25,10 +25,10 @@ namespace Server.Spells.Spellweaving
|
|||
|
||||
public static void Initialize()
|
||||
{
|
||||
EventSink.PlayerDeath += new PlayerDeathEventHandler( delegate( PlayerDeathEventArgs e )
|
||||
EventSink.PlayerDeath += delegate( PlayerDeathEventArgs e )
|
||||
{
|
||||
HandleDeath( e.Mobile );
|
||||
} );
|
||||
};
|
||||
}
|
||||
|
||||
public override void OnCast()
|
||||
|
|
@ -93,7 +93,7 @@ namespace Server.Spells.Spellweaving
|
|||
public static void HandleDeath( Mobile m )
|
||||
{
|
||||
if ( m_Table.ContainsKey( m ) )
|
||||
Timer.DelayCall<Mobile>( TimeSpan.FromSeconds( Utility.RandomMinMax( 2, 4 ) ), new TimerStateCallback<Mobile>( HandleDeath_OnCallback ), m );
|
||||
Timer.DelayCall<Mobile>( TimeSpan.FromSeconds( Utility.RandomMinMax( 2, 4 ) ), HandleDeath_OnCallback, m );
|
||||
}
|
||||
|
||||
private static void HandleDeath_OnCallback( Mobile m )
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ namespace Server.Items
|
|||
m_CreationTime = DateTime.UtcNow;
|
||||
m_LifeSpan = lifeSpan;
|
||||
|
||||
m_Timer = Timer.DelayCall( TimeSpan.FromSeconds( 5 ), TimeSpan.FromSeconds( 5 ), new TimerCallback( CheckExpiry ) );
|
||||
m_Timer = Timer.DelayCall( TimeSpan.FromSeconds( 5 ), TimeSpan.FromSeconds( 5 ), CheckExpiry );
|
||||
}
|
||||
|
||||
public TransientItem( Serial serial )
|
||||
|
|
@ -107,7 +107,7 @@ namespace Server.Items
|
|||
m_LifeSpan = reader.ReadTimeSpan();
|
||||
m_CreationTime = reader.ReadDateTime();
|
||||
|
||||
m_Timer = Timer.DelayCall( TimeSpan.FromSeconds( 5 ), TimeSpan.FromSeconds( 5 ), new TimerCallback( CheckExpiry ) );
|
||||
m_Timer = Timer.DelayCall( TimeSpan.FromSeconds( 5 ), TimeSpan.FromSeconds( 5 ), CheckExpiry );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ namespace Server.Spells.Spellweaving
|
|||
|
||||
public static void Initialize()
|
||||
{
|
||||
EventSink.Login += new LoginEventHandler( OnLogin );
|
||||
EventSink.Login += OnLogin;
|
||||
}
|
||||
|
||||
public static void OnLogin( LoginEventArgs e )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue