Breaking change
removed rulest:
extraNerdyPediaInfo: true/false
new ruleset:
extraNerdyPediaInfoType: 0 # feature disabled (default)
extraNerdyPediaInfoType: 1 # enabled with standard translations
extraNerdyPediaInfoType: 2 # enabled with abbreviations
Standard translations map:
const std::map<std::string, std::string> StatsForNerdsState::translationMap =
{
{ "flatOne", "" }, // no translation
{ "flatHundred", "" }, // no translation
{ "strength", "STR_STRENGTH" },
{ "psi", "STR_PSI_SKILL_AND_PSI_STRENGTH" }, // new, STR_PSIONIC_SKILL * STR_PSIONIC_STRENGTH
{ "psiSkill", "STR_PSIONIC_SKILL" },
{ "psiStrength", "STR_PSIONIC_STRENGTH" },
{ "throwing", "STR_THROWING_ACCURACY" },
{ "bravery", "STR_BRAVERY" },
{ "firing", "STR_FIRING_ACCURACY" },
{ "health", "STR_HEALTH" },
{ "mana", "STR_MANA_POOL" },
{ "tu", "STR_TIME_UNITS" },
{ "reactions", "STR_REACTIONS" },
{ "stamina", "STR_STAMINA" },
{ "melee", "STR_MELEE_ACCURACY" },
{ "strengthMelee", "STR_STRENGTH_AND_MELEE_ACCURACY" }, // new, STR_STRENGTH * STR_MELEE_ACCURACY
{ "strengthThrowing", "STR_STRENGTH_AND_THROWING_ACCURACY" }, // new, STR_STRENGTH * STR_THROWING_ACCURACY
{ "firingReactions", "STR_FIRING_ACCURACY_AND_REACTIONS" }, // new, STR_FIRING_ACCURACY * STR_REACTIONS
{ "rank", "STR_RANK" },
{ "fatalWounds", "STR_FATAL_WOUNDS" },
{ "healthCurrent", "STR_HEALTH_CURRENT" }, // new, current HP (i.e. not max HP)
{ "manaCurrent", "STR_MANA_CURRENT" },
{ "tuCurrent", "STR_TIME_UNITS_CURRENT" }, // new
{ "energyCurrent", "STR_ENERGY" },
{ "moraleCurrent", "STR_MORALE" },
{ "stunCurrent", "STR_STUN_LEVEL_CURRENT" }, // new
{ "healthNormalized", "STR_HEALTH_NORMALIZED" }, // new, current HP normalized to [0, 1] interval
{ "manaNormalized", "STR_MANA_NORMALIZED" },
{ "tuNormalized", "STR_TIME_UNITS_NORMALIZED" }, // new
{ "energyNormalized", "STR_ENERGY_NORMALIZED" }, // new
{ "moraleNormalized", "STR_MORALE_NORMALIZED" }, // new
{ "stunNormalized", "STR_STUN_LEVEL_NORMALIZED" }, // new
{ "energyRegen", "STR_ENERGY_REGENERATION" }, // new, special stat returning vanilla energy regen
};
Abbreviated translations map:
const std::map<std::string, std::string> StatsForNerdsState::shortTranslationMap =
{
{ "flatOne", "" }, // no translation
{ "flatHundred", "" }, // no translation
{ "strength", "STR_STRENGTH_ABBREVIATION" },
{ "psi", "STR_PSI_SKILL_AND_PSI_STRENGTH_ABBREVIATION" },
{ "psiSkill", "STR_PSIONIC_SKILL_ABBREVIATION" },
{ "psiStrength", "STR_PSIONIC_STRENGTH_ABBREVIATION" },
{ "throwing", "STR_THROWING_ACCURACY_ABBREVIATION" },
{ "bravery", "STR_BRAVERY_ABBREVIATION" },
{ "firing", "STR_FIRING_ACCURACY_ABBREVIATION" },
{ "health", "STR_HEALTH_ABBREVIATION" },
{ "mana", "STR_MANA_ABBREVIATION" },
{ "tu", "STR_TIME_UNITS_ABBREVIATION" },
{ "reactions", "STR_REACTIONS_ABBREVIATION" },
{ "stamina", "STR_STAMINA_ABBREVIATION" },
{ "melee", "STR_MELEE_ACCURACY_ABBREVIATION" },
{ "strengthMelee", "STR_STRENGTH_AND_MELEE_ACCURACY_ABBREVIATION" },
{ "strengthThrowing", "STR_STRENGTH_AND_THROWING_ACCURACY_ABBREVIATION" },
{ "firingReactions", "STR_FIRING_ACCURACY_AND_REACTIONS_ABBREVIATION" },
{ "rank", "STR_RANK" },
{ "fatalWounds", "STR_FATAL_WOUNDS" },
{ "healthCurrent", "STR_HEALTH_CURRENT_ABBREVIATION" },
{ "manaCurrent", "STR_MANA_CURRENT_ABBREVIATION" },
{ "tuCurrent", "STR_TIME_UNITS_CURRENT_ABBREVIATION" },
{ "energyCurrent", "STR_ENERGY" },
{ "moraleCurrent", "STR_MORALE" },
{ "stunCurrent", "STR_STUN_LEVEL_CURRENT_ABBREVIATION" },
{ "healthNormalized", "STR_HEALTH_NORMALIZED_ABBREVIATION" },
{ "manaNormalized", "STR_MANA_NORMALIZED_ABBREVIATION" },
{ "tuNormalized", "STR_TIME_UNITS_NORMALIZED_ABBREVIATION" },
{ "energyNormalized", "STR_ENERGY_NORMALIZED_ABBREVIATION" },
{ "moraleNormalized", "STR_MORALE_NORMALIZED_ABBREVIATION" },
{ "stunNormalized", "STR_STUN_LEVEL_NORMALIZED_ABBREVIATION" },
{ "energyRegen", "STR_ENERGY_REGENERATION_ABBREVIATION" },
};
New default EN translations added:
STR_PSI_SKILL_AND_PSI_STRENGTH_ABBREVIATION: "PSK*PST"
STR_STRENGTH_AND_MELEE_ACCURACY_ABBREVIATION: "STR*MEL"
STR_STRENGTH_AND_THROWING_ACCURACY_ABBREVIATION: "STR*THR"
STR_FIRING_ACCURACY_AND_REACTIONS_ABBREVIATION: "ACC*REA"
STR_HEALTH_CURRENT_ABBREVIATION: "CURRENT HEALTH"
STR_MANA_CURRENT_ABBREVIATION: "CURRENT MANA"
STR_TIME_UNITS_CURRENT_ABBREVIATION: "CURRENT TIME UNITS"
STR_STUN_LEVEL_CURRENT_ABBREVIATION: "CURRENT STUN LEVEL"
STR_HEALTH_NORMALIZED_ABBREVIATION: "NORMALIZED HEALTH"
STR_MANA_NORMALIZED_ABBREVIATION: "NORMALIZED MANA"
STR_TIME_UNITS_NORMALIZED_ABBREVIATION: "NORMALIZED TIME UNITS"
STR_ENERGY_NORMALIZED_ABBREVIATION: "NORMALIZED ENERGY"
STR_MORALE_NORMALIZED_ABBREVIATION: "NORMALIZED MORALE"
STR_STUN_LEVEL_NORMALIZED_ABBREVIATION: "NORMALIZED STUN LEVEL"
STR_ENERGY_REGENERATION_ABBREVIATION: "ENERGY REGENERATION"