Commodity deed updates: added bottles, potions, spell scrolls, zoogifungus. fixed filled hue, removed unnecessary desc prop from ICommodity, pre-aos OSI style labels dont need it.

This commit is contained in:
xavier 2010-11-19 18:59:44 +00:00
parent c9101845f5
commit 15c6828541
36 changed files with 79 additions and 271 deletions

View file

@ -7,15 +7,8 @@ namespace Server.Items
[FlipableAttribute( 0xF95, 0xF96, 0xF97, 0xF98, 0xF99, 0xF9A, 0xF9B, 0xF9C )]
public class BoltOfCloth : Item, IScissorable, IDyable, ICommodity
{
string ICommodity.Description
{
get
{
return String.Format( Amount == 1 ? "{0} bolt of cloth" : "{0} bolts of cloth", Amount );
}
}
int ICommodity.DescriptionNumber { get { return LabelNumber; } }
bool ICommodity.IsDeedable { get { return true; } }
[Constructable]
public BoltOfCloth() : this( 1 )

View file

@ -5,15 +5,8 @@ namespace Server.Items
{
public class Bone : Item, ICommodity
{
string ICommodity.Description
{
get
{
return String.Format( Amount == 1 ? "{0} bone" : "{0} bones", Amount );
}
}
int ICommodity.DescriptionNumber { get { return LabelNumber; } }
bool ICommodity.IsDeedable { get { return true; } }
[Constructable]
public Bone() : this( 1 )

View file

@ -7,15 +7,8 @@ namespace Server.Items
[FlipableAttribute( 0x1766, 0x1768 )]
public class Cloth : Item, IScissorable, IDyable, ICommodity
{
string ICommodity.Description
{
get
{
return String.Format( Amount == 1 ? "{0} piece of cloth" : "{0} pieces of cloth", Amount );
}
}
int ICommodity.DescriptionNumber { get { return LabelNumber; } }
bool ICommodity.IsDeedable { get { return true; } }
public override double DefaultWeight
{

View file

@ -15,15 +15,8 @@ namespace Server.Items
set{ m_Resource = value; InvalidateProperties(); }
}
string ICommodity.Description
{
get
{
return String.Format( Amount == 1 ? "{0} pile of hides" : "{0} piles of hides", Amount );
}
}
int ICommodity.DescriptionNumber { get { return LabelNumber; } }
bool ICommodity.IsDeedable { get { return true; } }
public override void Serialize( GenericWriter writer )
{

View file

@ -15,15 +15,8 @@ namespace Server.Items
set{ m_Resource = value; InvalidateProperties(); }
}
string ICommodity.Description
{
get
{
return String.Format( Amount == 1 ? "{0} piece of {1} leather" : "{0} pieces of {1} leather", Amount, CraftResources.GetName( m_Resource ).ToLower() );
}
}
int ICommodity.DescriptionNumber { get { return LabelNumber; } }
bool ICommodity.IsDeedable { get { return true; } }
public override void Serialize( GenericWriter writer )
{

View file

@ -7,15 +7,8 @@ namespace Server.Items
[FlipableAttribute( 0x1765, 0x1767 )]
public class UncutCloth : Item, IScissorable, IDyable, ICommodity
{
string ICommodity.Description
{
get
{
return String.Format( Amount == 1 ? "{0} piece of cloth" : "{0} pieces of cloth", Amount );
}
}
int ICommodity.DescriptionNumber { get { return LabelNumber; } }
bool ICommodity.IsDeedable { get { return true; } }
public override double DefaultWeight
{