ModernUO/Projects/UOContent/Mobiles/Healers/PricedHealer.cs
Kamron Batman 8282b00ca2
feat: Moves gumps out of the core (#1916)
> [!Important]
> **Developer Note**
> This code change will **completely move gumps out of the core**


### Summary

- Adds `GetGumps()` convenience which exposes methods to Find/Close/Send multiple gumps. This helper is a performance improvement by eliminating the Dictionary<Player, List> lookup for gumps.
2024-08-09 19:07:32 -07:00

43 lines
888 B
C#

using ModernUO.Serialization;
using Server.Gumps;
namespace Server.Mobiles;
[SerializationGenerator(0, false)]
public partial class PricedHealer : BaseHealer
{
[SerializableField(0)]
[SerializedCommandProperty(AccessLevel.GameMaster)]
private int _price;
[Constructible]
public PricedHealer(int price = 5000)
{
Price = price;
if (!Core.AOS)
{
NameHue = 0x35;
}
}
public override bool IsInvulnerable => true;
public override bool HealsYoungPlayers => false;
public override void InitSBInfo()
{
}
public override void OfferResurrection(Mobile m)
{
Direction = GetDirectionTo(m);
m.PlaySound(0x214);
m.FixedEffect(0x376A, 10, 16);
m.SendGump(new PricedResurrectGump(this, Price));
}
public override bool CheckResurrect(Mobile m) => true;
}