mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-25 16:43:33 +00:00
Correction to display of 0-weight tooltips
This commit is contained in:
parent
160da0b149
commit
506d0e8e54
@ -217,16 +217,19 @@ namespace MWClass
|
||||
std::string text;
|
||||
|
||||
// get armor type string (light/medium/heavy)
|
||||
int armorType = getEquipmentSkill(ptr);
|
||||
std::string typeText;
|
||||
if (armorType == ESM::Skill::LightArmor)
|
||||
typeText = "#{sLight}";
|
||||
else if (armorType == ESM::Skill::MediumArmor)
|
||||
typeText = "#{sMedium}";
|
||||
else if (armorType == ESM::Skill::HeavyArmor)
|
||||
typeText = "#{sHeavy}";
|
||||
else // if (armorType == ESM::Skill::Unarmored)
|
||||
if (ref->mBase->mData.mWeight == 0)
|
||||
typeText = "";
|
||||
else
|
||||
{
|
||||
int armorType = getEquipmentSkill(ptr);
|
||||
if (armorType == ESM::Skill::LightArmor)
|
||||
typeText = "#{sLight}";
|
||||
else if (armorType == ESM::Skill::MediumArmor)
|
||||
typeText = "#{sMedium}";
|
||||
else
|
||||
typeText = "#{sHeavy}";
|
||||
}
|
||||
|
||||
text += "\n#{sArmorRating}: " + MWGui::ToolTips::toString(getEffectiveArmorRating(ptr,
|
||||
MWMechanics::getPlayer()));
|
||||
|
Loading…
x
Reference in New Issue
Block a user