1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-10 00:43:59 +02:00

Following review

This commit is contained in:
MichalZr6 2024-11-19 10:57:20 +01:00
parent ab1f1d6d99
commit f823b8addf

View File

@ -18,7 +18,7 @@ VCMI_LIB_NAMESPACE_BEGIN
void HillFortInstanceConstructor::initTypeData(const JsonNode & config)
{
parameters = config;
if(getModScope() != "core")
if(!parameters["unavailableUpgradeMessage"].isNull())
VLC->generaltexth->registerString(parameters.getModScope(), TextIdentifier(getBaseTextID(), "unavailableUpgradeMessage"), parameters["unavailableUpgradeMessage"].String());
VLC->generaltexth->registerString(parameters.getModScope(), TextIdentifier(getBaseTextID(), "description"), parameters["description"].String());