diff --git a/Projects/UOContent/Items/Food/BeverageEmpty.cs b/Projects/UOContent/Items/Food/BeverageEmpty.cs index fb75dad41..317635af0 100644 --- a/Projects/UOContent/Items/Food/BeverageEmpty.cs +++ b/Projects/UOContent/Items/Food/BeverageEmpty.cs @@ -1,51 +1,18 @@ -namespace Server.Items +using ModernUO.Serialization; + +namespace Server.Items; + +[Flippable(0x1f81, 0x1f82, 0x1f83, 0x1f84)] +[SerializationGenerator(0, false)] +public partial class Glass : Item { - [Flippable(0x1f81, 0x1f82, 0x1f83, 0x1f84)] - public class Glass : Item - { - [Constructible] - public Glass() : base(0x1f81) => Weight = 0.1; - - public Glass(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(); - } - } - - public class GlassBottle : Item - { - [Constructible] - public GlassBottle() : base(0xe2b) => Weight = 0.3; - - public GlassBottle(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(); - } - } + [Constructible] + public Glass() : base(0x1f81) => Weight = 0.1; +} + +[SerializationGenerator(0, false)] +public partial class GlassBottle : Item +{ + [Constructible] + public GlassBottle() : base(0xe2b) => Weight = 0.3; } diff --git a/Projects/UOContent/Items/Food/Bowls.cs b/Projects/UOContent/Items/Food/Bowls.cs index b5b98522a..f080b6d62 100644 --- a/Projects/UOContent/Items/Food/Bowls.cs +++ b/Projects/UOContent/Items/Food/Bowls.cs @@ -1,540 +1,286 @@ -namespace Server.Items +using ModernUO.Serialization; + +namespace Server.Items; + +[SerializationGenerator(0, false)] +public partial class EmptyWoodenBowl : Item { - public class EmptyWoodenBowl : Item + [Constructible] + public EmptyWoodenBowl() : base(0x15F8) => Weight = 1.0; +} + +[SerializationGenerator(0, false)] +public partial class EmptyPewterBowl : Item +{ + [Constructible] + public EmptyPewterBowl() : base(0x15FD) => Weight = 1.0; +} + +[SerializationGenerator(0, false)] +public partial class WoodenBowlOfCarrots : Food +{ + [Constructible] + public WoodenBowlOfCarrots() : base(0x15F9) { - [Constructible] - public EmptyWoodenBowl() : base(0x15F8) => Weight = 1.0; - - public EmptyWoodenBowl(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(); - } + Stackable = false; + Weight = 1.0; + FillFactor = 2; } - public class EmptyPewterBowl : Item + public override bool Eat(Mobile from) { - [Constructible] - public EmptyPewterBowl() : base(0x15FD) => Weight = 1.0; - - public EmptyPewterBowl(Serial serial) : base(serial) + if (!base.Eat(from)) { + return false; } - 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(); - } - } - - public class WoodenBowlOfCarrots : Food - { - [Constructible] - public WoodenBowlOfCarrots() : base(0x15F9) - { - Stackable = false; - Weight = 1.0; - FillFactor = 2; - } - - public WoodenBowlOfCarrots(Serial serial) : base(serial) - { - } - - public override bool Eat(Mobile from) - { - if (!base.Eat(from)) - { - return false; - } - - from.AddToBackpack(new EmptyWoodenBowl()); - return true; - } - - 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(); - } - } - - public class WoodenBowlOfCorn : Food - { - [Constructible] - public WoodenBowlOfCorn() : base(0x15FA) - { - Stackable = false; - Weight = 1.0; - FillFactor = 2; - } - - public WoodenBowlOfCorn(Serial serial) : base(serial) - { - } - - public override bool Eat(Mobile from) - { - if (!base.Eat(from)) - { - return false; - } - - from.AddToBackpack(new EmptyWoodenBowl()); - return true; - } - - 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(); - } - } - - public class WoodenBowlOfLettuce : Food - { - [Constructible] - public WoodenBowlOfLettuce() : base(0x15FB) - { - Stackable = false; - Weight = 1.0; - FillFactor = 2; - } - - public WoodenBowlOfLettuce(Serial serial) : base(serial) - { - } - - public override bool Eat(Mobile from) - { - if (!base.Eat(from)) - { - return false; - } - - from.AddToBackpack(new EmptyWoodenBowl()); - return true; - } - - 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(); - } - } - - public class WoodenBowlOfPeas : Food - { - [Constructible] - public WoodenBowlOfPeas() : base(0x15FC) - { - Stackable = false; - Weight = 1.0; - FillFactor = 2; - } - - public WoodenBowlOfPeas(Serial serial) : base(serial) - { - } - - public override bool Eat(Mobile from) - { - if (!base.Eat(from)) - { - return false; - } - - from.AddToBackpack(new EmptyWoodenBowl()); - return true; - } - - 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(); - } - } - - public class PewterBowlOfCarrots : Food - { - [Constructible] - public PewterBowlOfCarrots() : base(0x15FE) - { - Stackable = false; - Weight = 1.0; - FillFactor = 2; - } - - public PewterBowlOfCarrots(Serial serial) : base(serial) - { - } - - public override bool Eat(Mobile from) - { - if (!base.Eat(from)) - { - return false; - } - - from.AddToBackpack(new EmptyPewterBowl()); - return true; - } - - 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(); - } - } - - public class PewterBowlOfCorn : Food - { - [Constructible] - public PewterBowlOfCorn() : base(0x15FF) - { - Stackable = false; - Weight = 1.0; - FillFactor = 2; - } - - public PewterBowlOfCorn(Serial serial) : base(serial) - { - } - - public override bool Eat(Mobile from) - { - if (!base.Eat(from)) - { - return false; - } - - from.AddToBackpack(new EmptyPewterBowl()); - return true; - } - - 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(); - } - } - - public class PewterBowlOfLettuce : Food - { - [Constructible] - public PewterBowlOfLettuce() : base(0x1600) - { - Stackable = false; - Weight = 1.0; - FillFactor = 2; - } - - public PewterBowlOfLettuce(Serial serial) : base(serial) - { - } - - public override bool Eat(Mobile from) - { - if (!base.Eat(from)) - { - return false; - } - - from.AddToBackpack(new EmptyPewterBowl()); - return true; - } - - 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(); - } - } - - public class PewterBowlOfPeas : Food - { - [Constructible] - public PewterBowlOfPeas() : base(0x1601) - { - Stackable = false; - Weight = 1.0; - FillFactor = 2; - } - - public PewterBowlOfPeas(Serial serial) : base(serial) - { - } - - public override bool Eat(Mobile from) - { - if (!base.Eat(from)) - { - return false; - } - - from.AddToBackpack(new EmptyPewterBowl()); - return true; - } - - 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(); - } - } - - public class PewterBowlOfPotatos : Food - { - [Constructible] - public PewterBowlOfPotatos() : base(0x1602) - { - Stackable = false; - Weight = 1.0; - FillFactor = 2; - } - - public PewterBowlOfPotatos(Serial serial) : base(serial) - { - } - - public override bool Eat(Mobile from) - { - if (!base.Eat(from)) - { - return false; - } - - from.AddToBackpack(new EmptyPewterBowl()); - return true; - } - - 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(); - } - } - - [TypeAlias("Server.Items.EmptyLargeWoodenBowl")] - public class EmptyWoodenTub : Item - { - [Constructible] - public EmptyWoodenTub() : base(0x1605) => Weight = 2.0; - - public EmptyWoodenTub(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(); - } - } - - [TypeAlias("Server.Items.EmptyLargePewterBowl")] - public class EmptyPewterTub : Item - { - [Constructible] - public EmptyPewterTub() : base(0x1603) => Weight = 2.0; - - public EmptyPewterTub(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(); - } - } - - public class WoodenBowlOfStew : Food - { - [Constructible] - public WoodenBowlOfStew() : base(0x1604) - { - Stackable = false; - Weight = 2.0; - FillFactor = 2; - } - - public WoodenBowlOfStew(Serial serial) : base(serial) - { - } - - public override bool Eat(Mobile from) - { - if (!base.Eat(from)) - { - return false; - } - - from.AddToBackpack(new EmptyWoodenTub()); - return true; - } - - 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(); - } - } - - public class WoodenBowlOfTomatoSoup : Food - { - [Constructible] - public WoodenBowlOfTomatoSoup() : base(0x1606) - { - Stackable = false; - Weight = 2.0; - FillFactor = 2; - } - - public WoodenBowlOfTomatoSoup(Serial serial) : base(serial) - { - } - - public override bool Eat(Mobile from) - { - if (!base.Eat(from)) - { - return false; - } - - from.AddToBackpack(new EmptyWoodenTub()); - return true; - } - - 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(); - } + from.AddToBackpack(new EmptyWoodenBowl()); + return true; + } +} + +[SerializationGenerator(0, false)] +public partial class WoodenBowlOfCorn : Food +{ + [Constructible] + public WoodenBowlOfCorn() : base(0x15FA) + { + Stackable = false; + Weight = 1.0; + FillFactor = 2; + } + + public override bool Eat(Mobile from) + { + if (!base.Eat(from)) + { + return false; + } + + from.AddToBackpack(new EmptyWoodenBowl()); + return true; + } +} + +[SerializationGenerator(0, false)] +public partial class WoodenBowlOfLettuce : Food +{ + [Constructible] + public WoodenBowlOfLettuce() : base(0x15FB) + { + Stackable = false; + Weight = 1.0; + FillFactor = 2; + } + + public override bool Eat(Mobile from) + { + if (!base.Eat(from)) + { + return false; + } + + from.AddToBackpack(new EmptyWoodenBowl()); + return true; + } +} + +[SerializationGenerator(0, false)] +public partial class WoodenBowlOfPeas : Food +{ + [Constructible] + public WoodenBowlOfPeas() : base(0x15FC) + { + Stackable = false; + Weight = 1.0; + FillFactor = 2; + } + + public override bool Eat(Mobile from) + { + if (!base.Eat(from)) + { + return false; + } + + from.AddToBackpack(new EmptyWoodenBowl()); + return true; + } +} + +[SerializationGenerator(0, false)] +public partial class PewterBowlOfCarrots : Food +{ + [Constructible] + public PewterBowlOfCarrots() : base(0x15FE) + { + Stackable = false; + Weight = 1.0; + FillFactor = 2; + } + + public override bool Eat(Mobile from) + { + if (!base.Eat(from)) + { + return false; + } + + from.AddToBackpack(new EmptyPewterBowl()); + return true; + } +} + +[SerializationGenerator(0, false)] +public partial class PewterBowlOfCorn : Food +{ + [Constructible] + public PewterBowlOfCorn() : base(0x15FF) + { + Stackable = false; + Weight = 1.0; + FillFactor = 2; + } + + public override bool Eat(Mobile from) + { + if (!base.Eat(from)) + { + return false; + } + + from.AddToBackpack(new EmptyPewterBowl()); + return true; + } +} + +[SerializationGenerator(0, false)] +public partial class PewterBowlOfLettuce : Food +{ + [Constructible] + public PewterBowlOfLettuce() : base(0x1600) + { + Stackable = false; + Weight = 1.0; + FillFactor = 2; + } + + public override bool Eat(Mobile from) + { + if (!base.Eat(from)) + { + return false; + } + + from.AddToBackpack(new EmptyPewterBowl()); + return true; + } +} + +[SerializationGenerator(0, false)] +public partial class PewterBowlOfPeas : Food +{ + [Constructible] + public PewterBowlOfPeas() : base(0x1601) + { + Stackable = false; + Weight = 1.0; + FillFactor = 2; + } + + public override bool Eat(Mobile from) + { + if (!base.Eat(from)) + { + return false; + } + + from.AddToBackpack(new EmptyPewterBowl()); + return true; + } +} + +[SerializationGenerator(0, false)] +public partial class PewterBowlOfPotatos : Food +{ + [Constructible] + public PewterBowlOfPotatos() : base(0x1602) + { + Stackable = false; + Weight = 1.0; + FillFactor = 2; + } + + public override bool Eat(Mobile from) + { + if (!base.Eat(from)) + { + return false; + } + + from.AddToBackpack(new EmptyPewterBowl()); + return true; + } +} + +[TypeAlias("Server.Items.EmptyLargeWoodenBowl")] +[SerializationGenerator(0, false)] +public partial class EmptyWoodenTub : Item +{ + [Constructible] + public EmptyWoodenTub() : base(0x1605) => Weight = 2.0; +} + +[TypeAlias("Server.Items.EmptyLargePewterBowl")] +[SerializationGenerator(0, false)] +public partial class EmptyPewterTub : Item +{ + [Constructible] + public EmptyPewterTub() : base(0x1603) => Weight = 2.0; +} + +[SerializationGenerator(0, false)] +public partial class WoodenBowlOfStew : Food +{ + [Constructible] + public WoodenBowlOfStew() : base(0x1604) + { + Stackable = false; + Weight = 2.0; + FillFactor = 2; + } + + public override bool Eat(Mobile from) + { + if (!base.Eat(from)) + { + return false; + } + + from.AddToBackpack(new EmptyWoodenTub()); + return true; + } +} + +[SerializationGenerator(0, false)] +public partial class WoodenBowlOfTomatoSoup : Food +{ + [Constructible] + public WoodenBowlOfTomatoSoup() : base(0x1606) + { + Stackable = false; + Weight = 2.0; + FillFactor = 2; + } + + public override bool Eat(Mobile from) + { + if (!base.Eat(from)) + { + return false; + } + + from.AddToBackpack(new EmptyWoodenTub()); + return true; } } diff --git a/Projects/UOContent/Items/Food/Chocolatiering.cs b/Projects/UOContent/Items/Food/Chocolatiering.cs index 90dd2b640..af588e5a7 100644 --- a/Projects/UOContent/Items/Food/Chocolatiering.cs +++ b/Projects/UOContent/Items/Food/Chocolatiering.cs @@ -1,263 +1,110 @@ -namespace Server.Items +using ModernUO.Serialization; + +namespace Server.Items; + +[SerializationGenerator(0, false)] +public partial class CocoaLiquor : Item { - public class CocoaLiquor : Item - { - [Constructible] - public CocoaLiquor() - : base(0x103F) => - Hue = 0x46A; + [Constructible] + public CocoaLiquor() : base(0x103F) => Hue = 0x46A; - public CocoaLiquor(Serial serial) - : base(serial) - { - } - - public override int LabelNumber => 1080007; // Cocoa liquor - public override double DefaultWeight => 1.0; - - 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(); - } - } - - public class SackOfSugar : Item - { - [Constructible] - public SackOfSugar(int amount = 1) - : base(0x1039) - { - Hue = 0x461; - Stackable = true; - Amount = amount; - } - - public SackOfSugar(Serial serial) - : base(serial) - { - } - - public override int LabelNumber => 1080003; // Sack of sugar - public override double DefaultWeight => 1.0; - - 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(); - } - } - - public class CocoaButter : Item - { - [Constructible] - public CocoaButter() - : base(0x1044) => - Hue = 0x457; - - public CocoaButter(Serial serial) - : base(serial) - { - } - - public override int LabelNumber => 1080005; // Cocoa butter - public override double DefaultWeight => 1.0; - - 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(); - } - } - - public class Vanilla : Item - { - [Constructible] - public Vanilla(int amount = 1) - : base(0xE2A) - { - Hue = 0x462; - Stackable = true; - Amount = amount; - } - - public Vanilla(Serial serial) - : base(serial) - { - } - - public override int LabelNumber => 1080009; // Vanilla - public override double DefaultWeight => 1.0; - - 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(); - } - } - - public class CocoaPulp : Item - { - [Constructible] - public CocoaPulp(int amount = 1) - : base(0xF7C) - { - Hue = 0x219; - Stackable = true; - Amount = amount; - } - - public CocoaPulp(Serial serial) - : base(serial) - { - } - - public override int LabelNumber => 1080530; // cocoa pulp - public override double DefaultWeight => 1.0; - - 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(); - } - } - - public class DarkChocolate : CandyCane - { - [Constructible] - public DarkChocolate() - : base(0xF10) - { - Hue = 0x465; - LootType = LootType.Regular; - } - - public DarkChocolate(Serial serial) - : base(serial) - { - } - - public override int LabelNumber => 1079994; // Dark chocolate - public override double DefaultWeight => 1.0; - - public override void Serialize(IGenericWriter writer) - { - base.Serialize(writer); - - writer.Write(0); - } - - public override void Deserialize(IGenericReader reader) - { - base.Deserialize(reader); - - var version = reader.ReadInt(); - } - } - - public class MilkChocolate : CandyCane - { - [Constructible] - public MilkChocolate() - : base(0xF18) - { - Hue = 0x461; - LootType = LootType.Regular; - } - - public MilkChocolate(Serial serial) - : base(serial) - { - } - - public override int LabelNumber => 1079995; // Milk chocolate - public override double DefaultWeight => 1.0; - - public override void Serialize(IGenericWriter writer) - { - base.Serialize(writer); - - writer.Write(0); - } - - public override void Deserialize(IGenericReader reader) - { - base.Deserialize(reader); - - var version = reader.ReadInt(); - } - } - - public class WhiteChocolate : CandyCane - { - [Constructible] - public WhiteChocolate() - : base(0xF11) - { - Hue = 0x47E; - LootType = LootType.Regular; - } - - public WhiteChocolate(Serial serial) - : base(serial) - { - } - - public override int LabelNumber => 1079996; // White chocolate - public override double DefaultWeight => 1.0; - - public override void Serialize(IGenericWriter writer) - { - base.Serialize(writer); - - writer.Write(0); - } - - public override void Deserialize(IGenericReader reader) - { - base.Deserialize(reader); - - var version = reader.ReadInt(); - } - } + public override int LabelNumber => 1080007; // Cocoa liquor + public override double DefaultWeight => 1.0; +} + +[SerializationGenerator(0, false)] +public partial class SackOfSugar : Item +{ + [Constructible] + public SackOfSugar(int amount = 1) : base(0x1039) + { + Hue = 0x461; + Stackable = true; + Amount = amount; + } + + public override int LabelNumber => 1080003; // Sack of sugar + public override double DefaultWeight => 1.0; +} + +[SerializationGenerator(0, false)] +public partial class CocoaButter : Item +{ + [Constructible] + public CocoaButter() : base(0x1044) => Hue = 0x457; + + public override int LabelNumber => 1080005; // Cocoa butter + public override double DefaultWeight => 1.0; +} + +[SerializationGenerator(0, false)] +public partial class Vanilla : Item +{ + [Constructible] + public Vanilla(int amount = 1) : base(0xE2A) + { + Hue = 0x462; + Stackable = true; + Amount = amount; + } + + public override int LabelNumber => 1080009; // Vanilla + public override double DefaultWeight => 1.0; +} + +[SerializationGenerator(0, false)] +public partial class CocoaPulp : Item +{ + [Constructible] + public CocoaPulp(int amount = 1) : base(0xF7C) + { + Hue = 0x219; + Stackable = true; + Amount = amount; + } + + public override int LabelNumber => 1080530; // cocoa pulp + public override double DefaultWeight => 1.0; +} + +[SerializationGenerator(0, false)] +public partial class DarkChocolate : CandyCane +{ + [Constructible] + public DarkChocolate() : base(0xF10) + { + Hue = 0x465; + LootType = LootType.Regular; + } + + public override int LabelNumber => 1079994; // Dark chocolate + public override double DefaultWeight => 1.0; +} + +[SerializationGenerator(0, false)] +public partial class MilkChocolate : CandyCane +{ + [Constructible] + public MilkChocolate() : base(0xF18) + { + Hue = 0x461; + LootType = LootType.Regular; + } + + public override int LabelNumber => 1079995; // Milk chocolate + public override double DefaultWeight => 1.0; +} + +[SerializationGenerator(0, false)] +public partial class WhiteChocolate : CandyCane +{ + [Constructible] + public WhiteChocolate() : base(0xF11) + { + Hue = 0x47E; + LootType = LootType.Regular; + } + + public override int LabelNumber => 1079996; // White chocolate + public override double DefaultWeight => 1.0; } diff --git a/Projects/UOContent/Items/Food/CookableFood.cs b/Projects/UOContent/Items/Food/CookableFood.cs index 0582491b9..d7711abfb 100644 --- a/Projects/UOContent/Items/Food/CookableFood.cs +++ b/Projects/UOContent/Items/Food/CookableFood.cs @@ -1,745 +1,293 @@ -using System; +using ModernUO.Serialization; using Server.Targeting; -namespace Server.Items +namespace Server.Items; + +[SerializationGenerator(0, false)] +public abstract partial class CookableFood : Item { - public abstract class CookableFood : Item + [SerializableField(0)] + [SerializableFieldAttr("[CommandProperty(AccessLevel.GameMaster)]")] + private int _cookingLevel; + + public CookableFood(int itemID, int cookingLevel) : base(itemID) => _cookingLevel = cookingLevel; + + public abstract Food Cook(); + + public static bool IsHeatSource(object targeted) { - public CookableFood(int itemID, int cookingLevel) : base(itemID) => CookingLevel = cookingLevel; + int itemID; - public CookableFood(Serial serial) : base(serial) + if (targeted is Item item) { + itemID = item.ItemID; } - - [CommandProperty(AccessLevel.GameMaster)] - public int CookingLevel { get; set; } - - public abstract Food Cook(); - - public override void Serialize(IGenericWriter writer) + else if (targeted is StaticTarget target) { - base.Serialize(writer); - - writer.Write(1); // version - // Version 1 - writer.Write(CookingLevel); + itemID = target.ItemID; } - - public override void Deserialize(IGenericReader reader) + else { - base.Deserialize(reader); - - var version = reader.ReadInt(); - - switch (version) - { - case 1: - { - CookingLevel = reader.ReadInt(); - - break; - } - } - } - - public static bool IsHeatSource(object targeted) - { - int itemID; - - if (targeted is Item item) - { - itemID = item.ItemID; - } - else if (targeted is StaticTarget target) - { - itemID = target.ItemID; - } - else - { - return false; - } - - if (itemID >= 0xDE3 && itemID <= 0xDE9) - { - return true; // Campfire - } - - if (itemID >= 0x461 && itemID <= 0x48E) - { - return true; // Sandstone oven/fireplace - } - - if (itemID >= 0x92B && itemID <= 0x96C) - { - return true; // Stone oven/fireplace - } - - if (itemID == 0xFAC) - { - return true; // Firepit - } - - if (itemID >= 0x184A && itemID <= 0x184C) - { - return true; // Heating stand (left) - } - - if (itemID >= 0x184E && itemID <= 0x1850) - { - return true; // Heating stand (right) - } - - if (itemID >= 0x398C && itemID <= 0x399F) - { - return true; // Fire field - } - return false; } - private class InternalTarget : Target + if (itemID >= 0xDE3 && itemID <= 0xDE9) { - private readonly CookableFood m_Item; - - public InternalTarget(CookableFood item) : base(1, false, TargetFlags.None) => m_Item = item; - - protected override void OnTarget(Mobile from, object targeted) - { - if (m_Item.Deleted) - { - return; - } - - if (IsHeatSource(targeted)) - { - if (from.BeginAction()) - { - from.PlaySound(0x225); - - m_Item.Consume(); - - var t = new InternalTimer(from, targeted as IPoint3D, from.Map, m_Item); - t.Start(); - } - else - { - from.SendLocalizedMessage(500119); // You must wait to perform another action - } - } - } - - private class InternalTimer : Timer - { - private readonly CookableFood m_CookableFood; - private readonly Mobile m_From; - private readonly Map m_Map; - private readonly IPoint3D m_Point; - - public InternalTimer(Mobile from, IPoint3D p, Map map, CookableFood cookableFood) : base( - TimeSpan.FromSeconds(5.0) - ) - { - m_From = from; - m_Point = p; - m_Map = map; - m_CookableFood = cookableFood; - } - - protected override void OnTick() - { - m_From.EndAction(); - - if (m_From.Map != m_Map || m_Point != null && m_From.GetDistanceToSqrt(m_Point) > 3) - { - m_From.SendLocalizedMessage(500686); // You burn the food to a crisp! It's ruined. - return; - } - - if (m_From.CheckSkill(SkillName.Cooking, m_CookableFood.CookingLevel, 100)) - { - var cookedFood = m_CookableFood.Cook(); - - if (m_From.AddToBackpack(cookedFood)) - { - m_From.PlaySound(0x57); - } - } - else - { - m_From.SendLocalizedMessage(500686); // You burn the food to a crisp! It's ruined. - } - } - } - } - } - - // ********** RawRibs ********** - public class RawRibs : CookableFood - { - [Constructible] - public RawRibs(int amount = 1) : base(0x9F1, 10) - { - Weight = 1.0; - Stackable = true; - Amount = amount; + return true; // Campfire } - public RawRibs(Serial serial) : base(serial) + if (itemID >= 0x461 && itemID <= 0x48E) { + return true; // Sandstone oven/fireplace } - public override void Serialize(IGenericWriter writer) + if (itemID >= 0x92B && itemID <= 0x96C) { - base.Serialize(writer); - - writer.Write(0); // version + return true; // Stone oven/fireplace } - public override void Deserialize(IGenericReader reader) + if (itemID == 0xFAC) { - base.Deserialize(reader); - - var version = reader.ReadInt(); + return true; // Firepit } - public override Food Cook() => new Ribs(); - } - - // ********** RawLambLeg ********** - public class RawLambLeg : CookableFood - { - [Constructible] - public RawLambLeg(int amount = 1) : base(0x1609, 10) + if (itemID >= 0x184A && itemID <= 0x184C) { - Stackable = true; - Amount = amount; + return true; // Heating stand (left) } - public RawLambLeg(Serial serial) : base(serial) + if (itemID >= 0x184E && itemID <= 0x1850) { + return true; // Heating stand (right) } - public override void Serialize(IGenericWriter writer) + if (itemID >= 0x398C && itemID <= 0x399F) { - base.Serialize(writer); - - writer.Write(1); // version + return true; // Fire field } - public override void Deserialize(IGenericReader reader) - { - base.Deserialize(reader); - - var version = reader.ReadInt(); - - if (version == 0 && Weight == 1) - { - Weight = -1; - } - } - - public override Food Cook() => new LambLeg(); - } - - // ********** RawChickenLeg ********** - public class RawChickenLeg : CookableFood - { - [Constructible] - public RawChickenLeg() : base(0x1607, 10) - { - Weight = 1.0; - Stackable = true; - } - - public RawChickenLeg(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(); - } - - public override Food Cook() => new ChickenLeg(); - } - - // ********** RawBird ********** - public class RawBird : CookableFood - { - [Constructible] - public RawBird(int amount = 1) : base(0x9B9, 10) - { - Weight = 1.0; - Stackable = true; - Amount = amount; - } - - public RawBird(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(); - } - - public override Food Cook() => new CookedBird(); - } - - // ********** UnbakedPeachCobbler ********** - public class UnbakedPeachCobbler : CookableFood - { - [Constructible] - public UnbakedPeachCobbler() : base(0x1042, 25) => Weight = 1.0; - - public UnbakedPeachCobbler(Serial serial) : base(serial) - { - } - - public override int LabelNumber => 1041335; // unbaked peach cobbler - - 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(); - } - - public override Food Cook() => new PeachCobbler(); - } - - // ********** UnbakedFruitPie ********** - public class UnbakedFruitPie : CookableFood - { - [Constructible] - public UnbakedFruitPie() : base(0x1042, 25) => Weight = 1.0; - - public UnbakedFruitPie(Serial serial) : base(serial) - { - } - - public override int LabelNumber => 1041334; // unbaked fruit pie - - 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(); - } - - public override Food Cook() => new FruitPie(); - } - - // ********** UnbakedMeatPie ********** - public class UnbakedMeatPie : CookableFood - { - [Constructible] - public UnbakedMeatPie() : base(0x1042, 25) => Weight = 1.0; - - public UnbakedMeatPie(Serial serial) : base(serial) - { - } - - public override int LabelNumber => 1041338; // unbaked meat pie - - 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(); - } - - public override Food Cook() => new MeatPie(); - } - - // ********** UnbakedPumpkinPie ********** - public class UnbakedPumpkinPie : CookableFood - { - [Constructible] - public UnbakedPumpkinPie() : base(0x1042, 25) => Weight = 1.0; - - public UnbakedPumpkinPie(Serial serial) : base(serial) - { - } - - public override int LabelNumber => 1041342; // unbaked pumpkin pie - - 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(); - } - - public override Food Cook() => new PumpkinPie(); - } - - // ********** UnbakedApplePie ********** - public class UnbakedApplePie : CookableFood - { - [Constructible] - public UnbakedApplePie() : base(0x1042, 25) => Weight = 1.0; - - public UnbakedApplePie(Serial serial) : base(serial) - { - } - - public override int LabelNumber => 1041336; // unbaked apple pie - - 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(); - } - - public override Food Cook() => new ApplePie(); - } - - // ********** UncookedCheesePizza ********** - [TypeAlias("Server.Items.UncookedPizza")] - public class UncookedCheesePizza : CookableFood - { - [Constructible] - public UncookedCheesePizza() : base(0x1083, 20) => Weight = 1.0; - - public UncookedCheesePizza(Serial serial) : base(serial) - { - } - - public override int LabelNumber => 1041341; // uncooked cheese pizza - - 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(); - - if (ItemID == 0x1040) - { - ItemID = 0x1083; - } - - if (Hue == 51) - { - Hue = 0; - } - } - - public override Food Cook() => new CheesePizza(); - } - - // ********** UncookedSausagePizza ********** - public class UncookedSausagePizza : CookableFood - { - [Constructible] - public UncookedSausagePizza() : base(0x1083, 20) => Weight = 1.0; - - public UncookedSausagePizza(Serial serial) : base(serial) - { - } - - public override int LabelNumber => 1041337; // uncooked sausage pizza - - 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(); - } - - public override Food Cook() => new SausagePizza(); - } - - // ********** UnbakedQuiche ********** - public class UnbakedQuiche : CookableFood - { - [Constructible] - public UnbakedQuiche() : base(0x1042, 25) => Weight = 1.0; - - public UnbakedQuiche(Serial serial) : base(serial) - { - } - - public override int LabelNumber => 1041339; // unbaked quiche - - 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(); - } - - public override Food Cook() => new Quiche(); - } - - // ********** Eggs ********** - public class Eggs : CookableFood - { - [Constructible] - public Eggs(int amount = 1) : base(0x9B5, 15) - { - Weight = 1.0; - Stackable = true; - Amount = amount; - } - - public Eggs(Serial serial) : base(serial) - { - } - - public override void Serialize(IGenericWriter writer) - { - base.Serialize(writer); - - writer.Write(1); // version - } - - public override void Deserialize(IGenericReader reader) - { - base.Deserialize(reader); - - var version = reader.ReadInt(); - - if (version < 1) - { - Stackable = true; - - if (Weight == 0.5) - { - Weight = 1.0; - } - } - } - - public override Food Cook() => new FriedEggs(); - } - - // ********** BrightlyColoredEggs ********** - public class BrightlyColoredEggs : CookableFood - { - [Constructible] - public BrightlyColoredEggs() : base(0x9B5, 15) - { - Weight = 0.5; - Hue = 3 + Utility.Random(20) * 5; - } - - public BrightlyColoredEggs(Serial serial) : base(serial) - { - } - - public override string DefaultName => "brightly colored eggs"; - - 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(); - } - - public override Food Cook() => new FriedEggs(); - } - - // ********** EasterEggs ********** - public class EasterEggs : CookableFood - { - [Constructible] - public EasterEggs() : base(0x9B5, 15) - { - Weight = 0.5; - Hue = 3 + Utility.Random(20) * 5; - } - - public EasterEggs(Serial serial) : base(serial) - { - } - - public override int LabelNumber => 1016105; // Easter Eggs - - 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(); - } - - public override Food Cook() => new FriedEggs(); - } - - // ********** CookieMix ********** - public class CookieMix : CookableFood - { - [Constructible] - public CookieMix() : base(0x103F, 20) => Weight = 1.0; - - public CookieMix(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(); - } - - public override Food Cook() => new Cookies(); - } - - // ********** CakeMix ********** - public class CakeMix : CookableFood - { - [Constructible] - public CakeMix() : base(0x103F, 40) => Weight = 1.0; - - public CakeMix(Serial serial) : base(serial) - { - } - - public override int LabelNumber => 1041002; // cake mix - - 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(); - } - - public override Food Cook() => new Cake(); - } - - public class RawFishSteak : CookableFood - { - [Constructible] - public RawFishSteak(int amount = 1) : base(0x097A, 10) - { - Stackable = true; - Amount = amount; - } - - public RawFishSteak(Serial serial) : base(serial) - { - } - - public override double DefaultWeight => 0.1; - - public override Food Cook() => new FishSteak(); - - 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(); - } + return false; } } + +[SerializationGenerator(0, false)] +public partial class RawRibs : CookableFood +{ + [Constructible] + public RawRibs(int amount = 1) : base(0x9F1, 10) + { + Weight = 1.0; + Stackable = true; + Amount = amount; + } + + public override Food Cook() => new Ribs(); +} + +[SerializationGenerator(0, false)] +public partial class RawLambLeg : CookableFood +{ + [Constructible] + public RawLambLeg(int amount = 1) : base(0x1609, 10) + { + Stackable = true; + Amount = amount; + } + + public override Food Cook() => new LambLeg(); +} + +[SerializationGenerator(0, false)] +public partial class RawChickenLeg : CookableFood +{ + [Constructible] + public RawChickenLeg() : base(0x1607, 10) + { + Weight = 1.0; + Stackable = true; + } + + public override Food Cook() => new ChickenLeg(); +} + +[SerializationGenerator(0, false)] +public partial class RawBird : CookableFood +{ + [Constructible] + public RawBird(int amount = 1) : base(0x9B9, 10) + { + Weight = 1.0; + Stackable = true; + Amount = amount; + } + + public override Food Cook() => new CookedBird(); +} + +[SerializationGenerator(0, false)] +public partial class UnbakedPeachCobbler : CookableFood +{ + [Constructible] + public UnbakedPeachCobbler() : base(0x1042, 25) => Weight = 1.0; + + public override int LabelNumber => 1041335; // unbaked peach cobbler + + public override Food Cook() => new PeachCobbler(); +} + +[SerializationGenerator(0, false)] +public partial class UnbakedFruitPie : CookableFood +{ + [Constructible] + public UnbakedFruitPie() : base(0x1042, 25) => Weight = 1.0; + + public override int LabelNumber => 1041334; // unbaked fruit pie + + public override Food Cook() => new FruitPie(); +} + +[SerializationGenerator(0, false)] +public partial class UnbakedMeatPie : CookableFood +{ + [Constructible] + public UnbakedMeatPie() : base(0x1042, 25) => Weight = 1.0; + + public override int LabelNumber => 1041338; // unbaked meat pie + + public override Food Cook() => new MeatPie(); +} + +[SerializationGenerator(0, false)] +public partial class UnbakedPumpkinPie : CookableFood +{ + [Constructible] + public UnbakedPumpkinPie() : base(0x1042, 25) => Weight = 1.0; + + public override int LabelNumber => 1041342; // unbaked pumpkin pie + + public override Food Cook() => new PumpkinPie(); +} + +[SerializationGenerator(0, false)] +public partial class UnbakedApplePie : CookableFood +{ + [Constructible] + public UnbakedApplePie() : base(0x1042, 25) => Weight = 1.0; + + public override int LabelNumber => 1041336; // unbaked apple pie + + public override Food Cook() => new ApplePie(); +} + +[TypeAlias("Server.Items.UncookedPizza")] +[SerializationGenerator(0, false)] +public partial class UncookedCheesePizza : CookableFood +{ + [Constructible] + public UncookedCheesePizza() : base(0x1083, 20) => Weight = 1.0; + + public override int LabelNumber => 1041341; // uncooked cheese pizza + + public override Food Cook() => new CheesePizza(); +} + +[SerializationGenerator(0, false)] +public partial class UncookedSausagePizza : CookableFood +{ + [Constructible] + public UncookedSausagePizza() : base(0x1083, 20) => Weight = 1.0; + + public override int LabelNumber => 1041337; // uncooked sausage pizza + + public override Food Cook() => new SausagePizza(); +} + +[SerializationGenerator(0, false)] +public partial class UnbakedQuiche : CookableFood +{ + [Constructible] + public UnbakedQuiche() : base(0x1042, 25) => Weight = 1.0; + + public override int LabelNumber => 1041339; // unbaked quiche + + public override Food Cook() => new Quiche(); +} + +[SerializationGenerator(0, false)] +public partial class Eggs : CookableFood +{ + [Constructible] + public Eggs(int amount = 1) : base(0x9B5, 15) + { + Weight = 1.0; + Stackable = true; + Amount = amount; + } + + public override Food Cook() => new FriedEggs(); +} + +[SerializationGenerator(0, false)] +public partial class BrightlyColoredEggs : CookableFood +{ + [Constructible] + public BrightlyColoredEggs() : base(0x9B5, 15) + { + Weight = 0.5; + Hue = 3 + Utility.Random(20) * 5; + } + + public override string DefaultName => "brightly colored eggs"; + + public override Food Cook() => new FriedEggs(); +} + +[SerializationGenerator(0, false)] +public partial class EasterEggs : CookableFood +{ + [Constructible] + public EasterEggs() : base(0x9B5, 15) + { + Weight = 0.5; + Hue = 3 + Utility.Random(20) * 5; + } + + public override int LabelNumber => 1016105; // Easter Eggs + + public override Food Cook() => new FriedEggs(); +} + +[SerializationGenerator(0, false)] +public partial class CookieMix : CookableFood +{ + [Constructible] + public CookieMix() : base(0x103F, 20) => Weight = 1.0; + + public override Food Cook() => new Cookies(); +} + +[SerializationGenerator(0, false)] +public partial class CakeMix : CookableFood +{ + [Constructible] + public CakeMix() : base(0x103F, 40) => Weight = 1.0; + + public override int LabelNumber => 1041002; // cake mix + + public override Food Cook() => new Cake(); +} + +[SerializationGenerator(0, false)] +public partial class RawFishSteak : CookableFood +{ + [Constructible] + public RawFishSteak(int amount = 1) : base(0x097A, 10) + { + Stackable = true; + Amount = amount; + } + + public override double DefaultWeight => 0.1; + + public override Food Cook() => new FishSteak(); +} diff --git a/Projects/UOContent/Items/Food/Cooking.cs b/Projects/UOContent/Items/Food/Cooking.cs index 1d74d028c..787a8334f 100644 --- a/Projects/UOContent/Items/Food/Cooking.cs +++ b/Projects/UOContent/Items/Food/Cooking.cs @@ -1,534 +1,147 @@ using System; +using ModernUO.Serialization; using Server.Targeting; -namespace Server.Items +namespace Server.Items; + +[SerializationGenerator(0, false)] +public partial class Dough : Item { - // ********** Dough ********** - public class Dough : Item + [Constructible] + public Dough() : base(0x103d) { - [Constructible] - public Dough() : base(0x103d) - { - Stackable = Core.ML; - Weight = 1.0; - } - - public Dough(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(); - } - - private class InternalTarget : Target - { - private readonly Dough m_Item; - - public InternalTarget(Dough item) : base(1, false, TargetFlags.None) => m_Item = item; - - protected override void OnTarget(Mobile from, object targeted) - { - if (m_Item.Deleted) - { - return; - } - - if (targeted is not Item targetItem || targetItem.Deleted) - { - return; - } - - m_Item.Consume(); - - if (targeted is Eggs) - { - from.AddToBackpack(new UnbakedQuiche()); - from.AddToBackpack(new Eggshells()); - } - else if (targeted is CheeseWheel) - { - from.AddToBackpack(new CheesePizza()); - } - else if (targeted is Sausage) - { - from.AddToBackpack(new SausagePizza()); - } - else if (targeted is Apple) - { - from.AddToBackpack(new UnbakedApplePie()); - } - else if (targeted is Peach) - { - from.AddToBackpack(new UnbakedPeachCobbler()); - } - else - { - return; - } - - targetItem.Consume(); - } - } - } - - // ********** SweetDough ********** - public class SweetDough : Item - { - [Constructible] - public SweetDough() : base(0x103d) - { - Stackable = Core.ML; - Weight = 1.0; - Hue = 150; - } - - public SweetDough(Serial serial) : base(serial) - { - } - - public override int LabelNumber => 1041340; // sweet dough - - 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(); - - if (Hue == 51) - { - Hue = 150; - } - } - - private class InternalTarget : Target - { - private readonly SweetDough m_Item; - - public InternalTarget(SweetDough item) : base(1, false, TargetFlags.None) => m_Item = item; - - protected override void OnTarget(Mobile from, object targeted) - { - if (m_Item.Deleted) - { - return; - } - - m_Item.Consume(); - - if (targeted is BowlFlour flour) - { - flour.Delete(); - - from.AddToBackpack(new CakeMix()); - } - else if (targeted is Campfire campfire) - { - from.PlaySound(0x225); - var t = new InternalTimer(from, campfire); - t.Start(); - } - } - - private class InternalTimer : Timer - { - private readonly Campfire m_Campfire; - private readonly Mobile m_From; - - public InternalTimer(Mobile from, Campfire campfire) : base(TimeSpan.FromSeconds(5.0)) - { - m_From = from; - m_Campfire = campfire; - } - - protected override void OnTick() - { - if (m_From.GetDistanceToSqrt(m_Campfire) > 3) - { - m_From.SendLocalizedMessage(500686); // You burn the food to a crisp! It's ruined. - return; - } - - if (m_From.CheckSkill(SkillName.Cooking, 0, 10)) - { - if (m_From.AddToBackpack(new Muffins())) - { - m_From.PlaySound(0x57); - } - } - else - { - m_From.SendLocalizedMessage(500686); // You burn the food to a crisp! It's ruined. - } - } - } - } - } - - // ********** JarHoney ********** - public class JarHoney : Item - { - [Constructible] - public JarHoney() : base(0x9ec) - { - Weight = 1.0; - Stackable = true; - } - - public JarHoney(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(); - Stackable = true; - } - - /*public override void OnDoubleClick( Mobile from ) - { - if (!Movable) - return; - - from.Target = new InternalTarget( this ); - }*/ - - private class InternalTarget : Target - { - private readonly JarHoney m_Item; - - public InternalTarget(JarHoney item) : base(1, false, TargetFlags.None) => m_Item = item; - - protected override void OnTarget(Mobile from, object targeted) - { - if (m_Item.Deleted) - { - return; - } - - m_Item.Consume(); - - if (targeted is Dough dough) - { - dough.Consume(); - - from.AddToBackpack(new SweetDough()); - } - - if (targeted is BowlFlour flour) - { - flour.Delete(); - - from.AddToBackpack(new CookieMix()); - } - } - } - } - - // ********** BowlFlour ********** - public class BowlFlour : Item - { - [Constructible] - public BowlFlour() : base(0xa1e) => Weight = 1.0; - - public BowlFlour(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(); - } - } - - // ********** WoodenBowl ********** - public class WoodenBowl : Item - { - [Constructible] - public WoodenBowl() : base(0x15f8) => Weight = 1.0; - - public WoodenBowl(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(); - } - } - - // ********** PitcherWater ********** - /*public class PitcherWater : Item - { - [Constructible] - public PitcherWater() : base(Utility.Random( 0x1f9d, 2 )) - { + Stackable = Core.ML; Weight = 1.0; - } + } +} - public PitcherWater( Serial serial ) : base( serial ) - { - } - - public override void Serialize(IGenericWriter writer) - { - base.Serialize( writer ); - - writer.Write( (int) 0 ); // version - } - - public override void Deserialize(IGenericReader reader) - { - base.Deserialize( reader ); - - int version = reader.ReadInt(); - } - - public override void OnDoubleClick( Mobile from ) - { - if (!Movable) - return; - - from.Target = new InternalTarget( this ); - } - - private class InternalTarget : Target - { - private PitcherWater m_Item; - - public InternalTarget( PitcherWater item ) : base( 1, false, TargetFlags.None ) - { - m_Item = item; - } - - protected override void OnTarget( Mobile from, object targeted ) - { - if (m_Item.Deleted ) return; - - if (targeted is BowlFlour) - { - m_Item.Delete(); - ((BowlFlour)targeted).Delete(); - - from.AddToBackpack( new Dough() ); - from.AddToBackpack( new WoodenBowl() ); - } - } - } - }*/ - - // ********** SackFlour ********** - [TypeAlias("Server.Items.SackFlourOpen")] - public class SackFlour : Item, IHasQuantity +[SerializationGenerator(0, false)] +public partial class SweetDough : Item +{ + [Constructible] + public SweetDough() : base(0x103d) { - private int m_Quantity; + Stackable = Core.ML; + Weight = 1.0; + Hue = 150; + } - [Constructible] - public SackFlour() : base(0x1039) - { - Weight = 5.0; - m_Quantity = 20; - } + public override int LabelNumber => 1041340; // sweet dough +} - public SackFlour(Serial serial) : base(serial) - { - } +[SerializationGenerator(0, false)] +public partial class JarHoney : Item +{ + [Constructible] + public JarHoney() : base(0x9ec) + { + Weight = 1.0; + Stackable = true; + } +} - [CommandProperty(AccessLevel.GameMaster)] - public int Quantity +[SerializationGenerator(0, false)] +public partial class BowlFlour : Item +{ + [Constructible] + public BowlFlour() : base(0xa1e) => Weight = 1.0; +} + +[SerializationGenerator(0, false)] +public partial class WoodenBowl : Item +{ + [Constructible] + public WoodenBowl() : base(0x15f8) => Weight = 1.0; +} + +[TypeAlias("Server.Items.SackFlourOpen")] +[SerializationGenerator(0, false)] +public partial class SackFlour : Item, IHasQuantity +{ + private int _quantity; + + [Constructible] + public SackFlour() : base(0x1039) + { + Weight = 5.0; + _quantity = 20; + } + + [CommandProperty(AccessLevel.GameMaster)] + [SerializableField(1)] + public int Quantity + { + get => _quantity; + set { - get => m_Quantity; - set + _quantity = Math.Min(20, Math.Max(0, value)); + + if (_quantity == 0) { - m_Quantity = Math.Min(20, Math.Max(0, value)); - - if (m_Quantity == 0) - { - Delete(); - } - else if (m_Quantity < 20 && ItemID is 0x1039 or 0x1045) - { - ++ItemID; - } + Delete(); } - } - - public override void Serialize(IGenericWriter writer) - { - base.Serialize(writer); - - writer.Write(2); // version - - writer.Write(m_Quantity); - } - - public override void Deserialize(IGenericReader reader) - { - base.Deserialize(reader); - - var version = reader.ReadInt(); - - switch (version) - { - case 2: - case 1: - { - m_Quantity = reader.ReadInt(); - break; - } - case 0: - { - m_Quantity = 20; - break; - } - } - - if (version < 2 && Weight == 1.0) - { - Weight = 5.0; - } - } - - public override void OnDoubleClick(Mobile from) - { - if (!Movable) - { - return; - } - - if (ItemID is 0x1039 or 0x1045) + else if (_quantity < 20 && ItemID is 0x1039 or 0x1045) { ++ItemID; } + + this.MarkDirty(); } } - // ********** Eggshells ********** - public class Eggshells : Item + public override void OnDoubleClick(Mobile from) { - [Constructible] - public Eggshells() : base(0x9b4) => Weight = 0.5; - - public Eggshells(Serial serial) : base(serial) + if (Movable && ItemID is 0x1039 or 0x1045) { - } - - 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(); - } - } - - public class WheatSheaf : Item - { - [Constructible] - public WheatSheaf(int amount = 1) : base(7869) - { - Weight = 1.0; - Stackable = true; - Amount = amount; - } - - public WheatSheaf(Serial serial) : base(serial) - { - } - - public override void OnDoubleClick(Mobile from) - { - if (!Movable) - { - return; - } - - from.BeginTarget(4, false, TargetFlags.None, OnTarget); - } - - public virtual void OnTarget(Mobile from, object obj) - { - if (obj is AddonComponent addon) - { - obj = addon.Addon; - } - - if (obj is IFlourMill mill) - { - var needs = mill.MaxFlour - mill.CurFlour; - - if (needs > Amount) - { - needs = Amount; - } - - mill.CurFlour += needs; - Consume(needs); - } - } - - 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(); + ++ItemID; + } + } +} + +[SerializationGenerator(0, false)] +public partial class Eggshells : Item +{ + [Constructible] + public Eggshells() : base(0x9b4) => Weight = 0.5; +} + +[SerializationGenerator(0, false)] +public partial class WheatSheaf : Item +{ + [Constructible] + public WheatSheaf(int amount = 1) : base(7869) + { + Weight = 1.0; + Stackable = true; + Amount = amount; + } + + public override void OnDoubleClick(Mobile from) + { + if (Movable) + { + from.BeginTarget(4, false, TargetFlags.None, OnTarget); + } + } + + public virtual void OnTarget(Mobile from, object obj) + { + if (obj is AddonComponent addon) + { + obj = addon.Addon; + } + + if (obj is IFlourMill mill) + { + var needs = mill.MaxFlour - mill.CurFlour; + + if (needs > Amount) + { + needs = Amount; + } + + mill.CurFlour += needs; + Consume(needs); } } } diff --git a/Projects/UOContent/Items/Food/Food.cs b/Projects/UOContent/Items/Food/Food.cs index b976c8e6f..42afe10e4 100644 --- a/Projects/UOContent/Items/Food/Food.cs +++ b/Projects/UOContent/Items/Food/Food.cs @@ -1,1134 +1,519 @@ using System.Collections.Generic; +using ModernUO.Serialization; using Server.ContextMenus; -namespace Server.Items +namespace Server.Items; + +[SerializationGenerator(0, false)] +public abstract partial class Food : Item { - public abstract class Food : Item + [SerializableField(0)] + [SerializableFieldAttr("[CommandProperty(AccessLevel.GameMaster)]")] + private Mobile _poisoner; + + [SerializableField(1)] + [SerializableFieldAttr("[CommandProperty(AccessLevel.GameMaster)]")] + private Poison _poison; + + [SerializableField(2)] + [SerializableFieldAttr("[CommandProperty(AccessLevel.GameMaster)]")] + private int _fillFactor; + + public Food(int itemID, int amount = 1) : base(itemID) { - public Food(int itemID, int amount = 1) : base(itemID) + Stackable = true; + Amount = amount; + FillFactor = 1; + } + + public override void GetContextMenuEntries(Mobile from, List list) + { + base.GetContextMenuEntries(from, list); + + if (from.Alive) { - Stackable = true; - Amount = amount; - FillFactor = 1; + list.Add(new EatEntry(from, this)); + } + } + + public override void OnDoubleClick(Mobile from) + { + if (!Movable) + { + return; } - public Food(Serial serial) : base(serial) + if (from.InRange(GetWorldLocation(), 1)) { + Eat(from); } + } - [CommandProperty(AccessLevel.GameMaster)] - public Mobile Poisoner { get; set; } - - [CommandProperty(AccessLevel.GameMaster)] - public Poison Poison { get; set; } - - [CommandProperty(AccessLevel.GameMaster)] - public int FillFactor { get; set; } - - public override void GetContextMenuEntries(Mobile from, List list) + public override bool CanStackWith(Item dropped) + { + if (dropped is Food food) { - base.GetContextMenuEntries(from, list); - - if (from.Alive) + if (Poison != food.Poison || Poisoner != food.Poisoner) { - list.Add(new EatEntry(from, this)); - } - } - - public override void OnDoubleClick(Mobile from) - { - if (!Movable) - { - return; - } - - if (from.InRange(GetWorldLocation(), 1)) - { - Eat(from); - } - } - - public override bool CanStackWith(Item dropped) - { - if (dropped is Food food) - { - if (Poison != food.Poison || Poisoner != food.Poisoner) - { - return false; - } - } - return base.CanStackWith(dropped); - } - - - public virtual bool Eat(Mobile from) - { - // Fill the Mobile with FillFactor - if (CheckHunger(from)) - { - // Play a random "eat" sound - from.PlaySound(Utility.Random(0x3A, 3)); - - if (from.Body.IsHuman && !from.Mounted) - { - from.Animate(34, 5, 1, true, false, 0); - } - - if (Poison != null) - { - from.ApplyPoison(Poisoner, Poison); - } - - Consume(); - - return true; - } - - return false; - } - - public virtual bool CheckHunger(Mobile from) => FillHunger(from, FillFactor); - - public static bool FillHunger(Mobile from, int fillFactor) - { - if (from.Hunger >= 20) - { - from.SendLocalizedMessage(500867); // You are simply too full to eat any more! return false; } + } + return base.CanStackWith(dropped); + } - var iHunger = from.Hunger + fillFactor; - if (from.Stam < from.StamMax) + public virtual bool Eat(Mobile from) + { + // Fill the Mobile with FillFactor + if (CheckHunger(from)) + { + // Play a random "eat" sound + from.PlaySound(Utility.Random(0x3A, 3)); + + if (from.Body.IsHuman && !from.Mounted) { - from.Stam += Utility.Random(6, 3) + fillFactor / 5; + from.Animate(34, 5, 1, true, false, 0); } - if (iHunger >= 20) + if (Poison != null) { - from.Hunger = 20; - from.SendLocalizedMessage(500872); // You manage to eat the food, but you are stuffed! - } - else - { - from.Hunger = iHunger; - - if (iHunger < 5) - { - from.SendLocalizedMessage(500868); // You eat the food, but are still extremely hungry. - } - else if (iHunger < 10) - { - from.SendLocalizedMessage(500869); // You eat the food, and begin to feel more satiated. - } - else if (iHunger < 15) - { - from.SendLocalizedMessage(500870); // After eating the food, you feel much less hungry. - } - else - { - from.SendLocalizedMessage(500871); // You feel quite full after consuming the food. - } + from.ApplyPoison(Poisoner, Poison); } + Consume(); return true; } - public override void Serialize(IGenericWriter writer) + return false; + } + + public virtual bool CheckHunger(Mobile from) => FillHunger(from, FillFactor); + + public static bool FillHunger(Mobile from, int fillFactor) + { + if (from.Hunger >= 20) { - base.Serialize(writer); - - writer.Write(4); // version - - writer.Write(Poisoner); - - writer.Write(Poison); - writer.Write(FillFactor); + from.SendLocalizedMessage(500867); // You are simply too full to eat any more! + return false; } - public override void Deserialize(IGenericReader reader) + var iHunger = from.Hunger + fillFactor; + + if (from.Stam < from.StamMax) { - base.Deserialize(reader); + from.Stam += Utility.Random(6, 3) + fillFactor / 5; + } - var version = reader.ReadInt(); + if (iHunger >= 20) + { + from.Hunger = 20; + from.SendLocalizedMessage(500872); // You manage to eat the food, but you are stuffed! + } + else + { + from.Hunger = iHunger; - switch (version) + if (iHunger < 5) { - case 1: - { - Poison = reader.ReadInt() switch - { - 0 => null, - 1 => Poison.Lesser, - 2 => Poison.Regular, - 3 => Poison.Greater, - 4 => Poison.Deadly, - _ => Poison - }; - - break; - } - case 2: - { - Poison = reader.ReadPoison(); - break; - } - case 3: - { - Poison = reader.ReadPoison(); - FillFactor = reader.ReadInt(); - break; - } - case 4: - { - Poisoner = reader.ReadEntity(); - goto case 3; - } + from.SendLocalizedMessage(500868); // You eat the food, but are still extremely hungry. + } + else if (iHunger < 10) + { + from.SendLocalizedMessage(500869); // You eat the food, and begin to feel more satiated. + } + else if (iHunger < 15) + { + from.SendLocalizedMessage(500870); // After eating the food, you feel much less hungry. + } + else + { + from.SendLocalizedMessage(500871); // You feel quite full after consuming the food. } } - } - public class BreadLoaf : Food - { - [Constructible] - public BreadLoaf(int amount = 1) : base(0x103B, amount) - { - Weight = 1.0; - FillFactor = 3; - } - - public BreadLoaf(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(); - } - } - - public class Bacon : Food - { - [Constructible] - public Bacon(int amount = 1) : base(0x979, amount) - { - Weight = 1.0; - FillFactor = 1; - } - - public Bacon(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(); - } - } - - public class SlabOfBacon : Food - { - [Constructible] - public SlabOfBacon(int amount = 1) : base(0x976, amount) - { - Weight = 1.0; - FillFactor = 3; - } - - public SlabOfBacon(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(); - } - } - - public class FishSteak : Food - { - [Constructible] - public FishSteak(int amount = 1) : base(0x97B, amount) => FillFactor = 3; - - public FishSteak(Serial serial) : base(serial) - { - } - - public override double DefaultWeight => 0.1; - - 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(); - } - } - - public class CheeseWheel : Food - { - [Constructible] - public CheeseWheel(int amount = 1) : base(0x97E, amount) => FillFactor = 3; - - public CheeseWheel(Serial serial) : base(serial) - { - } - - public override double DefaultWeight => 0.1; - - 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(); - } - } - - public class CheeseWedge : Food - { - [Constructible] - public CheeseWedge(int amount = 1) : base(0x97D, amount) => FillFactor = 3; - - public CheeseWedge(Serial serial) : base(serial) - { - } - - public override double DefaultWeight => 0.1; - - 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(); - } - } - - public class CheeseSlice : Food - { - [Constructible] - public CheeseSlice(int amount = 1) : base(0x97C, amount) => FillFactor = 1; - - public CheeseSlice(Serial serial) : base(serial) - { - } - - public override double DefaultWeight => 0.1; - - 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(); - } - } - - public class FrenchBread : Food - { - [Constructible] - public FrenchBread(int amount = 1) : base(0x98C, amount) - { - Weight = 2.0; - FillFactor = 3; - } - - public FrenchBread(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(); - } - } - - public class FriedEggs : Food - { - [Constructible] - public FriedEggs(int amount = 1) : base(0x9B6, amount) - { - Weight = 1.0; - FillFactor = 4; - } - - public FriedEggs(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(); - } - } - - public class CookedBird : Food - { - [Constructible] - public CookedBird(int amount = 1) : base(0x9B7, amount) - { - Weight = 1.0; - FillFactor = 5; - } - - public CookedBird(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(); - } - } - - public class RoastPig : Food - { - [Constructible] - public RoastPig(int amount = 1) : base(0x9BB, amount) - { - Weight = 45.0; - FillFactor = 20; - } - - public RoastPig(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(); - } - } - - public class Sausage : Food - { - [Constructible] - public Sausage(int amount = 1) : base(0x9C0, amount) - { - Weight = 1.0; - FillFactor = 4; - } - - public Sausage(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(); - } - } - - public class Ham : Food - { - [Constructible] - public Ham(int amount = 1) : base(0x9C9, amount) - { - Weight = 1.0; - FillFactor = 5; - } - - public Ham(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(); - } - } - - public class Cake : Food - { - [Constructible] - public Cake() : base(0x9E9) - { - Stackable = false; - Weight = 1.0; - FillFactor = 10; - } - - public Cake(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(); - } - } - - public class Ribs : Food - { - [Constructible] - public Ribs(int amount = 1) : base(0x9F2, amount) - { - Weight = 1.0; - FillFactor = 5; - } - - public Ribs(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(); - } - } - - public class Cookies : Food - { - [Constructible] - public Cookies() : base(0x160b) - { - Stackable = Core.ML; - Weight = 1.0; - FillFactor = 4; - } - - public Cookies(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(); - } - } - - public class Muffins : Food - { - [Constructible] - public Muffins() : base(0x9eb) - { - Stackable = false; - Weight = 1.0; - FillFactor = 4; - } - - public Muffins(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(); - } - } - - [TypeAlias("Server.Items.Pizza")] - public class CheesePizza : Food - { - [Constructible] - public CheesePizza() : base(0x1040) - { - Stackable = false; - Weight = 1.0; - FillFactor = 6; - } - - public CheesePizza(Serial serial) : base(serial) - { - } - - public override int LabelNumber => 1044516; // cheese pizza - - 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(); - } - } - - public class SausagePizza : Food - { - [Constructible] - public SausagePizza() : base(0x1040) - { - Stackable = false; - Weight = 1.0; - FillFactor = 6; - } - - public SausagePizza(Serial serial) : base(serial) - { - } - - public override int LabelNumber => 1044517; // sausage pizza - - 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(); - } - } - - public class FruitPie : Food - { - [Constructible] - public FruitPie() : base(0x1041) - { - Stackable = false; - Weight = 1.0; - FillFactor = 5; - } - - public FruitPie(Serial serial) : base(serial) - { - } - - public override int LabelNumber => 1041346; // baked fruit pie - - 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(); - } - } - - public class MeatPie : Food - { - [Constructible] - public MeatPie() : base(0x1041) - { - Stackable = false; - Weight = 1.0; - FillFactor = 5; - } - - public MeatPie(Serial serial) : base(serial) - { - } - - public override int LabelNumber => 1041347; // baked meat pie - - 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(); - } - } - - public class PumpkinPie : Food - { - [Constructible] - public PumpkinPie() : base(0x1041) - { - Stackable = false; - Weight = 1.0; - FillFactor = 5; - } - - public PumpkinPie(Serial serial) : base(serial) - { - } - - public override int LabelNumber => 1041348; // baked pumpkin pie - - 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(); - } - } - - public class ApplePie : Food - { - [Constructible] - public ApplePie() : base(0x1041) - { - Stackable = false; - Weight = 1.0; - FillFactor = 5; - } - - public ApplePie(Serial serial) : base(serial) - { - } - - public override int LabelNumber => 1041343; // baked apple pie - - 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(); - } - } - - public class PeachCobbler : Food - { - [Constructible] - public PeachCobbler() : base(0x1041) - { - Stackable = false; - Weight = 1.0; - FillFactor = 5; - } - - public PeachCobbler(Serial serial) : base(serial) - { - } - - public override int LabelNumber => 1041344; // baked peach cobbler - - 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(); - } - } - - public class Quiche : Food - { - [Constructible] - public Quiche() : base(0x1041) - { - Stackable = Core.ML; - Weight = 1.0; - FillFactor = 5; - } - - public Quiche(Serial serial) : base(serial) - { - } - - public override int LabelNumber => 1041345; // baked quiche - - 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(); - } - } - - public class LambLeg : Food - { - [Constructible] - public LambLeg(int amount = 1) : base(0x160a, amount) - { - Weight = 2.0; - FillFactor = 5; - } - - public LambLeg(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(); - } - } - - public class ChickenLeg : Food - { - [Constructible] - public ChickenLeg(int amount = 1) : base(0x1608, amount) - { - Weight = 1.0; - FillFactor = 4; - } - - public ChickenLeg(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(); - } - } - - [Flippable(0xC74, 0xC75)] - public class HoneydewMelon : Food - { - [Constructible] - public HoneydewMelon(int amount = 1) : base(0xC74, amount) - { - Weight = 1.0; - FillFactor = 1; - } - - public HoneydewMelon(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(); - } - } - - [Flippable(0xC64, 0xC65)] - public class YellowGourd : Food - { - [Constructible] - public YellowGourd(int amount = 1) : base(0xC64, amount) - { - Weight = 1.0; - FillFactor = 1; - } - - public YellowGourd(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(); - } - } - - [Flippable(0xC66, 0xC67)] - public class GreenGourd : Food - { - [Constructible] - public GreenGourd(int amount = 1) : base(0xC66, amount) - { - Weight = 1.0; - FillFactor = 1; - } - - public GreenGourd(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(); - } - } - - [Flippable(0xC7F, 0xC81)] - public class EarOfCorn : Food - { - [Constructible] - public EarOfCorn(int amount = 1) : base(0xC81, amount) - { - Weight = 1.0; - FillFactor = 1; - } - - public EarOfCorn(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(); - } - } - - public class Turnip : Food - { - [Constructible] - public Turnip(int amount = 1) : base(0xD3A, amount) - { - Weight = 1.0; - FillFactor = 1; - } - - public Turnip(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(); - } - } - - public class SheafOfHay : Item - { - [Constructible] - public SheafOfHay() : base(0xF36) => Weight = 10.0; - - public SheafOfHay(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(); - } + return true; } } + +[SerializationGenerator(0, false)] +public partial class BreadLoaf : Food +{ + [Constructible] + public BreadLoaf(int amount = 1) : base(0x103B, amount) + { + Weight = 1.0; + FillFactor = 3; + } +} + +[SerializationGenerator(0, false)] +public partial class Bacon : Food +{ + [Constructible] + public Bacon(int amount = 1) : base(0x979, amount) + { + Weight = 1.0; + FillFactor = 1; + } +} + +[SerializationGenerator(0, false)] +public partial class SlabOfBacon : Food +{ + [Constructible] + public SlabOfBacon(int amount = 1) : base(0x976, amount) + { + Weight = 1.0; + FillFactor = 3; + } +} + +[SerializationGenerator(0, false)] +public partial class FishSteak : Food +{ + [Constructible] + public FishSteak(int amount = 1) : base(0x97B, amount) => FillFactor = 3; + + public override double DefaultWeight => 0.1; +} + +[SerializationGenerator(0, false)] +public partial class CheeseWheel : Food +{ + [Constructible] + public CheeseWheel(int amount = 1) : base(0x97E, amount) => FillFactor = 3; + + public override double DefaultWeight => 0.1; +} + +[SerializationGenerator(0, false)] +public partial class CheeseWedge : Food +{ + [Constructible] + public CheeseWedge(int amount = 1) : base(0x97D, amount) => FillFactor = 3; + + public override double DefaultWeight => 0.1; +} + +[SerializationGenerator(0, false)] +public partial class CheeseSlice : Food +{ + [Constructible] + public CheeseSlice(int amount = 1) : base(0x97C, amount) => FillFactor = 1; + + public override double DefaultWeight => 0.1; +} + +[SerializationGenerator(0, false)] +public partial class FrenchBread : Food +{ + [Constructible] + public FrenchBread(int amount = 1) : base(0x98C, amount) + { + Weight = 2.0; + FillFactor = 3; + } +} + +[SerializationGenerator(0, false)] +public partial class FriedEggs : Food +{ + [Constructible] + public FriedEggs(int amount = 1) : base(0x9B6, amount) + { + Weight = 1.0; + FillFactor = 4; + } +} + +[SerializationGenerator(0, false)] +public partial class CookedBird : Food +{ + [Constructible] + public CookedBird(int amount = 1) : base(0x9B7, amount) + { + Weight = 1.0; + FillFactor = 5; + } +} + +[SerializationGenerator(0, false)] +public partial class RoastPig : Food +{ + [Constructible] + public RoastPig(int amount = 1) : base(0x9BB, amount) + { + Weight = 45.0; + FillFactor = 20; + } +} + +[SerializationGenerator(0, false)] +public partial class Sausage : Food +{ + [Constructible] + public Sausage(int amount = 1) : base(0x9C0, amount) + { + Weight = 1.0; + FillFactor = 4; + } +} + +[SerializationGenerator(0, false)] +public partial class Ham : Food +{ + [Constructible] + public Ham(int amount = 1) : base(0x9C9, amount) + { + Weight = 1.0; + FillFactor = 5; + } +} + +[SerializationGenerator(0, false)] +public partial class Cake : Food +{ + [Constructible] + public Cake() : base(0x9E9) + { + Stackable = false; + Weight = 1.0; + FillFactor = 10; + } +} + +[SerializationGenerator(0, false)] +public partial class Ribs : Food +{ + [Constructible] + public Ribs(int amount = 1) : base(0x9F2, amount) + { + Weight = 1.0; + FillFactor = 5; + } +} + +[SerializationGenerator(0, false)] +public partial class Cookies : Food +{ + [Constructible] + public Cookies() : base(0x160b) + { + Stackable = Core.ML; + Weight = 1.0; + FillFactor = 4; + } +} + +[SerializationGenerator(0, false)] +public partial class Muffins : Food +{ + [Constructible] + public Muffins() : base(0x9eb) + { + Stackable = false; + Weight = 1.0; + FillFactor = 4; + } +} + +[TypeAlias("Server.Items.Pizza")] +[SerializationGenerator(0, false)] +public partial class CheesePizza : Food +{ + [Constructible] + public CheesePizza() : base(0x1040) + { + Stackable = false; + Weight = 1.0; + FillFactor = 6; + } + + public override int LabelNumber => 1044516; // cheese pizza +} + +[SerializationGenerator(0, false)] +public partial class SausagePizza : Food +{ + [Constructible] + public SausagePizza() : base(0x1040) + { + Stackable = false; + Weight = 1.0; + FillFactor = 6; + } + + public override int LabelNumber => 1044517; // sausage pizza +} + +[SerializationGenerator(0, false)] +public partial class FruitPie : Food +{ + [Constructible] + public FruitPie() : base(0x1041) + { + Stackable = false; + Weight = 1.0; + FillFactor = 5; + } + + public override int LabelNumber => 1041346; // baked fruit pie +} + +[SerializationGenerator(0, false)] +public partial class MeatPie : Food +{ + [Constructible] + public MeatPie() : base(0x1041) + { + Stackable = false; + Weight = 1.0; + FillFactor = 5; + } + + public override int LabelNumber => 1041347; // baked meat pie +} + +[SerializationGenerator(0, false)] +public partial class PumpkinPie : Food +{ + [Constructible] + public PumpkinPie() : base(0x1041) + { + Stackable = false; + Weight = 1.0; + FillFactor = 5; + } + + public override int LabelNumber => 1041348; // baked pumpkin pie +} + +[SerializationGenerator(0, false)] +public partial class ApplePie : Food +{ + [Constructible] + public ApplePie() : base(0x1041) + { + Stackable = false; + Weight = 1.0; + FillFactor = 5; + } + + public override int LabelNumber => 1041343; // baked apple pie +} + +[SerializationGenerator(0, false)] +public partial class PeachCobbler : Food +{ + [Constructible] + public PeachCobbler() : base(0x1041) + { + Stackable = false; + Weight = 1.0; + FillFactor = 5; + } + + public override int LabelNumber => 1041344; // baked peach cobbler +} + +[SerializationGenerator(0, false)] +public partial class Quiche : Food +{ + [Constructible] + public Quiche() : base(0x1041) + { + Stackable = Core.ML; + Weight = 1.0; + FillFactor = 5; + } + + public override int LabelNumber => 1041345; // baked quiche +} + +[SerializationGenerator(0, false)] +public partial class LambLeg : Food +{ + [Constructible] + public LambLeg(int amount = 1) : base(0x160a, amount) + { + Weight = 2.0; + FillFactor = 5; + } +} + +[SerializationGenerator(0, false)] +public partial class ChickenLeg : Food +{ + [Constructible] + public ChickenLeg(int amount = 1) : base(0x1608, amount) + { + Weight = 1.0; + FillFactor = 4; + } +} + +[Flippable(0xC74, 0xC75)] +[SerializationGenerator(0, false)] +public partial class HoneydewMelon : Food +{ + [Constructible] + public HoneydewMelon(int amount = 1) : base(0xC74, amount) + { + Weight = 1.0; + FillFactor = 1; + } +} + +[Flippable(0xC64, 0xC65)] +[SerializationGenerator(0, false)] +public partial class YellowGourd : Food +{ + [Constructible] + public YellowGourd(int amount = 1) : base(0xC64, amount) + { + Weight = 1.0; + FillFactor = 1; + } +} + +[Flippable(0xC66, 0xC67)] +[SerializationGenerator(0, false)] +public partial class GreenGourd : Food +{ + [Constructible] + public GreenGourd(int amount = 1) : base(0xC66, amount) + { + Weight = 1.0; + FillFactor = 1; + } +} + +[Flippable(0xC7F, 0xC81)] +[SerializationGenerator(0, false)] +public partial class EarOfCorn : Food +{ + [Constructible] + public EarOfCorn(int amount = 1) : base(0xC81, amount) + { + Weight = 1.0; + FillFactor = 1; + } +} + +[SerializationGenerator(0, false)] +public partial class Turnip : Food +{ + [Constructible] + public Turnip(int amount = 1) : base(0xD3A, amount) + { + Weight = 1.0; + FillFactor = 1; + } +} + +[SerializationGenerator(0, false)] +public partial class SheafOfHay : Item +{ + [Constructible] + public SheafOfHay() : base(0xF36) => Weight = 10.0; +} diff --git a/Projects/UOContent/Items/Food/Fruits.cs b/Projects/UOContent/Items/Food/Fruits.cs index 90ec2b3bf..9971f1d62 100644 --- a/Projects/UOContent/Items/Food/Fruits.cs +++ b/Projects/UOContent/Items/Food/Fruits.cs @@ -1,563 +1,228 @@ -namespace Server.Items +using ModernUO.Serialization; + +namespace Server.Items; + +[SerializationGenerator(0, false)] +public partial class FruitBasket : Food { - public class FruitBasket : Food + [Constructible] + public FruitBasket() : base(0x993) { - [Constructible] - public FruitBasket() : base(0x993) - { - Weight = 2.0; - FillFactor = 5; - Stackable = false; - } - - public FruitBasket(Serial serial) : base(serial) - { - } - - public override bool Eat(Mobile from) - { - if (!base.Eat(from)) - { - return false; - } - - from.AddToBackpack(new Basket()); - return true; - } - - 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(); - } + Weight = 2.0; + FillFactor = 5; + Stackable = false; } - [Flippable(0x171f, 0x1720)] - public class Banana : Food + public override bool Eat(Mobile from) { - [Constructible] - public Banana(int amount = 1) : base(0x171f, amount) + if (!base.Eat(from)) { - Weight = 1.0; - FillFactor = 1; + return false; } - public Banana(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(); - } - } - - [Flippable(0x1721, 0x1722)] - public class Bananas : Food - { - [Constructible] - public Bananas(int amount = 1) : base(0x1721, amount) - { - Weight = 1.0; - FillFactor = 1; - } - - public Bananas(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(); - } - } - - public class SplitCoconut : Food - { - [Constructible] - public SplitCoconut(int amount = 1) : base(0x1725, amount) - { - Weight = 1.0; - FillFactor = 1; - } - - public SplitCoconut(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(); - } - } - - public class Lemon : Food - { - [Constructible] - public Lemon(int amount = 1) : base(0x1728, amount) - { - Weight = 1.0; - FillFactor = 1; - } - - public Lemon(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(); - } - } - - public class Lemons : Food - { - [Constructible] - public Lemons(int amount = 1) : base(0x1729, amount) - { - Weight = 1.0; - FillFactor = 1; - } - - public Lemons(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(); - } - } - - public class Lime : Food - { - [Constructible] - public Lime(int amount = 1) : base(0x172a, amount) - { - Weight = 1.0; - FillFactor = 1; - } - - public Lime(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(); - } - } - - public class Limes : Food - { - [Constructible] - public Limes(int amount = 1) : base(0x172B, amount) - { - Weight = 1.0; - FillFactor = 1; - } - - public Limes(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(); - } - } - - public class Coconut : Food - { - [Constructible] - public Coconut(int amount = 1) : base(0x1726, amount) - { - Weight = 1.0; - FillFactor = 1; - } - - public Coconut(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(); - } - } - - public class OpenCoconut : Food - { - [Constructible] - public OpenCoconut(int amount = 1) : base(0x1723, amount) - { - Weight = 1.0; - FillFactor = 1; - } - - public OpenCoconut(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(); - } - } - - public class Dates : Food - { - [Constructible] - public Dates(int amount = 1) : base(0x1727, amount) - { - Weight = 1.0; - FillFactor = 1; - } - - public Dates(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(); - } - } - - public class Grapes : Food - { - [Constructible] - public Grapes(int amount = 1) : base(0x9D1, amount) - { - Weight = 1.0; - FillFactor = 1; - } - - public Grapes(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(); - } - } - - public class Peach : Food - { - [Constructible] - public Peach(int amount = 1) : base(0x9D2, amount) - { - Weight = 1.0; - FillFactor = 1; - } - - public Peach(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(); - } - } - - public class Pear : Food - { - [Constructible] - public Pear(int amount = 1) : base(0x994, amount) - { - Weight = 1.0; - FillFactor = 1; - } - - public Pear(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(); - } - } - - public class Apple : Food - { - [Constructible] - public Apple(int amount = 1) : base(0x9D0, amount) - { - Weight = 1.0; - FillFactor = 1; - } - - public Apple(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(); - } - } - - public class Watermelon : Food - { - [Constructible] - public Watermelon(int amount = 1) : base(0xC5C, amount) - { - Weight = 5.0; - FillFactor = 5; - } - - public Watermelon(Serial serial) : base(serial) - { - } - - public override void Serialize(IGenericWriter writer) - { - base.Serialize(writer); - - writer.Write(1); // version - } - - public override void Deserialize(IGenericReader reader) - { - base.Deserialize(reader); - - var version = reader.ReadInt(); - - if (version < 1) - { - if (FillFactor == 2) - { - FillFactor = 5; - } - - if (Weight == 2.0) - { - Weight = 5.0; - } - } - } - } - - public class SmallWatermelon : Food - { - [Constructible] - public SmallWatermelon(int amount = 1) : base(0xC5D, amount) - { - Weight = 5.0; - FillFactor = 5; - } - - public SmallWatermelon(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(); - } - } - - [Flippable(0xc72, 0xc73)] - public class Squash : Food - { - [Constructible] - public Squash(int amount = 1) : base(0xc72, amount) - { - Weight = 1.0; - FillFactor = 1; - } - - public Squash(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(); - } - } - - [Flippable(0xc79, 0xc7a)] - public class Cantaloupe : Food - { - [Constructible] - public Cantaloupe(int amount = 1) : base(0xc79, amount) - { - Weight = 1.0; - FillFactor = 1; - } - - public Cantaloupe(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(); - } + from.AddToBackpack(new Basket()); + return true; + } +} + +[Flippable(0x171f, 0x1720)] +[SerializationGenerator(0, false)] +public partial class Banana : Food +{ + [Constructible] + public Banana(int amount = 1) : base(0x171f, amount) + { + Weight = 1.0; + FillFactor = 1; + } +} + +[Flippable(0x1721, 0x1722)] +[SerializationGenerator(0, false)] +public partial class Bananas : Food +{ + [Constructible] + public Bananas(int amount = 1) : base(0x1721, amount) + { + Weight = 1.0; + FillFactor = 1; + } +} + +[SerializationGenerator(0, false)] +public partial class SplitCoconut : Food +{ + [Constructible] + public SplitCoconut(int amount = 1) : base(0x1725, amount) + { + Weight = 1.0; + FillFactor = 1; + } +} + +[SerializationGenerator(0, false)] +public partial class Lemon : Food +{ + [Constructible] + public Lemon(int amount = 1) : base(0x1728, amount) + { + Weight = 1.0; + FillFactor = 1; + } +} + +[SerializationGenerator(0, false)] +public partial class Lemons : Food +{ + [Constructible] + public Lemons(int amount = 1) : base(0x1729, amount) + { + Weight = 1.0; + FillFactor = 1; + } +} + +[SerializationGenerator(0, false)] +public partial class Lime : Food +{ + [Constructible] + public Lime(int amount = 1) : base(0x172a, amount) + { + Weight = 1.0; + FillFactor = 1; + } +} + +[SerializationGenerator(0, false)] +public partial class Limes : Food +{ + [Constructible] + public Limes(int amount = 1) : base(0x172B, amount) + { + Weight = 1.0; + FillFactor = 1; + } +} + +[SerializationGenerator(0, false)] +public partial class Coconut : Food +{ + [Constructible] + public Coconut(int amount = 1) : base(0x1726, amount) + { + Weight = 1.0; + FillFactor = 1; + } +} + +[SerializationGenerator(0, false)] +public partial class OpenCoconut : Food +{ + [Constructible] + public OpenCoconut(int amount = 1) : base(0x1723, amount) + { + Weight = 1.0; + FillFactor = 1; + } +} + +[SerializationGenerator(0, false)] +public partial class Dates : Food +{ + [Constructible] + public Dates(int amount = 1) : base(0x1727, amount) + { + Weight = 1.0; + FillFactor = 1; + } +} + +[SerializationGenerator(0, false)] +public partial class Grapes : Food +{ + [Constructible] + public Grapes(int amount = 1) : base(0x9D1, amount) + { + Weight = 1.0; + FillFactor = 1; + } +} + +[SerializationGenerator(0, false)] +public partial class Peach : Food +{ + [Constructible] + public Peach(int amount = 1) : base(0x9D2, amount) + { + Weight = 1.0; + FillFactor = 1; + } +} + +[SerializationGenerator(0, false)] +public partial class Pear : Food +{ + [Constructible] + public Pear(int amount = 1) : base(0x994, amount) + { + Weight = 1.0; + FillFactor = 1; + } +} + +[SerializationGenerator(0, false)] +public partial class Apple : Food +{ + [Constructible] + public Apple(int amount = 1) : base(0x9D0, amount) + { + Weight = 1.0; + FillFactor = 1; + } +} + +[SerializationGenerator(0, false)] +public partial class Watermelon : Food +{ + [Constructible] + public Watermelon(int amount = 1) : base(0xC5C, amount) + { + Weight = 5.0; + FillFactor = 5; + } +} + +[SerializationGenerator(0, false)] +public partial class SmallWatermelon : Food +{ + [Constructible] + public SmallWatermelon(int amount = 1) : base(0xC5D, amount) + { + Weight = 5.0; + FillFactor = 5; + } +} + +[Flippable(0xc72, 0xc73)] +[SerializationGenerator(0, false)] +public partial class Squash : Food +{ + [Constructible] + public Squash(int amount = 1) : base(0xc72, amount) + { + Weight = 1.0; + FillFactor = 1; + } +} + +[Flippable(0xc79, 0xc7a)] +[SerializationGenerator(0, false)] +public partial class Cantaloupe : Food +{ + [Constructible] + public Cantaloupe(int amount = 1) : base(0xc79, amount) + { + Weight = 1.0; + FillFactor = 1; } } diff --git a/Projects/UOContent/Items/Food/Vegetables.cs b/Projects/UOContent/Items/Food/Vegetables.cs index 3c45febff..9824d23b3 100644 --- a/Projects/UOContent/Items/Food/Vegetables.cs +++ b/Projects/UOContent/Items/Food/Vegetables.cs @@ -1,188 +1,74 @@ -namespace Server.Items +using ModernUO.Serialization; + +namespace Server.Items; + +[Flippable(0xc77, 0xc78)] +[SerializationGenerator(0, false)] +public partial class Carrot : Food { - [Flippable(0xc77, 0xc78)] - public class Carrot : Food + [Constructible] + public Carrot(int amount = 1) : base(0xc78, amount) { - [Constructible] - public Carrot(int amount = 1) : base(0xc78, amount) - { - Weight = 1.0; - FillFactor = 1; - } - - public Carrot(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(); - } - } - - [Flippable(0xc7b, 0xc7c)] - public class Cabbage : Food - { - [Constructible] - public Cabbage(int amount = 1) : base(0xc7b, amount) - { - Weight = 1.0; - FillFactor = 1; - } - - public Cabbage(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(); - } - } - - [Flippable(0xc6d, 0xc6e)] - public class Onion : Food - { - [Constructible] - public Onion(int amount = 1) : base(0xc6d, amount) - { - Weight = 1.0; - FillFactor = 1; - } - - public Onion(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(); - } - } - - [Flippable(0xc70, 0xc71)] - public class Lettuce : Food - { - [Constructible] - public Lettuce(int amount = 1) : base(0xc70, amount) - { - Weight = 1.0; - FillFactor = 1; - } - - public Lettuce(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(); - } - } - - [Flippable(0xC6A, 0xC6B)] - public class Pumpkin : Food - { - [Constructible] - public Pumpkin(int amount = 1) : base(0xC6A, amount) - { - Weight = 1.0; - FillFactor = 8; - } - - public Pumpkin(Serial serial) : base(serial) - { - } - - public override void Serialize(IGenericWriter writer) - { - base.Serialize(writer); - - writer.Write(1); // version - } - - public override void Deserialize(IGenericReader reader) - { - base.Deserialize(reader); - - var version = reader.ReadInt(); - - if (version < 1) - { - if (FillFactor == 4) - { - FillFactor = 8; - } - - if (Weight == 5.0) - { - Weight = 1.0; - } - } - } - } - - public class SmallPumpkin : Food - { - [Constructible] - public SmallPumpkin(int amount = 1) : base(0xC6C, amount) - { - Weight = 1.0; - FillFactor = 8; - } - - public SmallPumpkin(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(); - } + Weight = 1.0; + FillFactor = 1; + } +} + +[Flippable(0xc7b, 0xc7c)] +[SerializationGenerator(0, false)] +public partial class Cabbage : Food +{ + [Constructible] + public Cabbage(int amount = 1) : base(0xc7b, amount) + { + Weight = 1.0; + FillFactor = 1; + } +} + +[Flippable(0xc6d, 0xc6e)] +[SerializationGenerator(0, false)] +public partial class Onion : Food +{ + [Constructible] + public Onion(int amount = 1) : base(0xc6d, amount) + { + Weight = 1.0; + FillFactor = 1; + } +} + +[Flippable(0xc70, 0xc71)] +[SerializationGenerator(0, false)] +public partial class Lettuce : Food +{ + [Constructible] + public Lettuce(int amount = 1) : base(0xc70, amount) + { + Weight = 1.0; + FillFactor = 1; + } +} + +[Flippable(0xC6A, 0xC6B)] +[SerializationGenerator(0, false)] +public partial class Pumpkin : Food +{ + [Constructible] + public Pumpkin(int amount = 1) : base(0xC6A, amount) + { + Weight = 1.0; + FillFactor = 8; + } +} + +[SerializationGenerator(0, false)] +public partial class SmallPumpkin : Food +{ + [Constructible] + public SmallPumpkin(int amount = 1) : base(0xC6C, amount) + { + Weight = 1.0; + FillFactor = 8; } } diff --git a/Projects/UOContent/Migrations/Server.Items.Apple.v0.json b/Projects/UOContent/Migrations/Server.Items.Apple.v0.json new file mode 100644 index 000000000..f2cc1aebb --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.Apple.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.Apple" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.ApplePie.v0.json b/Projects/UOContent/Migrations/Server.Items.ApplePie.v0.json new file mode 100644 index 000000000..bd427f8e9 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.ApplePie.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.ApplePie" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.Bacon.v0.json b/Projects/UOContent/Migrations/Server.Items.Bacon.v0.json new file mode 100644 index 000000000..c0dc41202 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.Bacon.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.Bacon" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.Banana.v0.json b/Projects/UOContent/Migrations/Server.Items.Banana.v0.json new file mode 100644 index 000000000..2e0f8209b --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.Banana.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.Banana" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.Bananas.v0.json b/Projects/UOContent/Migrations/Server.Items.Bananas.v0.json new file mode 100644 index 000000000..614b49ed1 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.Bananas.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.Bananas" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.BowlFlour.v0.json b/Projects/UOContent/Migrations/Server.Items.BowlFlour.v0.json new file mode 100644 index 000000000..3113a0733 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.BowlFlour.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.BowlFlour" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.BreadLoaf.v0.json b/Projects/UOContent/Migrations/Server.Items.BreadLoaf.v0.json new file mode 100644 index 000000000..486f50047 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.BreadLoaf.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.BreadLoaf" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.BrightlyColoredEggs.v0.json b/Projects/UOContent/Migrations/Server.Items.BrightlyColoredEggs.v0.json new file mode 100644 index 000000000..41968f6bd --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.BrightlyColoredEggs.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.BrightlyColoredEggs" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.Cabbage.v0.json b/Projects/UOContent/Migrations/Server.Items.Cabbage.v0.json new file mode 100644 index 000000000..323d3658e --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.Cabbage.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.Cabbage" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.Cake.v0.json b/Projects/UOContent/Migrations/Server.Items.Cake.v0.json new file mode 100644 index 000000000..f9a5fc948 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.Cake.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.Cake" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.CakeMix.v0.json b/Projects/UOContent/Migrations/Server.Items.CakeMix.v0.json new file mode 100644 index 000000000..bbf0e5c55 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.CakeMix.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.CakeMix" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.Cantaloupe.v0.json b/Projects/UOContent/Migrations/Server.Items.Cantaloupe.v0.json new file mode 100644 index 000000000..5c61cf30e --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.Cantaloupe.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.Cantaloupe" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.Carrot.v0.json b/Projects/UOContent/Migrations/Server.Items.Carrot.v0.json new file mode 100644 index 000000000..d07a22b5b --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.Carrot.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.Carrot" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.CheesePizza.v0.json b/Projects/UOContent/Migrations/Server.Items.CheesePizza.v0.json new file mode 100644 index 000000000..cb9acacf2 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.CheesePizza.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.CheesePizza" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.CheeseSlice.v0.json b/Projects/UOContent/Migrations/Server.Items.CheeseSlice.v0.json new file mode 100644 index 000000000..21e32b26c --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.CheeseSlice.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.CheeseSlice" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.CheeseWedge.v0.json b/Projects/UOContent/Migrations/Server.Items.CheeseWedge.v0.json new file mode 100644 index 000000000..9cc68c9e1 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.CheeseWedge.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.CheeseWedge" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.CheeseWheel.v0.json b/Projects/UOContent/Migrations/Server.Items.CheeseWheel.v0.json new file mode 100644 index 000000000..2e3eb9711 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.CheeseWheel.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.CheeseWheel" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.ChickenLeg.v0.json b/Projects/UOContent/Migrations/Server.Items.ChickenLeg.v0.json new file mode 100644 index 000000000..439dabe7c --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.ChickenLeg.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.ChickenLeg" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.CocoaButter.v0.json b/Projects/UOContent/Migrations/Server.Items.CocoaButter.v0.json new file mode 100644 index 000000000..b1c97f5cc --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.CocoaButter.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.CocoaButter" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.CocoaLiquor.v0.json b/Projects/UOContent/Migrations/Server.Items.CocoaLiquor.v0.json new file mode 100644 index 000000000..3e4c2ef1f --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.CocoaLiquor.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.CocoaLiquor" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.CocoaPulp.v0.json b/Projects/UOContent/Migrations/Server.Items.CocoaPulp.v0.json new file mode 100644 index 000000000..546e3c7d8 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.CocoaPulp.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.CocoaPulp" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.Coconut.v0.json b/Projects/UOContent/Migrations/Server.Items.Coconut.v0.json new file mode 100644 index 000000000..6cbf6ca7b --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.Coconut.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.Coconut" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.CookableFood.v0.json b/Projects/UOContent/Migrations/Server.Items.CookableFood.v0.json new file mode 100644 index 000000000..907780a22 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.CookableFood.v0.json @@ -0,0 +1,14 @@ +{ + "version": 0, + "type": "Server.Items.CookableFood", + "properties": [ + { + "name": "CookingLevel", + "type": "int", + "rule": "PrimitiveTypeMigrationRule", + "ruleArguments": [ + "" + ] + } + ] +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.CookedBird.v0.json b/Projects/UOContent/Migrations/Server.Items.CookedBird.v0.json new file mode 100644 index 000000000..2ed0f1a62 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.CookedBird.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.CookedBird" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.CookieMix.v0.json b/Projects/UOContent/Migrations/Server.Items.CookieMix.v0.json new file mode 100644 index 000000000..6c1840ceb --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.CookieMix.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.CookieMix" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.Cookies.v0.json b/Projects/UOContent/Migrations/Server.Items.Cookies.v0.json new file mode 100644 index 000000000..f333fa730 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.Cookies.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.Cookies" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.DarkChocolate.v0.json b/Projects/UOContent/Migrations/Server.Items.DarkChocolate.v0.json new file mode 100644 index 000000000..c183912db --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.DarkChocolate.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.DarkChocolate" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.Dates.v0.json b/Projects/UOContent/Migrations/Server.Items.Dates.v0.json new file mode 100644 index 000000000..741bf29d1 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.Dates.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.Dates" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.Dough.v0.json b/Projects/UOContent/Migrations/Server.Items.Dough.v0.json new file mode 100644 index 000000000..c8b57c124 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.Dough.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.Dough" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.EarOfCorn.v0.json b/Projects/UOContent/Migrations/Server.Items.EarOfCorn.v0.json new file mode 100644 index 000000000..90b01e2a8 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.EarOfCorn.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.EarOfCorn" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.EasterEggs.v0.json b/Projects/UOContent/Migrations/Server.Items.EasterEggs.v0.json new file mode 100644 index 000000000..72b6c24ce --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.EasterEggs.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.EasterEggs" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.Eggs.v0.json b/Projects/UOContent/Migrations/Server.Items.Eggs.v0.json new file mode 100644 index 000000000..f966b68f1 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.Eggs.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.Eggs" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.Eggshells.v0.json b/Projects/UOContent/Migrations/Server.Items.Eggshells.v0.json new file mode 100644 index 000000000..511f677ff --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.Eggshells.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.Eggshells" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.EmptyPewterBowl.v0.json b/Projects/UOContent/Migrations/Server.Items.EmptyPewterBowl.v0.json new file mode 100644 index 000000000..2d1cb7d46 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.EmptyPewterBowl.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.EmptyPewterBowl" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.EmptyPewterTub.v0.json b/Projects/UOContent/Migrations/Server.Items.EmptyPewterTub.v0.json new file mode 100644 index 000000000..9c2461867 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.EmptyPewterTub.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.EmptyPewterTub" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.EmptyWoodenBowl.v0.json b/Projects/UOContent/Migrations/Server.Items.EmptyWoodenBowl.v0.json new file mode 100644 index 000000000..9942586dd --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.EmptyWoodenBowl.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.EmptyWoodenBowl" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.EmptyWoodenTub.v0.json b/Projects/UOContent/Migrations/Server.Items.EmptyWoodenTub.v0.json new file mode 100644 index 000000000..e9147d03c --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.EmptyWoodenTub.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.EmptyWoodenTub" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.FishSteak.v0.json b/Projects/UOContent/Migrations/Server.Items.FishSteak.v0.json new file mode 100644 index 000000000..a2cedd4a2 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.FishSteak.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.FishSteak" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.Food.v0.json b/Projects/UOContent/Migrations/Server.Items.Food.v0.json new file mode 100644 index 000000000..aa86b5b37 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.Food.v0.json @@ -0,0 +1,27 @@ +{ + "version": 0, + "type": "Server.Items.Food", + "properties": [ + { + "name": "Poisoner", + "type": "Server.Mobile", + "rule": "SerializableInterfaceMigrationRule" + }, + { + "name": "Poison", + "type": "Server.Poison", + "rule": "PrimitiveUOTypeMigrationRule", + "ruleArguments": [ + "Poison" + ] + }, + { + "name": "FillFactor", + "type": "int", + "rule": "PrimitiveTypeMigrationRule", + "ruleArguments": [ + "" + ] + } + ] +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.FrenchBread.v0.json b/Projects/UOContent/Migrations/Server.Items.FrenchBread.v0.json new file mode 100644 index 000000000..cb57f7afc --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.FrenchBread.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.FrenchBread" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.FriedEggs.v0.json b/Projects/UOContent/Migrations/Server.Items.FriedEggs.v0.json new file mode 100644 index 000000000..aa8d9edbc --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.FriedEggs.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.FriedEggs" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.FruitBasket.v0.json b/Projects/UOContent/Migrations/Server.Items.FruitBasket.v0.json new file mode 100644 index 000000000..84b1609dc --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.FruitBasket.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.FruitBasket" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.FruitPie.v0.json b/Projects/UOContent/Migrations/Server.Items.FruitPie.v0.json new file mode 100644 index 000000000..75f15878a --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.FruitPie.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.FruitPie" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.Glass.v0.json b/Projects/UOContent/Migrations/Server.Items.Glass.v0.json new file mode 100644 index 000000000..a201a73f1 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.Glass.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.Glass" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.GlassBottle.v0.json b/Projects/UOContent/Migrations/Server.Items.GlassBottle.v0.json new file mode 100644 index 000000000..f9ae5cd0b --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.GlassBottle.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.GlassBottle" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.Grapes.v0.json b/Projects/UOContent/Migrations/Server.Items.Grapes.v0.json new file mode 100644 index 000000000..76923e20b --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.Grapes.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.Grapes" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.GreenGourd.v0.json b/Projects/UOContent/Migrations/Server.Items.GreenGourd.v0.json new file mode 100644 index 000000000..cece83700 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.GreenGourd.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.GreenGourd" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.Ham.v0.json b/Projects/UOContent/Migrations/Server.Items.Ham.v0.json new file mode 100644 index 000000000..b5f398a4e --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.Ham.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.Ham" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.HoneydewMelon.v0.json b/Projects/UOContent/Migrations/Server.Items.HoneydewMelon.v0.json new file mode 100644 index 000000000..337082e0f --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.HoneydewMelon.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.HoneydewMelon" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.JarHoney.v0.json b/Projects/UOContent/Migrations/Server.Items.JarHoney.v0.json new file mode 100644 index 000000000..9dc72d1ed --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.JarHoney.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.JarHoney" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.LambLeg.v0.json b/Projects/UOContent/Migrations/Server.Items.LambLeg.v0.json new file mode 100644 index 000000000..0b14762e0 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.LambLeg.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.LambLeg" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.Lemon.v0.json b/Projects/UOContent/Migrations/Server.Items.Lemon.v0.json new file mode 100644 index 000000000..00ec5e31a --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.Lemon.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.Lemon" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.Lemons.v0.json b/Projects/UOContent/Migrations/Server.Items.Lemons.v0.json new file mode 100644 index 000000000..8feb21f2e --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.Lemons.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.Lemons" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.Lettuce.v0.json b/Projects/UOContent/Migrations/Server.Items.Lettuce.v0.json new file mode 100644 index 000000000..6bccdabeb --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.Lettuce.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.Lettuce" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.Lime.v0.json b/Projects/UOContent/Migrations/Server.Items.Lime.v0.json new file mode 100644 index 000000000..a4f943752 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.Lime.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.Lime" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.Limes.v0.json b/Projects/UOContent/Migrations/Server.Items.Limes.v0.json new file mode 100644 index 000000000..a9d505b98 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.Limes.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.Limes" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.MeatPie.v0.json b/Projects/UOContent/Migrations/Server.Items.MeatPie.v0.json new file mode 100644 index 000000000..9e1994934 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.MeatPie.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.MeatPie" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.MilkChocolate.v0.json b/Projects/UOContent/Migrations/Server.Items.MilkChocolate.v0.json new file mode 100644 index 000000000..3358354cf --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.MilkChocolate.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.MilkChocolate" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.Muffins.v0.json b/Projects/UOContent/Migrations/Server.Items.Muffins.v0.json new file mode 100644 index 000000000..9c7d8a9ff --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.Muffins.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.Muffins" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.Onion.v0.json b/Projects/UOContent/Migrations/Server.Items.Onion.v0.json new file mode 100644 index 000000000..b5130b863 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.Onion.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.Onion" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.OpenCoconut.v0.json b/Projects/UOContent/Migrations/Server.Items.OpenCoconut.v0.json new file mode 100644 index 000000000..94cd7d532 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.OpenCoconut.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.OpenCoconut" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.Peach.v0.json b/Projects/UOContent/Migrations/Server.Items.Peach.v0.json new file mode 100644 index 000000000..5d6e4a7ba --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.Peach.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.Peach" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.PeachCobbler.v0.json b/Projects/UOContent/Migrations/Server.Items.PeachCobbler.v0.json new file mode 100644 index 000000000..1263c061f --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.PeachCobbler.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.PeachCobbler" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.Pear.v0.json b/Projects/UOContent/Migrations/Server.Items.Pear.v0.json new file mode 100644 index 000000000..38e7e73aa --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.Pear.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.Pear" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.PewterBowlOfCarrots.v0.json b/Projects/UOContent/Migrations/Server.Items.PewterBowlOfCarrots.v0.json new file mode 100644 index 000000000..f04bcf6c0 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.PewterBowlOfCarrots.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.PewterBowlOfCarrots" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.PewterBowlOfCorn.v0.json b/Projects/UOContent/Migrations/Server.Items.PewterBowlOfCorn.v0.json new file mode 100644 index 000000000..7d7af90d0 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.PewterBowlOfCorn.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.PewterBowlOfCorn" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.PewterBowlOfLettuce.v0.json b/Projects/UOContent/Migrations/Server.Items.PewterBowlOfLettuce.v0.json new file mode 100644 index 000000000..20b28ba7a --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.PewterBowlOfLettuce.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.PewterBowlOfLettuce" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.PewterBowlOfPeas.v0.json b/Projects/UOContent/Migrations/Server.Items.PewterBowlOfPeas.v0.json new file mode 100644 index 000000000..14a8225ba --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.PewterBowlOfPeas.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.PewterBowlOfPeas" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.PewterBowlOfPotatos.v0.json b/Projects/UOContent/Migrations/Server.Items.PewterBowlOfPotatos.v0.json new file mode 100644 index 000000000..fa7f89157 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.PewterBowlOfPotatos.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.PewterBowlOfPotatos" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.Pumpkin.v0.json b/Projects/UOContent/Migrations/Server.Items.Pumpkin.v0.json new file mode 100644 index 000000000..83ab02724 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.Pumpkin.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.Pumpkin" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.PumpkinPie.v0.json b/Projects/UOContent/Migrations/Server.Items.PumpkinPie.v0.json new file mode 100644 index 000000000..72f3a3155 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.PumpkinPie.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.PumpkinPie" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.Quiche.v0.json b/Projects/UOContent/Migrations/Server.Items.Quiche.v0.json new file mode 100644 index 000000000..c130ac70b --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.Quiche.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.Quiche" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.RawBird.v0.json b/Projects/UOContent/Migrations/Server.Items.RawBird.v0.json new file mode 100644 index 000000000..0475acb12 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.RawBird.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.RawBird" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.RawChickenLeg.v0.json b/Projects/UOContent/Migrations/Server.Items.RawChickenLeg.v0.json new file mode 100644 index 000000000..280168865 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.RawChickenLeg.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.RawChickenLeg" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.RawFishSteak.v0.json b/Projects/UOContent/Migrations/Server.Items.RawFishSteak.v0.json new file mode 100644 index 000000000..375f1cd89 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.RawFishSteak.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.RawFishSteak" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.RawLambLeg.v0.json b/Projects/UOContent/Migrations/Server.Items.RawLambLeg.v0.json new file mode 100644 index 000000000..5b126e759 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.RawLambLeg.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.RawLambLeg" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.RawRibs.v0.json b/Projects/UOContent/Migrations/Server.Items.RawRibs.v0.json new file mode 100644 index 000000000..d622b8be9 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.RawRibs.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.RawRibs" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.Ribs.v0.json b/Projects/UOContent/Migrations/Server.Items.Ribs.v0.json new file mode 100644 index 000000000..de0182bcf --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.Ribs.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.Ribs" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.RoastPig.v0.json b/Projects/UOContent/Migrations/Server.Items.RoastPig.v0.json new file mode 100644 index 000000000..b7b4d04c2 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.RoastPig.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.RoastPig" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.SackFlour.v0.json b/Projects/UOContent/Migrations/Server.Items.SackFlour.v0.json new file mode 100644 index 000000000..8087f39fc --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.SackFlour.v0.json @@ -0,0 +1,14 @@ +{ + "version": 0, + "type": "Server.Items.SackFlour", + "properties": [ + { + "name": "Quantity", + "type": "int", + "rule": "PrimitiveTypeMigrationRule", + "ruleArguments": [ + "" + ] + } + ] +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.SackOfSugar.v0.json b/Projects/UOContent/Migrations/Server.Items.SackOfSugar.v0.json new file mode 100644 index 000000000..8e0a647eb --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.SackOfSugar.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.SackOfSugar" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.Sausage.v0.json b/Projects/UOContent/Migrations/Server.Items.Sausage.v0.json new file mode 100644 index 000000000..d803d2258 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.Sausage.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.Sausage" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.SausagePizza.v0.json b/Projects/UOContent/Migrations/Server.Items.SausagePizza.v0.json new file mode 100644 index 000000000..ec0ee27cf --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.SausagePizza.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.SausagePizza" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.SheafOfHay.v0.json b/Projects/UOContent/Migrations/Server.Items.SheafOfHay.v0.json new file mode 100644 index 000000000..d3d763d6c --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.SheafOfHay.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.SheafOfHay" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.SlabOfBacon.v0.json b/Projects/UOContent/Migrations/Server.Items.SlabOfBacon.v0.json new file mode 100644 index 000000000..347f27ab9 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.SlabOfBacon.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.SlabOfBacon" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.SmallPumpkin.v0.json b/Projects/UOContent/Migrations/Server.Items.SmallPumpkin.v0.json new file mode 100644 index 000000000..3af9f9d9f --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.SmallPumpkin.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.SmallPumpkin" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.SmallWatermelon.v0.json b/Projects/UOContent/Migrations/Server.Items.SmallWatermelon.v0.json new file mode 100644 index 000000000..fb49115bc --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.SmallWatermelon.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.SmallWatermelon" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.SplitCoconut.v0.json b/Projects/UOContent/Migrations/Server.Items.SplitCoconut.v0.json new file mode 100644 index 000000000..b2997c010 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.SplitCoconut.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.SplitCoconut" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.Squash.v0.json b/Projects/UOContent/Migrations/Server.Items.Squash.v0.json new file mode 100644 index 000000000..0d6182f02 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.Squash.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.Squash" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.SweetDough.v0.json b/Projects/UOContent/Migrations/Server.Items.SweetDough.v0.json new file mode 100644 index 000000000..cca6c99ca --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.SweetDough.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.SweetDough" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.Turnip.v0.json b/Projects/UOContent/Migrations/Server.Items.Turnip.v0.json new file mode 100644 index 000000000..f8f0c302e --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.Turnip.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.Turnip" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.UnbakedApplePie.v0.json b/Projects/UOContent/Migrations/Server.Items.UnbakedApplePie.v0.json new file mode 100644 index 000000000..99f050908 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.UnbakedApplePie.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.UnbakedApplePie" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.UnbakedFruitPie.v0.json b/Projects/UOContent/Migrations/Server.Items.UnbakedFruitPie.v0.json new file mode 100644 index 000000000..54548d26b --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.UnbakedFruitPie.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.UnbakedFruitPie" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.UnbakedMeatPie.v0.json b/Projects/UOContent/Migrations/Server.Items.UnbakedMeatPie.v0.json new file mode 100644 index 000000000..142fd4044 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.UnbakedMeatPie.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.UnbakedMeatPie" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.UnbakedPeachCobbler.v0.json b/Projects/UOContent/Migrations/Server.Items.UnbakedPeachCobbler.v0.json new file mode 100644 index 000000000..6d2b12e77 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.UnbakedPeachCobbler.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.UnbakedPeachCobbler" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.UnbakedPumpkinPie.v0.json b/Projects/UOContent/Migrations/Server.Items.UnbakedPumpkinPie.v0.json new file mode 100644 index 000000000..2d5ac5cc6 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.UnbakedPumpkinPie.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.UnbakedPumpkinPie" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.UnbakedQuiche.v0.json b/Projects/UOContent/Migrations/Server.Items.UnbakedQuiche.v0.json new file mode 100644 index 000000000..71633b3ad --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.UnbakedQuiche.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.UnbakedQuiche" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.UncookedCheesePizza.v0.json b/Projects/UOContent/Migrations/Server.Items.UncookedCheesePizza.v0.json new file mode 100644 index 000000000..37913c49f --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.UncookedCheesePizza.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.UncookedCheesePizza" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.UncookedSausagePizza.v0.json b/Projects/UOContent/Migrations/Server.Items.UncookedSausagePizza.v0.json new file mode 100644 index 000000000..c65c92a89 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.UncookedSausagePizza.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.UncookedSausagePizza" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.Vanilla.v0.json b/Projects/UOContent/Migrations/Server.Items.Vanilla.v0.json new file mode 100644 index 000000000..b8b2b8a7b --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.Vanilla.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.Vanilla" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.Watermelon.v0.json b/Projects/UOContent/Migrations/Server.Items.Watermelon.v0.json new file mode 100644 index 000000000..5fed967d8 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.Watermelon.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.Watermelon" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.WheatSheaf.v0.json b/Projects/UOContent/Migrations/Server.Items.WheatSheaf.v0.json new file mode 100644 index 000000000..f989c6934 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.WheatSheaf.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.WheatSheaf" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.WhiteChocolate.v0.json b/Projects/UOContent/Migrations/Server.Items.WhiteChocolate.v0.json new file mode 100644 index 000000000..a59371f31 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.WhiteChocolate.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.WhiteChocolate" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.WoodenBowl.v0.json b/Projects/UOContent/Migrations/Server.Items.WoodenBowl.v0.json new file mode 100644 index 000000000..09282000b --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.WoodenBowl.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.WoodenBowl" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.WoodenBowlOfCarrots.v0.json b/Projects/UOContent/Migrations/Server.Items.WoodenBowlOfCarrots.v0.json new file mode 100644 index 000000000..262bf8b3a --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.WoodenBowlOfCarrots.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.WoodenBowlOfCarrots" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.WoodenBowlOfCorn.v0.json b/Projects/UOContent/Migrations/Server.Items.WoodenBowlOfCorn.v0.json new file mode 100644 index 000000000..d28cf0b4e --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.WoodenBowlOfCorn.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.WoodenBowlOfCorn" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.WoodenBowlOfLettuce.v0.json b/Projects/UOContent/Migrations/Server.Items.WoodenBowlOfLettuce.v0.json new file mode 100644 index 000000000..655bc2d84 --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.WoodenBowlOfLettuce.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.WoodenBowlOfLettuce" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.WoodenBowlOfPeas.v0.json b/Projects/UOContent/Migrations/Server.Items.WoodenBowlOfPeas.v0.json new file mode 100644 index 000000000..5704fe63c --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.WoodenBowlOfPeas.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.WoodenBowlOfPeas" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.WoodenBowlOfStew.v0.json b/Projects/UOContent/Migrations/Server.Items.WoodenBowlOfStew.v0.json new file mode 100644 index 000000000..45b7da55a --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.WoodenBowlOfStew.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.WoodenBowlOfStew" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.WoodenBowlOfTomatoSoup.v0.json b/Projects/UOContent/Migrations/Server.Items.WoodenBowlOfTomatoSoup.v0.json new file mode 100644 index 000000000..97ce4c1da --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.WoodenBowlOfTomatoSoup.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.WoodenBowlOfTomatoSoup" +} \ No newline at end of file diff --git a/Projects/UOContent/Migrations/Server.Items.YellowGourd.v0.json b/Projects/UOContent/Migrations/Server.Items.YellowGourd.v0.json new file mode 100644 index 000000000..c3123d6fa --- /dev/null +++ b/Projects/UOContent/Migrations/Server.Items.YellowGourd.v0.json @@ -0,0 +1,4 @@ +{ + "version": 0, + "type": "Server.Items.YellowGourd" +} \ No newline at end of file