Various Aquarium fixes - http://jira.runuo.com/browse/RUNUO-102
This commit is contained in:
parent
4e15a2aa4c
commit
4708ec4301
18 changed files with 889 additions and 800 deletions
|
|
@ -5,24 +5,32 @@ using Server.Mobiles;
|
|||
namespace Server.Items
|
||||
{
|
||||
public class VacationWafer : Item
|
||||
{
|
||||
{
|
||||
public const int VacationDays = 7;
|
||||
|
||||
public override int LabelNumber{ get{ return 1074431; } } // An aquarium flake sphere
|
||||
|
||||
|
||||
[Constructable]
|
||||
public VacationWafer() : base( 0x971 )
|
||||
public VacationWafer() : base( 0x973 )
|
||||
{
|
||||
}
|
||||
|
||||
public VacationWafer( Serial serial ) : base( serial )
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void AddNameProperties( ObjectPropertyList list )
|
||||
{
|
||||
base.AddNameProperties( list );
|
||||
|
||||
list.Add( 1074432, VacationDays.ToString() ); // Vacation days: ~1_DAYS~
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.Write( (int) 0 ); // version
|
||||
writer.Write( (int) 1 ); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
|
|
@ -30,6 +38,9 @@ namespace Server.Items
|
|||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadInt();
|
||||
|
||||
if ( version < 1 && ItemID == 0x971 )
|
||||
ItemID = 0x973;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue