fix: Moves many EventSinks out of core. (#1783)
This commit is contained in:
parent
1cb798d807
commit
00908d030f
45 changed files with 133 additions and 276 deletions
|
|
@ -215,10 +215,6 @@ public partial class Spellbook : Item, ICraftable, ISlayer, IAosItem
|
|||
|
||||
public static void Configure()
|
||||
{
|
||||
EventSink.OpenSpellbookRequest += EventSink_OpenSpellbookRequest;
|
||||
EventSink.CastSpellRequest += EventSink_CastSpellRequest;
|
||||
EventSink.TargetedSpell += EventSink_TargetedSpell;
|
||||
|
||||
CommandSystem.Register("AllSpells", AccessLevel.GameMaster, AllSpells_OnCommand);
|
||||
}
|
||||
|
||||
|
|
@ -249,7 +245,7 @@ public partial class Spellbook : Item, ICraftable, ISlayer, IAosItem
|
|||
}
|
||||
}
|
||||
|
||||
private static void EventSink_OpenSpellbookRequest(Mobile from, int typeID)
|
||||
public static void OpenSpellbookRequest(Mobile from, int typeID)
|
||||
{
|
||||
if (!DesignContext.Check(from))
|
||||
{
|
||||
|
|
@ -273,7 +269,7 @@ public partial class Spellbook : Item, ICraftable, ISlayer, IAosItem
|
|||
book?.DisplayTo(from);
|
||||
}
|
||||
|
||||
private static void EventSink_TargetedSpell(Mobile from, IEntity target, int spellId)
|
||||
public static void TargetedSpell(Mobile from, IEntity target, int spellId)
|
||||
{
|
||||
if (!DesignContext.Check(from))
|
||||
{
|
||||
|
|
@ -300,7 +296,7 @@ public partial class Spellbook : Item, ICraftable, ISlayer, IAosItem
|
|||
}
|
||||
}
|
||||
|
||||
private static void EventSink_CastSpellRequest(Mobile from, int spellID, Item item)
|
||||
public static void CastSpellRequest(Mobile from, int spellID, Item item)
|
||||
{
|
||||
if (!DesignContext.Check(from))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue