fix: Source generates food. (#1054)
This commit is contained in:
parent
59e1793c2d
commit
864440a05e
119 changed files with 2034 additions and 3890 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
4
Projects/UOContent/Migrations/Server.Items.Apple.v0.json
Normal file
4
Projects/UOContent/Migrations/Server.Items.Apple.v0.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.Apple"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.ApplePie"
|
||||
}
|
||||
4
Projects/UOContent/Migrations/Server.Items.Bacon.v0.json
Normal file
4
Projects/UOContent/Migrations/Server.Items.Bacon.v0.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.Bacon"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.Banana"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.Bananas"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.BowlFlour"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.BreadLoaf"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.BrightlyColoredEggs"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.Cabbage"
|
||||
}
|
||||
4
Projects/UOContent/Migrations/Server.Items.Cake.v0.json
Normal file
4
Projects/UOContent/Migrations/Server.Items.Cake.v0.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.Cake"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.CakeMix"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.Cantaloupe"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.Carrot"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.CheesePizza"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.CheeseSlice"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.CheeseWedge"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.CheeseWheel"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.ChickenLeg"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.CocoaButter"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.CocoaLiquor"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.CocoaPulp"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.Coconut"
|
||||
}
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.CookableFood",
|
||||
"properties": [
|
||||
{
|
||||
"name": "CookingLevel",
|
||||
"type": "int",
|
||||
"rule": "PrimitiveTypeMigrationRule",
|
||||
"ruleArguments": [
|
||||
""
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.CookedBird"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.CookieMix"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.Cookies"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.DarkChocolate"
|
||||
}
|
||||
4
Projects/UOContent/Migrations/Server.Items.Dates.v0.json
Normal file
4
Projects/UOContent/Migrations/Server.Items.Dates.v0.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.Dates"
|
||||
}
|
||||
4
Projects/UOContent/Migrations/Server.Items.Dough.v0.json
Normal file
4
Projects/UOContent/Migrations/Server.Items.Dough.v0.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.Dough"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.EarOfCorn"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.EasterEggs"
|
||||
}
|
||||
4
Projects/UOContent/Migrations/Server.Items.Eggs.v0.json
Normal file
4
Projects/UOContent/Migrations/Server.Items.Eggs.v0.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.Eggs"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.Eggshells"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.EmptyPewterBowl"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.EmptyPewterTub"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.EmptyWoodenBowl"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.EmptyWoodenTub"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.FishSteak"
|
||||
}
|
||||
27
Projects/UOContent/Migrations/Server.Items.Food.v0.json
Normal file
27
Projects/UOContent/Migrations/Server.Items.Food.v0.json
Normal file
|
|
@ -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": [
|
||||
""
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.FrenchBread"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.FriedEggs"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.FruitBasket"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.FruitPie"
|
||||
}
|
||||
4
Projects/UOContent/Migrations/Server.Items.Glass.v0.json
Normal file
4
Projects/UOContent/Migrations/Server.Items.Glass.v0.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.Glass"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.GlassBottle"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.Grapes"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.GreenGourd"
|
||||
}
|
||||
4
Projects/UOContent/Migrations/Server.Items.Ham.v0.json
Normal file
4
Projects/UOContent/Migrations/Server.Items.Ham.v0.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.Ham"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.HoneydewMelon"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.JarHoney"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.LambLeg"
|
||||
}
|
||||
4
Projects/UOContent/Migrations/Server.Items.Lemon.v0.json
Normal file
4
Projects/UOContent/Migrations/Server.Items.Lemon.v0.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.Lemon"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.Lemons"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.Lettuce"
|
||||
}
|
||||
4
Projects/UOContent/Migrations/Server.Items.Lime.v0.json
Normal file
4
Projects/UOContent/Migrations/Server.Items.Lime.v0.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.Lime"
|
||||
}
|
||||
4
Projects/UOContent/Migrations/Server.Items.Limes.v0.json
Normal file
4
Projects/UOContent/Migrations/Server.Items.Limes.v0.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.Limes"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.MeatPie"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.MilkChocolate"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.Muffins"
|
||||
}
|
||||
4
Projects/UOContent/Migrations/Server.Items.Onion.v0.json
Normal file
4
Projects/UOContent/Migrations/Server.Items.Onion.v0.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.Onion"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.OpenCoconut"
|
||||
}
|
||||
4
Projects/UOContent/Migrations/Server.Items.Peach.v0.json
Normal file
4
Projects/UOContent/Migrations/Server.Items.Peach.v0.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.Peach"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.PeachCobbler"
|
||||
}
|
||||
4
Projects/UOContent/Migrations/Server.Items.Pear.v0.json
Normal file
4
Projects/UOContent/Migrations/Server.Items.Pear.v0.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.Pear"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.PewterBowlOfCarrots"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.PewterBowlOfCorn"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.PewterBowlOfLettuce"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.PewterBowlOfPeas"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.PewterBowlOfPotatos"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.Pumpkin"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.PumpkinPie"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.Quiche"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.RawBird"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.RawChickenLeg"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.RawFishSteak"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.RawLambLeg"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.RawRibs"
|
||||
}
|
||||
4
Projects/UOContent/Migrations/Server.Items.Ribs.v0.json
Normal file
4
Projects/UOContent/Migrations/Server.Items.Ribs.v0.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.Ribs"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.RoastPig"
|
||||
}
|
||||
14
Projects/UOContent/Migrations/Server.Items.SackFlour.v0.json
Normal file
14
Projects/UOContent/Migrations/Server.Items.SackFlour.v0.json
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.SackFlour",
|
||||
"properties": [
|
||||
{
|
||||
"name": "Quantity",
|
||||
"type": "int",
|
||||
"rule": "PrimitiveTypeMigrationRule",
|
||||
"ruleArguments": [
|
||||
""
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.SackOfSugar"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.Sausage"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.SausagePizza"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.SheafOfHay"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.SlabOfBacon"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.SmallPumpkin"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.SmallWatermelon"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.SplitCoconut"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.Squash"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.SweetDough"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.Turnip"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": 0,
|
||||
"type": "Server.Items.UnbakedApplePie"
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue