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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user