I need to add the "%" string to another value too.
Here is the unchanged code:
- Code: Select all
list.Add(string.Format( "- {0}: {1}{2}", SkillBase.GetPropertyName((eProperty)bonusCat, client.Account.Language), bonusValue.ToString("+0 ;-0 ;0 "), //Eden ((bonusCat == (int)eProperty.PowerPool) || (bonusCat >= (int)eProperty.Resist_First && bonusCat <= (int)eProperty.Resist_Last) || (bonusCat >= (int)eProperty.ResCapBonus_First && bonusCat <= (int)eProperty.ResCapBonus_Last) || bonusCat == (int)eProperty.Conversion || bonusCat == (int)eProperty.ExtraHP || bonusCat == (int)eProperty.RealmPoints || bonusCat == (int)eProperty.StyleAbsorb || bonusCat == (int)eProperty.ArcaneSyphon || bonusCat == (int)eProperty.BountyPoints || bonusCat == (int)eProperty.XpPoints) ? ((bonusCat == (int)eProperty.PowerPool) ? LanguageMgr.GetTranslation(client.Account.Language, "DetailDisplayHandler.WriteBonusLine.PowerPool") : "%") : LanguageMgr.GetTranslation(client.Account.Language, "DetailDisplayHandler.WriteBonusLine.Points") ));
I need to add this but as, any idea ?:
- Code: Select all
? ((bonusCat == (int)eProperty.PowerPoolCapBonus) ? LanguageMgr.GetTranslation(client.Account.Language, "DetailDisplayHandler.WriteBonusLine.PowerPoolCapBonus") : "%") //new to exchange string for PowerPoolCapBonus : LanguageMgr.GetTranslation(client.Account.Language, "DetailDisplayHandler.WriteBonusLine.Points")
list.Add(string.Format(
"- {0}: {1}{2}",
SkillBase.GetPropertyName((eProperty)bonusCat, client.Account.Language),
bonusValue.ToString("+0 ;-0 ;0 "), //Eden
((bonusCat == (int)eProperty.PowerPool)
|| (bonusCat == (int)eProperty.PowerPoolCapBonus) //new to exchange PowerPoolCap string
|| (bonusCat >= (int)eProperty.Resist_First && bonusCat <= (int)eProperty.Resist_Last)
|| (bonusCat >= (int)eProperty.ResCapBonus_First && bonusCat <= (int)eProperty.ResCapBonus_Last)
|| bonusCat == (int)eProperty.Conversion
|| bonusCat == (int)eProperty.ExtraHP
|| bonusCat == (int)eProperty.RealmPoints
|| bonusCat == (int)eProperty.StyleAbsorb
|| bonusCat == (int)eProperty.ArcaneSyphon
|| bonusCat == (int)eProperty.BountyPoints
|| bonusCat == (int)eProperty.XpPoints)
? ((bonusCat == (int)eProperty.PowerPoolCapBonus) ? LanguageMgr.GetTranslation(client.Account.Language, "DetailDisplayHandler.WriteBonusLine.PowerPoolCapBonus") : "%") //new to exchange string for PowerPoolCapBonus
: LanguageMgr.GetTranslation(client.Account.Language, "DetailDisplayHandler.WriteBonusLine.Points")
? ((bonusCat == (int)eProperty.PowerPool) ? LanguageMgr.GetTranslation(client.Account.Language, "DetailDisplayHandler.WriteBonusLine.PowerPool") : "%")
: LanguageMgr.GetTranslation(client.Account.Language, "DetailDisplayHandler.WriteBonusLine.Points")
));[/code]
but dont work, so i need a little help here:)
I need to select this for PowerCaps to add a string at the end like this: "%" :
- Code: Select all
? ((bonusCat == (int)eProperty.PowerPoolCapBonus) ? LanguageMgr.GetTranslation(client.Account.Language, "DetailDisplayHandler.WriteBonusLine.PowerPoolCapBonus") : "%") //new to exchange string for PowerPoolCapBonus : LanguageMgr.GetTranslation(client.Account.Language, "DetailDisplayHandler.WriteBonusLine.Points")