1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

Random selection for primary skills

This commit is contained in:
nordsoft
2023-04-07 20:34:01 +04:00
committed by Nordsoft91
parent bb915b0e7e
commit 53e16c7e22

View File

@@ -124,6 +124,12 @@ namespace JsonRandom
{
ret.push_back(loadValue(value[name], rng));
}
if(!value["random"].isNull())
{
*RandomGeneratorUtil::nextItem(ret, rng) = loadValue(value["random"], rng);
}
return ret;
}