1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-09-16 09:26:28 +02:00

map editor: option to set random town same as player faction

This commit is contained in:
godric3
2025-01-05 21:57:11 +01:00
parent 018503c5e8
commit 4b7792075d
2 changed files with 6 additions and 0 deletions

View File

@@ -1134,6 +1134,7 @@ void CGTownInstance::serializeJsonOptions(JsonSerializeFormat & handler)
eventsHandler.syncSize(events, JsonNode::JsonType::DATA_VECTOR);
eventsHandler.serializeStruct(events);
}
handler.serializeId("alignmentToPlayer", alignmentToPlayer, PlayerColor::NEUTRAL);
}
const CFaction * CGTownInstance::getFaction() const