Reorganizes Project (#41)
This commit is contained in:
parent
08bf44af9a
commit
3614a66aee
3499 changed files with 79 additions and 55 deletions
38
Projects/Scripts/Items/Misc/TribalBerry.cs
Normal file
38
Projects/Scripts/Items/Misc/TribalBerry.cs
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
namespace Server.Items
|
||||
{
|
||||
public class TribalBerry : Item
|
||||
{
|
||||
[Constructible]
|
||||
public TribalBerry(int amount = 1) : base(0x9D0)
|
||||
{
|
||||
Weight = 1.0;
|
||||
Stackable = true;
|
||||
Amount = amount;
|
||||
Hue = 6;
|
||||
}
|
||||
|
||||
public TribalBerry(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override int LabelNumber => 1040001; // tribal berry
|
||||
|
||||
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
writer.Write(0);
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
int version = reader.ReadInt();
|
||||
|
||||
if (Hue == 4)
|
||||
Hue = 6;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue