ModernUO/Projects/UOContent/Holiday Stuff/Halloween/2011/Items/BasePaintedMask.cs
Kamron Batman 8fd04ac5aa
fix: Codegens gifts. Unifies staff names. Thank you to the community! (#1766)
### Summary
* Adds contributors/sponsors to the "staff" list for holiday items.
* Unifies all of the staff lists
* Moves 2004 winter gifts to the appropriate folder
* Codegens the gift items

## Thank you!
Thank you to the RunUO/ServUO community, Owyn, Jaedan, the Outlands community, and the ModernUO contributors/community. Without all of you, this would not be possible! ❤️
2024-05-08 20:44:00 -07:00

24 lines
745 B
C#

using ModernUO.Serialization;
using Server.Misc;
namespace Server.Items.Holiday;
[SerializationGenerator(0, false)]
[TypeAlias("Server.Items.ClownMask", "Server.Items.DaemonMask", "Server.Items.PlagueMask")]
public partial class BasePaintedMask : Item
{
[InternString]
[SerializableField(0, setter: "private")]
private string _staffer;
public BasePaintedMask(int itemid) : this(StaffInfo.GetRandomStaff(), itemid)
{
}
public BasePaintedMask(string staffer, int itemid) : base(itemid + Utility.Random(2)) =>
_staffer = staffer.Intern();
public override string DefaultName => _staffer != null ? $"{MaskName} hand painted by {_staffer}" : MaskName;
public virtual string MaskName => "A Mask";
}