From a598925a0b079eee7ad7ec5b87576e6798a27a4d Mon Sep 17 00:00:00 2001 From: nordsoft Date: Thu, 15 Sep 2022 23:50:54 +0400 Subject: [PATCH] Support pickable objects --- lib/mapObjects/CRewardableConstructor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/mapObjects/CRewardableConstructor.cpp b/lib/mapObjects/CRewardableConstructor.cpp index 94ac38e15..dbe59e68e 100644 --- a/lib/mapObjects/CRewardableConstructor.cpp +++ b/lib/mapObjects/CRewardableConstructor.cpp @@ -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"]);