mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-26 03:52:01 +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());
|
||||
|
||||
// TODO: Define properties, move them to actual object instance
|
||||
if(input["blockVisit"].isNull())
|
||||
blockVisit = false;
|
||||
else
|
||||
blockVisit = input["blockVisit"].Bool();
|
||||
|
||||
if(input["removable"].isNull())
|
||||
removable = false;
|
||||
else
|
||||
removable = input["removable"].Bool();
|
||||
|
||||
blockVisit = input["blockVisit"].Bool();
|
||||
removable = input["removable"].Bool();
|
||||
|
||||
battlefield = BattleField::NONE;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user