### 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! ❤️
53 lines
No EOL
1.3 KiB
C#
53 lines
No EOL
1.3 KiB
C#
using System;
|
|
using Server.Items;
|
|
|
|
namespace Server.Misc;
|
|
|
|
public class WinterGiftGiver2004 : GiftGiver
|
|
{
|
|
public override DateTime Start => new(2004, 12, 24);
|
|
public override DateTime Finish => new(2005, 1, 1);
|
|
|
|
public static void Initialize()
|
|
{
|
|
GiftGiving.Register(new WinterGiftGiver2004());
|
|
}
|
|
|
|
public override void GiveGift(Mobile mob)
|
|
{
|
|
var box = new GiftBox();
|
|
|
|
box.DropItem(new MistletoeDeed());
|
|
box.DropItem(new PileOfGlacialSnow());
|
|
box.DropItem(new LightOfTheWinterSolstice());
|
|
|
|
var random = Utility.Random(100);
|
|
|
|
if (random < 60)
|
|
{
|
|
box.DropItem(new DecorativeTopiary());
|
|
}
|
|
else if (random < 84)
|
|
{
|
|
box.DropItem(new FestiveCactus());
|
|
}
|
|
else
|
|
{
|
|
box.DropItem(new SnowyTree());
|
|
}
|
|
|
|
switch (GiveGift(mob, box))
|
|
{
|
|
case GiftResult.Backpack:
|
|
{
|
|
mob.SendMessage(0x482, "Happy Holidays from the team! Gift items have been placed in your backpack.");
|
|
break;
|
|
}
|
|
case GiftResult.BankBox:
|
|
{
|
|
mob.SendMessage(0x482, "Happy Holidays from the team! Gift items have been placed in your bank box.");
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
} |