mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Use config values from new settings
This commit is contained in:
@@ -377,7 +377,7 @@ std::string CCreatureSet::getRoughAmount(SlotID slot, int mode) const
|
||||
|
||||
if((int)quantity)
|
||||
{
|
||||
if(settings["adventure"]["numericStackQuantities"].Bool())
|
||||
if(settings["gameTweaks"]["numericCreaturesQuantities"].Bool())
|
||||
return CCreature::getQuantityRangeStringForId(quantity);
|
||||
|
||||
return VLC->generaltexth->arraytxt[(174 + mode) + 3*(int)quantity];
|
||||
@@ -825,7 +825,7 @@ std::string CStackInstance::getQuantityTXT(bool capitalized) const
|
||||
|
||||
if ((int)quantity)
|
||||
{
|
||||
if(settings["adventure"]["numericStackQuantities"].Bool())
|
||||
if(settings["gameTweaks"]["numericCreaturesQuantities"].Bool())
|
||||
return CCreature::getQuantityRangeStringForId(quantity);
|
||||
|
||||
return VLC->generaltexth->arraytxt[174 + (int)quantity*3 - 1 - capitalized];
|
||||
|
||||
Reference in New Issue
Block a user