mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-23 00:28:08 +02:00
Support pickable objects
This commit is contained in:
committed by
Andrii Danylchenko
parent
ad01c7ffce
commit
a598925a0b
@ -94,6 +94,8 @@ void CRandomRewardObjectInfo::configureObject(CRewardableObject * object, CRando
|
|||||||
|
|
||||||
info.reward.movePoints = JsonRandom::loadValue(reward["movePoints"], rng);
|
info.reward.movePoints = JsonRandom::loadValue(reward["movePoints"], rng);
|
||||||
info.reward.movePercentage = JsonRandom::loadValue(reward["movePercentage"], rng, -1);
|
info.reward.movePercentage = JsonRandom::loadValue(reward["movePercentage"], rng, -1);
|
||||||
|
|
||||||
|
info.reward.removeObject = reward["removeObject"].Bool();
|
||||||
|
|
||||||
//FIXME: compile this line on Visual
|
//FIXME: compile this line on Visual
|
||||||
//info.reward.bonuses = JsonRandom::loadBonuses(reward["bonuses"]);
|
//info.reward.bonuses = JsonRandom::loadBonuses(reward["bonuses"]);
|
||||||
|
Reference in New Issue
Block a user