mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-03 13:01:33 +02:00
Update lib/mapObjectConstructors/AObjectTypeHandler.cpp
This commit is contained in:
parent
c316087950
commit
500f945222
@ -97,16 +97,8 @@ void AObjectTypeHandler::init(const JsonNode & input)
|
|||||||
aiValue = static_cast<std::optional<si32>>(input["aiValue"].Integer());
|
aiValue = static_cast<std::optional<si32>>(input["aiValue"].Integer());
|
||||||
|
|
||||||
// TODO: Define properties, move them to actual object instance
|
// TODO: Define properties, move them to actual object instance
|
||||||
if(input["blockVisit"].isNull())
|
blockVisit = input["blockVisit"].Bool();
|
||||||
blockVisit = false;
|
removable = input["removable"].Bool();
|
||||||
else
|
|
||||||
blockVisit = input["blockVisit"].Bool();
|
|
||||||
|
|
||||||
if(input["removable"].isNull())
|
|
||||||
removable = false;
|
|
||||||
else
|
|
||||||
removable = input["removable"].Bool();
|
|
||||||
|
|
||||||
|
|
||||||
battlefield = BattleField::NONE;
|
battlefield = BattleField::NONE;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user