public static string GetBonusStatString(BonusStatIndex statIndex) { switch (statIndex) { case BonusStatIndex.MANA: return(StaticDB.GetString("ITEM_MOD_MANA_SHORT", null)); case BonusStatIndex.HEALTH: return(StaticDB.GetString("ITEM_MOD_HEALTH_SHORT", null)); default: if (statIndex != BonusStatIndex.MASTERY_RATING) { return(statIndex.ToString()); } return(StaticDB.GetString("ITEM_MOD_MASTERY_RATING", null)); case BonusStatIndex.AGILITY: return(StaticDB.GetString("ITEM_MOD_AGILITY_SHORT", null)); case BonusStatIndex.STRENGTH: return(StaticDB.GetString("ITEM_MOD_STRENGTH_SHORT", null)); case BonusStatIndex.INTELLECT: return(StaticDB.GetString("ITEM_MOD_INTELLECT_SHORT", null)); case BonusStatIndex.STAMINA: return(StaticDB.GetString("ITEM_MOD_STAMINA_SHORT", null)); case BonusStatIndex.DEFENSE_SKILL_RATING: return(StaticDB.GetString("ITEM_MOD_DEFENSE_SKILL_RATING_SHORT", null)); case BonusStatIndex.DODGE_RATING: return(StaticDB.GetString("ITEM_MOD_DODGE_RATING_SHORT", null)); case BonusStatIndex.PARRY_RATING: return(StaticDB.GetString("ITEM_MOD_PARRY_RATING_SHORT", null)); case BonusStatIndex.BLOCK_RATING: return(StaticDB.GetString("ITEM_MOD_BLOCK_RATING_SHORT", null)); case BonusStatIndex.HIT_MELEE_RATING: return(StaticDB.GetString("ITEM_MOD_HIT_MELEE_RATING_SHORT", null)); case BonusStatIndex.HIT_RANGED_RATING: return(StaticDB.GetString("ITEM_MOD_HIT_RANGED_RATING_SHORT", null)); case BonusStatIndex.HIT_SPELL_RATING: return(StaticDB.GetString("ITEM_MOD_HIT_SPELL_RATING_SHORT", null)); case BonusStatIndex.CRIT_MELEE_RATING: return(StaticDB.GetString("ITEM_MOD_CRIT_MELEE_RATING_SHORT", null)); case BonusStatIndex.CRIT_RANGED_RATING: return(StaticDB.GetString("ITEM_MOD_CRIT_RANGED_RATING_SHORT", null)); case BonusStatIndex.CRIT_SPELL_RATING: return(StaticDB.GetString("ITEM_MOD_CRIT_SPELL_RATING_SHORT", null)); case BonusStatIndex.HIT_RATING: return(StaticDB.GetString("ITEM_MOD_HIT_RATING_SHORT", null)); case BonusStatIndex.CRIT_RATING: return(StaticDB.GetString("ITEM_MOD_CRIT_RATING_SHORT", null)); case BonusStatIndex.RESILIENCE_RATING: return(StaticDB.GetString("ITEM_MOD_RESILIENCE_RATING_SHORT", null)); case BonusStatIndex.HASTE_RATING: return(StaticDB.GetString("ITEM_MOD_HASTE_RATING_SHORT", null)); case BonusStatIndex.EXPERTISE_RATING: return(StaticDB.GetString("ITEM_MOD_EXPERTISE_RATING_SHORT", null)); case BonusStatIndex.ATTACK_POWER: return(StaticDB.GetString("ITEM_MOD_ATTACK_POWER_SHORT", null)); case BonusStatIndex.VERSATILITY: return(StaticDB.GetString("ITEM_MOD_VERSATILITY", null)); } }
public static string GetBonusStatString(BonusStatIndex statIndex) { switch (statIndex) { case BonusStatIndex.MANA: return(StaticDB.GetString("ITEM_MOD_MANA_SHORT", null)); case BonusStatIndex.HEALTH: return(StaticDB.GetString("ITEM_MOD_HEALTH_SHORT", null)); case BonusStatIndex.ENDURANCE: case BonusStatIndex.SPIRIT_UNUSED: case BonusStatIndex.ENERGY: case BonusStatIndex.RAGE: case BonusStatIndex.FOCUS: case BonusStatIndex.WEAPON_SKILL_RATING_OBSOLETE: case BonusStatIndex.HIT_TAKEN_MELEE_RATING_OBSOLETE: case BonusStatIndex.HIT_TAKEN_RANGED_RATING_OBSOLETE: case BonusStatIndex.HIT_TAKEN_SPELL_RATING_OBSOLETE: case BonusStatIndex.CRIT_TAKEN_MELEE_RATING_OBSOLETE: case BonusStatIndex.CRIT_TAKEN_RANGED_RATING_OBSOLETE: case BonusStatIndex.CRIT_TAKEN_SPELL_RATING_OBSOLETE: case BonusStatIndex.HASTE_MELEE_RATING_OBSOLETE: case BonusStatIndex.HASTE_RANGED_RATING_OBSOLETE: case BonusStatIndex.HASTE_SPELL_RATING_OBSOLETE: case BonusStatIndex.HIT_TAKEN_RATING_OBSOLETE: case BonusStatIndex.CRIT_TAKEN_RATING_OBSOLETE: case BonusStatIndex.RANGED_ATTACK_POWER: IL_AC: if (statIndex != BonusStatIndex.MASTERY_RATING) { return(statIndex.ToString()); } return(StaticDB.GetString("ITEM_MOD_MASTERY_RATING", null)); case BonusStatIndex.AGILITY: return(StaticDB.GetString("ITEM_MOD_AGILITY_SHORT", null)); case BonusStatIndex.STRENGTH: return(StaticDB.GetString("ITEM_MOD_STRENGTH_SHORT", null)); case BonusStatIndex.INTELLECT: return(StaticDB.GetString("ITEM_MOD_INTELLECT_SHORT", null)); case BonusStatIndex.STAMINA: return(StaticDB.GetString("ITEM_MOD_STAMINA_SHORT", null)); case BonusStatIndex.DEFENSE_SKILL_RATING: return(StaticDB.GetString("ITEM_MOD_DEFENSE_SKILL_RATING_SHORT", null)); case BonusStatIndex.DODGE_RATING: return(StaticDB.GetString("ITEM_MOD_DODGE_RATING_SHORT", null)); case BonusStatIndex.PARRY_RATING: return(StaticDB.GetString("ITEM_MOD_PARRY_RATING_SHORT", null)); case BonusStatIndex.BLOCK_RATING: return(StaticDB.GetString("ITEM_MOD_BLOCK_RATING_SHORT", null)); case BonusStatIndex.HIT_MELEE_RATING: return(StaticDB.GetString("ITEM_MOD_HIT_MELEE_RATING_SHORT", null)); case BonusStatIndex.HIT_RANGED_RATING: return(StaticDB.GetString("ITEM_MOD_HIT_RANGED_RATING_SHORT", null)); case BonusStatIndex.HIT_SPELL_RATING: return(StaticDB.GetString("ITEM_MOD_HIT_SPELL_RATING_SHORT", null)); case BonusStatIndex.CRIT_MELEE_RATING: return(StaticDB.GetString("ITEM_MOD_CRIT_MELEE_RATING_SHORT", null)); case BonusStatIndex.CRIT_RANGED_RATING: return(StaticDB.GetString("ITEM_MOD_CRIT_RANGED_RATING_SHORT", null)); case BonusStatIndex.CRIT_SPELL_RATING: return(StaticDB.GetString("ITEM_MOD_CRIT_SPELL_RATING_SHORT", null)); case BonusStatIndex.HIT_RATING: return(StaticDB.GetString("ITEM_MOD_HIT_RATING_SHORT", null)); case BonusStatIndex.CRIT_RATING: return(StaticDB.GetString("ITEM_MOD_CRIT_RATING_SHORT", null)); case BonusStatIndex.RESILIENCE_RATING: return(StaticDB.GetString("ITEM_MOD_RESILIENCE_RATING_SHORT", null)); case BonusStatIndex.HASTE_RATING: return(StaticDB.GetString("ITEM_MOD_HASTE_RATING_SHORT", null)); case BonusStatIndex.EXPERTISE_RATING: return(StaticDB.GetString("ITEM_MOD_EXPERTISE_RATING_SHORT", null)); case BonusStatIndex.ATTACK_POWER: return(StaticDB.GetString("ITEM_MOD_ATTACK_POWER_SHORT", null)); case BonusStatIndex.VERSATILITY: return(StaticDB.GetString("ITEM_MOD_VERSATILITY", null)); } goto IL_AC; }