This commit is contained in:
mark 2010-12-06 06:45:45 +00:00
parent 34d969712e
commit d444b9ba5c
70 changed files with 569 additions and 495 deletions

View file

@ -75,8 +75,14 @@ namespace Server.Items
{
MultiComponentList mcl = this.Components;
if ( mcl.List.Length > 0 )
return 1020000 + (mcl.List[0].m_ItemID & 0x3FFF);
if ( mcl.List.Length > 0 ) {
int id = mcl.List[0].m_ItemID;
if ( id < 0x4000 )
return 1020000 + id;
else
return 1078872 + id;
}
return base.LabelNumber;
}
@ -149,7 +155,7 @@ namespace Server.Items
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
writer.Write( (int) 1 ); // version
}
public override void Deserialize( GenericReader reader )
@ -157,6 +163,12 @@ namespace Server.Items
base.Deserialize( reader );
int version = reader.ReadInt();
if ( version == 0 ) {
if ( ItemID >= 0x4000 ) {
ItemID -= 0x4000;
}
}
}
}
}