Adds BufferReader and BufferWriter. Updates UOP handling. (#101)
This commit is contained in:
parent
2c0d97cd36
commit
038c3be258
98 changed files with 2458 additions and 2185 deletions
|
|
@ -93,9 +93,9 @@ namespace Server.Spells.Mysticism
|
|||
context.OnDamage();
|
||||
}
|
||||
|
||||
private static void OnPlayerDeath(PlayerDeathEventArgs e)
|
||||
private static void OnPlayerDeath(Mobile m)
|
||||
{
|
||||
RemoveEffect(e.Mobile);
|
||||
RemoveEffect(m);
|
||||
}
|
||||
|
||||
protected void VisualEffect(Mobile to)
|
||||
|
|
|
|||
|
|
@ -146,9 +146,9 @@ namespace Server.Spells.Mysticism
|
|||
BuffInfo.RemoveBuff(m, BuffIcon.StoneForm);
|
||||
}
|
||||
|
||||
private static void OnPlayerDeath(PlayerDeathEventArgs e)
|
||||
private static void OnPlayerDeath(Mobile m)
|
||||
{
|
||||
RemoveEffects(e.Mobile);
|
||||
RemoveEffects(m);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -67,10 +67,10 @@ namespace Server.Spells.Ninjitsu
|
|||
EventSink.Login += OnLogin;
|
||||
}
|
||||
|
||||
public static void OnLogin(LoginEventArgs e)
|
||||
public static void OnLogin(Mobile m)
|
||||
{
|
||||
if (GetContext(e.Mobile)?.SpeedBoost == true)
|
||||
e.Mobile.Send(SpeedControl.MountSpeed);
|
||||
if (GetContext(m)?.SpeedBoost == true)
|
||||
m.Send(SpeedControl.MountSpeed);
|
||||
}
|
||||
|
||||
public override bool CheckCast()
|
||||
|
|
|
|||
|
|
@ -24,11 +24,13 @@ namespace Server.Spells.Spellweaving
|
|||
|
||||
public static void Initialize()
|
||||
{
|
||||
EventSink.AggressiveAction += delegate(AggressiveActionEventArgs e)
|
||||
{
|
||||
if (TransformationSpellHelper.UnderTransformation(e.Aggressor, typeof(EtherealVoyageSpell)))
|
||||
TransformationSpellHelper.RemoveContext(e.Aggressor, true);
|
||||
};
|
||||
EventSink.AggressiveAction += RemoveTransformationOnAggressiveAction;
|
||||
}
|
||||
|
||||
public static void RemoveTransformationOnAggressiveAction(AggressiveActionEventArgs e)
|
||||
{
|
||||
if (TransformationSpellHelper.UnderTransformation(e.Aggressor, typeof(EtherealVoyageSpell)))
|
||||
TransformationSpellHelper.RemoveContext(e.Aggressor, true);
|
||||
}
|
||||
|
||||
public override bool CheckCast()
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ namespace Server.Spells.Spellweaving
|
|||
|
||||
public static void Initialize()
|
||||
{
|
||||
EventSink.PlayerDeath += delegate(PlayerDeathEventArgs e) { HandleDeath(e.Mobile); };
|
||||
EventSink.PlayerDeath += HandleDeath;
|
||||
}
|
||||
|
||||
public override void OnCast()
|
||||
|
|
@ -132,10 +132,8 @@ namespace Server.Spells.Spellweaving
|
|||
timer.DoExpire();
|
||||
}
|
||||
|
||||
public static void OnLogin(LoginEventArgs e)
|
||||
public static void OnLogin(Mobile m)
|
||||
{
|
||||
Mobile m = e.Mobile;
|
||||
|
||||
if (m?.Alive != false || m_Table[m] == null)
|
||||
return;
|
||||
|
||||
|
|
|
|||
|
|
@ -32,12 +32,12 @@ namespace Server.Spells.Spellweaving
|
|||
EventSink.Login += OnLogin;
|
||||
}
|
||||
|
||||
public static void OnLogin(LoginEventArgs e)
|
||||
public static void OnLogin(Mobile m)
|
||||
{
|
||||
TransformContext context = TransformationSpellHelper.GetContext(e.Mobile);
|
||||
TransformContext context = TransformationSpellHelper.GetContext(m);
|
||||
|
||||
if (context?.Type == typeof(ReaperFormSpell))
|
||||
e.Mobile.Send(SpeedControl.WalkSpeed);
|
||||
m.Send(SpeedControl.WalkSpeed);
|
||||
}
|
||||
|
||||
public override void DoEffect(Mobile m)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue