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
|
|
@ -389,14 +389,12 @@ namespace Server.Items
|
|||
EventSink.SetAbility += EventSink_SetAbility;
|
||||
}
|
||||
|
||||
private static void EventSink_SetAbility(SetAbilityEventArgs e)
|
||||
private static void EventSink_SetAbility(Mobile m, int index)
|
||||
{
|
||||
int index = e.Index;
|
||||
|
||||
if (index == 0)
|
||||
ClearCurrentAbility(e.Mobile);
|
||||
ClearCurrentAbility(m);
|
||||
else if (index >= 1 && index < Abilities.Length)
|
||||
SetCurrentAbility(e.Mobile, Abilities[index]);
|
||||
SetCurrentAbility(m, Abilities[index]);
|
||||
}
|
||||
|
||||
private static void AddContext(Mobile m, WeaponAbilityContext context)
|
||||
|
|
|
|||
|
|
@ -216,13 +216,11 @@ namespace Server.Items
|
|||
return (item == null || item is Spellbook) && m.FindItemOnLayer(Layer.TwoHanded) == null;
|
||||
}
|
||||
|
||||
private static void EventSink_DisarmRequest(DisarmRequestEventArgs e)
|
||||
private static void EventSink_DisarmRequest(Mobile m)
|
||||
{
|
||||
if (Core.AOS)
|
||||
return;
|
||||
|
||||
Mobile m = e.Mobile;
|
||||
|
||||
#region Dueling
|
||||
|
||||
if (!DuelContext.AllowSpecialAbility(m, "Disarm", true))
|
||||
|
|
@ -251,13 +249,11 @@ namespace Server.Items
|
|||
}
|
||||
}
|
||||
|
||||
private static void EventSink_StunRequest(StunRequestEventArgs e)
|
||||
private static void EventSink_StunRequest(Mobile m)
|
||||
{
|
||||
if (Core.AOS)
|
||||
return;
|
||||
|
||||
Mobile m = e.Mobile;
|
||||
|
||||
#region Dueling
|
||||
|
||||
if (!DuelContext.AllowSpecialAbility(m, "Stun", true))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue