branch sync
This commit is contained in:
parent
0b19ae183e
commit
162cf6f0a9
13 changed files with 226 additions and 40 deletions
|
|
@ -639,21 +639,7 @@ namespace Server.Items
|
|||
{
|
||||
List<EquipInfoAttribute> attrs = new List<EquipInfoAttribute>();
|
||||
|
||||
if ( DisplayLootType )
|
||||
{
|
||||
if ( LootType == LootType.Blessed )
|
||||
attrs.Add( new EquipInfoAttribute( 1038021 ) ); // blessed
|
||||
else if ( LootType == LootType.Cursed )
|
||||
attrs.Add( new EquipInfoAttribute( 1049643 ) ); // cursed
|
||||
}
|
||||
|
||||
#region Factions
|
||||
if ( m_FactionState != null )
|
||||
attrs.Add( new EquipInfoAttribute( 1041350 ) ); // faction item
|
||||
#endregion
|
||||
|
||||
if ( m_Quality == ClothingQuality.Exceptional )
|
||||
attrs.Add( new EquipInfoAttribute( 1018305 - (int)m_Quality ) );
|
||||
AddEquipInfoAttributes( from, attrs );
|
||||
|
||||
int number;
|
||||
|
||||
|
|
@ -675,6 +661,25 @@ namespace Server.Items
|
|||
from.Send( new DisplayEquipmentInfo( this, eqInfo ) );
|
||||
}
|
||||
|
||||
public virtual void AddEquipInfoAttributes( Mobile from, List<EquipInfoAttribute> attrs )
|
||||
{
|
||||
if ( DisplayLootType )
|
||||
{
|
||||
if ( LootType == LootType.Blessed )
|
||||
attrs.Add( new EquipInfoAttribute( 1038021 ) ); // blessed
|
||||
else if ( LootType == LootType.Cursed )
|
||||
attrs.Add( new EquipInfoAttribute( 1049643 ) ); // cursed
|
||||
}
|
||||
|
||||
#region Factions
|
||||
if ( m_FactionState != null )
|
||||
attrs.Add( new EquipInfoAttribute( 1041350 ) ); // faction item
|
||||
#endregion
|
||||
|
||||
if ( m_Quality == ClothingQuality.Exceptional )
|
||||
attrs.Add( new EquipInfoAttribute( 1018305 - (int)m_Quality ) );
|
||||
}
|
||||
|
||||
#region Serialization
|
||||
private static void SetSaveFlag( ref SaveFlag flags, SaveFlag toSet, bool setIf )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue