servuo/Scripts/Items/Resource/Fish.cs
Dexter 497fd05cfd Treasures of Khaldun Complete. A couple things to note:
I did not put all the decorations in. This is annoying, shard owners can finish it.
2019-02-21 20:01:57 -07:00

55 lines
No EOL
1.1 KiB
C#

using System;
namespace Server.Items
{
public class Fish : Item, ICarvable
{
[Constructable]
public Fish()
: this(1)
{
}
[Constructable]
public Fish(int amount)
: base(Utility.Random(0x09CC, 4))
{
this.Stackable = true;
this.Weight = 1.0;
this.Amount = amount;
}
public Fish(Serial serial)
: base(serial)
{
}
public bool Carve(Mobile from, Item item)
{
var fish = new RawFishSteak();
if (HasSocket<Caddellite>())
{
fish.AttachSocket(new Caddellite());
}
base.ScissorHelper(from, fish, 4);
return true;
}
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write((int)0); // version
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
}
}
}