fix: Moves many EventSinks out of core. (#1783)

This commit is contained in:
Marcelo Paez Sequeira 2024-05-21 14:02:30 -03:00 • committed by GitHub
parent 1cb798d807
commit 00908d030f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
45 changed files with 133 additions and 276 deletions

View file

@ -35,11 +35,6 @@ public partial class Bandage : Item, IDyable
return true;
}
public static void Initialize()
{
EventSink.BandageTargetRequest += EventSink_BandageTargetRequest;
}
public override void OnDoubleClick(Mobile from)
{
if (from.InRange(GetWorldLocation(), Range))
@ -56,7 +51,7 @@ public partial class Bandage : Item, IDyable
}
}
private static void EventSink_BandageTargetRequest(Mobile from, Item item, Mobile target)
public static void BandageTargetRequest(Mobile from, Item item, Mobile target)
{
if (item is not Bandage b || b.Deleted)
{