### Summary - Adds [Code Generated Events](https://github.com/modernuo/CodeGeneratedEvents) - Removes EventSink.PlayerDeath - Adds `PlayerDeathEvent` and `CreatureDeathEvent` using code generated events > [!Important] > **Developer Note** > Use `[OnEvent(nameof(PlayerMobile.PlayerDeathEvent))]` instead of `EventSink.PlayerDeath` delegate > Check this commit for examples of how to use this.
25 lines
499 B
C#
25 lines
499 B
C#
using ModernUO.Serialization;
|
|
|
|
namespace Server.Mobiles;
|
|
|
|
[SerializationGenerator(1, false)]
|
|
public partial class PricedHealer : BaseHealer
|
|
{
|
|
[Constructible]
|
|
public PricedHealer(int price = 5000) : base(price)
|
|
{
|
|
if (!Core.AOS)
|
|
{
|
|
NameHue = 0x35;
|
|
}
|
|
}
|
|
|
|
public override bool IsInvulnerable => true;
|
|
|
|
public override bool HealsYoungPlayers => false;
|
|
|
|
private void MigrateFrom(V0Content content)
|
|
{
|
|
Price = content.Price;
|
|
}
|
|
}
|