ModernUO/Projects/UOContent/Holiday Stuff/Christmas/2004/LightOfTheWinterSolstice.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

42 lines
1.1 KiB
C#

using ModernUO.Serialization;
using Server.Misc;
namespace Server.Items;
[Flippable(0x236E, 0x2371)]
[SerializationGenerator(0, false)]
public partial class LightOfTheWinterSolstice : Item
{
[InternString]
[InvalidateProperties]
[SerializableField(0)]
[SerializedCommandProperty(AccessLevel.GameMaster)]
private string _dipper;
[Constructible]
public LightOfTheWinterSolstice(string dipper = null) : base(0x236E)
{
_dipper = dipper?.Intern() ?? StaffInfo.GetRandomStaff();
Weight = 1.0;
LootType = LootType.Blessed;
Light = LightType.Circle300;
Hue = Utility.RandomDyedHue();
}
public override void OnSingleClick(Mobile from)
{
base.OnSingleClick(from);
LabelTo(from, 1070881, _dipper); // Hand Dipped by ~1_name~
LabelTo(from, 1070880); // Winter 2004
}
public override void GetProperties(IPropertyList list)
{
base.GetProperties(list);
list.Add(1070881, _dipper); // Hand Dipped by ~1_name~
list.Add(1070880); // Winter 2004
}
}