Reorganizes Project (#41)
This commit is contained in:
parent
08bf44af9a
commit
3614a66aee
3499 changed files with 79 additions and 55 deletions
47
Projects/Scripts/Items/Skill Items/Tools/Blowpipe.cs
Normal file
47
Projects/Scripts/Items/Skill Items/Tools/Blowpipe.cs
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
using Server.Engines.Craft;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[Flippable(0xE8A, 0xE89)]
|
||||
public class Blowpipe : BaseTool
|
||||
{
|
||||
[Constructible]
|
||||
public Blowpipe() : base(0xE8A)
|
||||
{
|
||||
Weight = 4.0;
|
||||
Hue = 0x3B9;
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
public Blowpipe(int uses) : base(uses, 0xE8A)
|
||||
{
|
||||
Weight = 4.0;
|
||||
Hue = 0x3B9;
|
||||
}
|
||||
|
||||
public Blowpipe(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override CraftSystem CraftSystem => DefGlassblowing.CraftSystem;
|
||||
|
||||
public override int LabelNumber => 1044608; // blow pipe
|
||||
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
writer.Write(0); // version
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
int version = reader.ReadInt();
|
||||
|
||||
if (Weight == 2.0)
|
||||
Weight = 4.0;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue