1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

Use config values from new settings

This commit is contained in:
Dydzio
2023-02-15 23:36:09 +01:00
parent 685d63603d
commit e48a4185ed
5 changed files with 6 additions and 10 deletions

View File

@ -104,7 +104,7 @@ std::string CGCreature::getHoverText(PlayerColor player) const
MetaString ms;
CCreature::CreatureQuantityId monsterQuantityId = stacks.begin()->second->getQuantityID();
int quantityTextIndex = 172 + 3 * (int)monsterQuantityId;
if(settings["adventure"]["numericStackQuantities"].Bool())
if(settings["gameTweaks"]["numericCreaturesQuantities"].Bool())
ms << CCreature::getQuantityRangeStringForId(monsterQuantityId);
else
ms.addTxt(MetaString::ARRAY_TXT, quantityTextIndex);