public override void AddNameProperty( ObjectPropertyList list )
{
//Colored Item Name Mod Start
BaseArmor arm = this;
//AddNamePropertiey Code
string oreType = CraftResources.GetName( m_Resource );
if ( oreType.ToLower() == "none" || oreType.ToLower() == "normal" )
oreType = null;
if ( m_Quality == ArmorQuality.Exceptional )
{
if ( oreType != null )
list.Add( 1053100, "#{0}\t{1}", oreType, GetNameString() ); // exceptional ~1_oretype~ ~2_armortype~
else
list.Add( 1050040, GetNameString() ); // exceptional ~1_ITEMNAME~
}
else
{
int props = 0;
foreach( int i in Enum.GetValues(typeof( AosAttribute ) ) )
{
if ( arm != null && arm.Attributes[ (AosAttribute)i ] > 0 ) ++props;
}
if ( arm != null ) foreach( int i in Enum.GetValues(typeof( AosArmorAttribute ) ) ) {if ( arm.ArmorAttributes[ (AosArmorAttribute)i ] > 0 ) ++props;}
if(this.SkillBonuses.Skill_1_Value > 0) ++props;
if(this.SkillBonuses.Skill_2_Value > 0) ++props;
if(this.SkillBonuses.Skill_3_Value > 0) ++props;
if(this.SkillBonuses.Skill_4_Value > 0) ++props;
if(this.SkillBonuses.Skill_5_Value > 0) ++props;
// Props code display
if( props == 0 ) // No color (Common)
{
list.Add(1053099, "{0}\t{1}", oreType, GetNameString());
}
if( props >= 1 && props <= 2 ) // Green (Uncommon)
{
list.Add(1053099, "<BASEFONT COLOR=#1EFF00>{0}\t{1}<BASEFONT COLOR=#FFFFFF>", oreType, GetNameString());
}
if( props >= 3 && props <= 4 ) // Blue (Rare)
{
list.Add(1053099, "<BASEFONT COLOR=#0070FF>{0}\t{1}<BASEFONT COLOR=#FFFFFF>", oreType, GetNameString());
}
if( props >= 5 && props <= 6 ) // Purple (Epic)
{
list.Add(1053099, "<BASEFONT COLOR=#A335EE>{0}\t{1}<BASEFONT COLOR=#FFFFFF>", oreType, GetNameString());
}
if( props >= 7 && props <= 8 ) // Orange (Legendary)
{
list.Add(1053099, "<BASEFONT COLOR=#FF8000>{0}\t{1}<BASEFONT COLOR=#FFFFFF>", oreType, GetNameString());
}
if( props >= 9 ) // Golden (Artifact)
{
list.Add(1053099, "<BASEFONT COLOR=#E6CC80>{0}\t{1}<BASEFONT COLOR=#FFFFFF>", oreType, GetNameString());
}
}
//Colored Item Name Mod End
}