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! ❤️
This commit is contained in:
parent
8efa90b3ce
commit
8fd04ac5aa
30 changed files with 822 additions and 1017 deletions
|
|
@ -1,33 +1,24 @@
|
|||
using ModernUO.Serialization;
|
||||
using Server.Misc;
|
||||
|
||||
namespace Server.Items.Holiday
|
||||
namespace Server.Items.Holiday;
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
[TypeAlias("Server.Items.ClownMask", "Server.Items.DaemonMask", "Server.Items.PlagueMask")]
|
||||
public partial class BasePaintedMask : Item
|
||||
{
|
||||
[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)
|
||||
{
|
||||
private static readonly string[] Staffers =
|
||||
{
|
||||
"Owyn",
|
||||
"Luthius",
|
||||
"Kamron",
|
||||
"Jaedan",
|
||||
"Vorspire"
|
||||
};
|
||||
|
||||
[InternString]
|
||||
[SerializableField(0, setter: "private")]
|
||||
private string _staffer;
|
||||
|
||||
public BasePaintedMask(int itemid) : this(Staffers.RandomElement(), 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";
|
||||
}
|
||||
|
||||
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";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue