fix: Codegens resources (#1272)

This commit is contained in:
Kamron Batman 2022-11-23 13:45:32 -08:00 • committed by GitHub
parent 59ed0a5bb4
commit 82637a77cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
59 changed files with 2435 additions and 2695 deletions

View file

@ -1,36 +1,20 @@
namespace Server.Items
using ModernUO.Serialization;
namespace Server.Items;
[SerializationGenerator(0, false)]
public partial class BagOfReagents : Bag
{
public class BagOfReagents : Bag
[Constructible]
public BagOfReagents(int amount = 50)
{
[Constructible]
public BagOfReagents(int amount = 50)
{
DropItem(new BlackPearl(amount));
DropItem(new Bloodmoss(amount));
DropItem(new Garlic(amount));
DropItem(new Ginseng(amount));
DropItem(new MandrakeRoot(amount));
DropItem(new Nightshade(amount));
DropItem(new SulfurousAsh(amount));
DropItem(new SpidersSilk(amount));
}
public BagOfReagents(Serial serial) : base(serial)
{
}
public override void Serialize(IGenericWriter writer)
{
base.Serialize(writer);
writer.Write(0); // version
}
public override void Deserialize(IGenericReader reader)
{
base.Deserialize(reader);
var version = reader.ReadInt();
}
DropItem(new BlackPearl(amount));
DropItem(new Bloodmoss(amount));
DropItem(new Garlic(amount));
DropItem(new Ginseng(amount));
DropItem(new MandrakeRoot(amount));
DropItem(new Nightshade(amount));
DropItem(new SulfurousAsh(amount));
DropItem(new SpidersSilk(amount));
}
}