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

@ -17,22 +17,13 @@ namespace Server.Items
Amount = amount;
}
string ICommodity.Description
{
get
{
return String.Format( "blank scroll: {0}", Amount );
}
}
int ICommodity.DescriptionNumber { get { return LabelNumber; } }
bool ICommodity.IsDeedable { get { return (Core.ML); } }
public BlankScroll( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );

View file

@ -2,8 +2,11 @@ using System;
namespace Server.Items
{
public class Bottle : Item
public class Bottle : Item, ICommodity
{
int ICommodity.DescriptionNumber { get { return LabelNumber; } }
bool ICommodity.IsDeedable { get { return (Core.ML); } }
[Constructable]
public Bottle() : this( 1 )
{

View file

@ -35,7 +35,7 @@ namespace Server.Items
ConfusionBlastGreater
}
public abstract class BasePotion : Item, ICraftable
public abstract class BasePotion : Item, ICraftable, ICommodity
{
private PotionEffect m_PotionEffect;
@ -52,6 +52,9 @@ namespace Server.Items
}
}
int ICommodity.DescriptionNumber { get { return LabelNumber; } }
bool ICommodity.IsDeedable { get { return (Core.ML); } }
public override int LabelNumber{ get{ return 1041314 + (int)m_PotionEffect; } }
public BasePotion( int itemID, PotionEffect effect ) : base( itemID )

View file

@ -6,7 +6,7 @@ using Server.ContextMenus;
namespace Server.Items
{
public class SpellScroll : Item
public class SpellScroll : Item, ICommodity
{
private int m_SpellID;
@ -18,6 +18,9 @@ namespace Server.Items
}
}
int ICommodity.DescriptionNumber { get { return LabelNumber; } }
bool ICommodity.IsDeedable { get { return (Core.ML); } }
public SpellScroll( Serial serial ) : base( serial )
{
}