Fixed issue with secured dye tubs in houses

http://www.uodemise.com/forum/showthread.php?t=147193

Smith/Tailor PS should not be cursed
http://www.uodemise.com/forum/showthread.php?t=148415

Large crafting system overhaul
http://www.uodemise.com/forum/showthread.php?t=119342
This commit is contained in:
xavier 2010-10-02 15:25:30 +00:00
parent f90c09ef55
commit 4df455f33c
132 changed files with 4914 additions and 1012 deletions

View file

@ -4,12 +4,12 @@ namespace Server.Items
{
[Furniture]
[Flipable( 0xB2D, 0xB2C )]
public class WoodenBench : Item
public class WoodenBench : BaseCraftableItem
{
[Constructable]
public WoodenBench() : base( 0xB2D )
public WoodenBench() : base( 0xB2C )
{
Weight = 6;
Weight = 1;
}
public WoodenBench(Serial serial) : base(serial)
@ -27,7 +27,10 @@ namespace Server.Items
{
base.Deserialize(reader);
int version = reader.ReadInt();
int version = ( InheritsItem ? OldVersion : reader.ReadInt() ); //Required for BaseCraftableItem insertion
if ( Weight == 6 )
Weight = 1;
}
}
}

View file

@ -4,10 +4,10 @@ namespace Server.Items
{
[Furniture]
[Flipable( 0xB4F, 0xB4E, 0xB50, 0xB51 )]
public class FancyWoodenChairCushion : Item
public class FancyWoodenChairCushion : BaseCraftableItem
{
[Constructable]
public FancyWoodenChairCushion() : base(0xB4F)
public FancyWoodenChairCushion() : base(0xB4E)
{
Weight = 20.0;
}
@ -27,7 +27,7 @@ namespace Server.Items
{
base.Deserialize(reader);
int version = reader.ReadInt();
int version = ( InheritsItem ? OldVersion : reader.ReadInt() ); //Required for BaseCraftableItem insertion
if ( Weight == 6.0 )
Weight = 20.0;
@ -36,10 +36,10 @@ namespace Server.Items
[Furniture]
[Flipable( 0xB53, 0xB52, 0xB54, 0xB55 )]
public class WoodenChairCushion : Item
public class WoodenChairCushion : BaseCraftableItem
{
[Constructable]
public WoodenChairCushion() : base(0xB53)
public WoodenChairCushion() : base(0xB52)
{
Weight = 20.0;
}
@ -59,7 +59,7 @@ namespace Server.Items
{
base.Deserialize(reader);
int version = reader.ReadInt();
int version = ( InheritsItem ? OldVersion : reader.ReadInt() ); //Required for BaseCraftableItem insertion
if ( Weight == 6.0 )
Weight = 20.0;
@ -68,10 +68,10 @@ namespace Server.Items
[Furniture]
[Flipable( 0xB57, 0xB56, 0xB59, 0xB58 )]
public class WoodenChair : Item
public class WoodenChair : BaseCraftableItem
{
[Constructable]
public WoodenChair() : base(0xB57)
public WoodenChair() : base(0xB56)
{
Weight = 20.0;
}
@ -91,7 +91,7 @@ namespace Server.Items
{
base.Deserialize(reader);
int version = reader.ReadInt();
int version = ( InheritsItem ? OldVersion : reader.ReadInt() ); //Required for BaseCraftableItem insertion
if ( Weight == 6.0 )
Weight = 20.0;
@ -100,10 +100,10 @@ namespace Server.Items
[Furniture]
[Flipable( 0xB5B, 0xB5A, 0xB5C, 0xB5D )]
public class BambooChair : Item
public class BambooChair : BaseCraftableItem
{
[Constructable]
public BambooChair() : base(0xB5B)
public BambooChair() : base(0xB5A)
{
Weight = 20.0;
}
@ -123,7 +123,7 @@ namespace Server.Items
{
base.Deserialize(reader);
int version = reader.ReadInt();
int version = ( InheritsItem ? OldVersion : reader.ReadInt() ); //Required for BaseCraftableItem insertion
if ( Weight == 6.0 )
Weight = 20.0;
@ -132,8 +132,9 @@ namespace Server.Items
[DynamicFliping]
[Flipable(0x1218, 0x1219, 0x121A, 0x121B)]
public class StoneChair : Item
public class StoneChair : BaseCraftableItem
{
public override CraftResource DefaultResource{ get{ return CraftResource.Iron; } }
[Constructable]
public StoneChair() : base(0x1218)
{
@ -155,13 +156,13 @@ namespace Server.Items
{
base.Deserialize(reader);
int version = reader.ReadInt();
int version = ( InheritsItem ? OldVersion : reader.ReadInt() ); //Required for BaseCraftableItem insertion
}
}
[DynamicFliping]
[Furniture]
[Flipable( 0x2DE3, 0x2DE4, 0x2DE5, 0x2DE6 )]
public class OrnateElvenChair : Item
public class OrnateElvenChair : BaseCraftableItem
{
[Constructable]
public OrnateElvenChair() : base( 0x2DE3 )
@ -184,16 +185,16 @@ namespace Server.Items
{
base.Deserialize( reader );
int version = reader.ReadEncodedInt();
int version = ( InheritsItem ? OldVersion : reader.ReadEncodedInt() ); //Required for BaseCraftableItem insertion
}
}
[DynamicFliping]
[Furniture]
[Flipable( 0x2DEB, 0x2DEC, 0x2DED, 0x2DEE )]
public class BigElvenChair : Item
public class BigElvenChair : BaseCraftableItem
{
[Constructable]
public BigElvenChair() : base( 0x2DEB )
public BigElvenChair() : base( 0x2DED )
{
}
@ -212,13 +213,13 @@ namespace Server.Items
{
base.Deserialize( reader );
int version = reader.ReadEncodedInt();
int version = ( InheritsItem ? OldVersion : reader.ReadEncodedInt() ); //Required for BaseCraftableItem insertion
}
}
[DynamicFliping]
[Furniture]
[Flipable( 0x2DF5, 0x2DF6 )]
public class ElvenReadingChair : Item
public class ElvenReadingChair : BaseCraftableItem
{
[Constructable]
public ElvenReadingChair() : base( 0x2DF5 )
@ -240,7 +241,7 @@ namespace Server.Items
{
base.Deserialize( reader );
int version = reader.ReadEncodedInt();
int version = ( InheritsItem ? OldVersion : reader.ReadEncodedInt() ); //Required for BaseCraftableItem insertion
}
}
}

View file

@ -3,7 +3,7 @@ using System;
namespace Server.Items
{
[Furniture]
public class Stool : Item
public class Stool : BaseCraftableItem
{
[Constructable]
public Stool() : base( 0xA2A )
@ -26,7 +26,7 @@ namespace Server.Items
{
base.Deserialize(reader);
int version = reader.ReadInt();
int version = ( InheritsItem ? OldVersion : reader.ReadInt() ); //Required for BaseCraftableItem insertion
if ( Weight == 6.0 )
Weight = 10.0;
@ -34,12 +34,12 @@ namespace Server.Items
}
[Furniture]
public class FootStool : Item
public class FootStool : BaseCraftableItem
{
[Constructable]
public FootStool() : base( 0xB5E )
{
Weight = 6.0;
Weight = 10.0;
}
public FootStool(Serial serial) : base(serial)
@ -57,7 +57,7 @@ namespace Server.Items
{
base.Deserialize(reader);
int version = reader.ReadInt();
int version = ( InheritsItem ? OldVersion : reader.ReadInt() ); //Required for BaseCraftableItem insertion
if ( Weight == 6.0 )
Weight = 10.0;

View file

@ -4,7 +4,7 @@ namespace Server.Items
{
[Furniture]
[Flipable(0xB32, 0xB33)]
public class Throne : Item
public class Throne : BaseCraftableItem
{
[Constructable]
public Throne() : base(0xB33)
@ -27,7 +27,7 @@ namespace Server.Items
{
base.Deserialize(reader);
int version = reader.ReadInt();
int version = ( InheritsItem ? OldVersion : reader.ReadInt() ); //Required for BaseCraftableItem insertion
if ( Weight == 6.0 )
Weight = 1.0;
@ -36,10 +36,10 @@ namespace Server.Items
[Furniture]
[Flipable( 0xB2E, 0xB2F, 0xB31, 0xB30 )]
public class WoodenThrone : Item
public class WoodenThrone : BaseCraftableItem
{
[Constructable]
public WoodenThrone() : base(0xB2E)
public WoodenThrone() : base(0xB2F)
{
Weight = 15.0;
}
@ -59,7 +59,7 @@ namespace Server.Items
{
base.Deserialize(reader);
int version = reader.ReadInt();
int version = ( InheritsItem ? OldVersion : reader.ReadInt() ); //Required for BaseCraftableItem insertion
if ( Weight == 6.0 )
Weight = 15.0;