mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-03 13:01:33 +02:00
Random selection for primary skills
This commit is contained in:
parent
bb915b0e7e
commit
53e16c7e22
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user