Fixed OnSingleClick for named deeded commodities pre-AOS.
This commit is contained in:
parent
3f4a2c4dc8
commit
30402ee3d3
1 changed files with 4 additions and 22 deletions
|
|
@ -127,32 +127,14 @@ namespace Server.Items
|
||||||
|
|
||||||
if ( m_Commodity != null )
|
if ( m_Commodity != null )
|
||||||
{
|
{
|
||||||
int label;
|
string args;
|
||||||
string labelString;
|
|
||||||
|
|
||||||
if ( m_Commodity.Name == null )
|
if ( m_Commodity.Name == null )
|
||||||
{
|
args = String.Format( "#{0}\t{1}", ( m_Commodity is ICommodity ) ? ((ICommodity)m_Commodity).DescriptionNumber : m_Commodity.LabelNumber, m_Commodity.Amount );
|
||||||
label = ( m_Commodity is ICommodity ) ? ((ICommodity)m_Commodity).DescriptionNumber : m_Commodity.LabelNumber;
|
|
||||||
labelString = null;
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
args = String.Format( "{0}\t{1}", m_Commodity.Name, m_Commodity.Amount );
|
||||||
label = 0;
|
|
||||||
labelString = m_Commodity.Name;
|
|
||||||
}
|
|
||||||
|
|
||||||
from.Send( new MessageLocalizedAffix(
|
LabelTo( from, 1060658, args ); // ~1_val~: ~2_val~
|
||||||
Serial,
|
|
||||||
ItemID,
|
|
||||||
MessageType.Label,
|
|
||||||
0x3B2,
|
|
||||||
3,
|
|
||||||
label,
|
|
||||||
labelString,
|
|
||||||
AffixType.Append,
|
|
||||||
String.Format( ": {0}", m_Commodity.Amount ),
|
|
||||||
null )
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue