Pre-AOS compatibility for Valentine's items.

This commit is contained in:
eos 2013-02-10 20:14:38 +00:00
parent cb6e0910fe
commit cdc2ea44da
3 changed files with 43 additions and 0 deletions

View file

@ -6,6 +6,8 @@ namespace Server.Items
{
public class ValentinesCard : Item
{
public override string DefaultName { get { return "a Valentine's card"; } }
[CommandProperty(AccessLevel.GameMaster)]
public virtual string From { get { return m_From; } set { m_From = value; } }
@ -43,6 +45,13 @@ namespace Server.Items
list.Add(m_LabelNumber, String.Format("{0}\t{1}", (m_To != null) ? m_To : Unsigned, (m_From != null) ? m_From : Unsigned));
}
public override void OnSingleClick( Mobile from )
{
base.OnSingleClick( from );
LabelTo( from, m_LabelNumber, String.Format( "{0}\t{1}", ( m_To != null ) ? m_To : Unsigned, ( m_From != null ) ? m_From : Unsigned ) );
}
public override void OnDoubleClick(Mobile from)
{
if (m_To == null)