1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Support pickable objects

This commit is contained in:
nordsoft 2022-09-15 23:50:54 +04:00 committed by Andrii Danylchenko
parent ad01c7ffce
commit a598925a0b

View File

@ -94,6 +94,8 @@ void CRandomRewardObjectInfo::configureObject(CRewardableObject * object, CRando
info.reward.movePoints = JsonRandom::loadValue(reward["movePoints"], rng);
info.reward.movePercentage = JsonRandom::loadValue(reward["movePercentage"], rng, -1);
info.reward.removeObject = reward["removeObject"].Bool();
//FIXME: compile this line on Visual
//info.reward.bonuses = JsonRandom::loadBonuses(reward["bonuses"]);