1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-09 13:14:02 +02:00

Update lib/mapObjectConstructors/AObjectTypeHandler.cpp

This commit is contained in:
Ivan Savenko 2023-12-07 22:48:51 +02:00 committed by GitHub
parent c316087950
commit 500f945222
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,17 +97,9 @@ 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 = false;
else
blockVisit = input["blockVisit"].Bool(); blockVisit = input["blockVisit"].Bool();
if(input["removable"].isNull())
removable = false;
else
removable = input["removable"].Bool(); removable = input["removable"].Bool();
battlefield = BattleField::NONE; battlefield = BattleField::NONE;
if(!input["battleground"].isNull()) if(!input["battleground"].isNull())