This commit is contained in:
xavier 2011-09-05 01:47:49 +00:00
parent f0e69501ac
commit e332541b61
4 changed files with 40 additions and 4 deletions

View file

@ -249,7 +249,11 @@ namespace Server.Items
UnscaleDurability();
m_Resource = value;
Hue = CraftResources.GetHue( m_Resource );
if (!DefTailoring.IsNonColorable(this.GetType()))
{
Hue = CraftResources.GetHue(m_Resource);
}
Invalidate();
InvalidateProperties();

View file

@ -19,15 +19,16 @@ namespace Server.Items
public override int ArmorBase{ get{ return 20; } }
public override int DefaultWeight { get { return 5; } }
public override ArmorMaterialType MaterialType{ get{ return ArmorMaterialType.Leather; } }
public override CraftResource DefaultResource{ get{ return CraftResource.RegularLeather; } }
public override ArmorMeditationAllowance DefMedAllowance{ get{ return ArmorMeditationAllowance.All; } }
public override ArmorMeditationAllowance DefMedAllowance{ get{ return ArmorMeditationAllowance.None; } }
[Constructable]
public OrcHelm() : base( 0x1F0B )
{
Weight = 1;
}
public OrcHelm( Serial serial ) : base( serial )
@ -44,6 +45,11 @@ namespace Server.Items
{
base.Deserialize( reader );
int version = reader.ReadInt();
if( version == 0 && Weight == 1 )
{
Weight = 0;
}
}
}
}