1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Changed logic for zone placement.

Now every zone can be surface, underground, or both. This is separate from water <-> land distinction.

Iand type is now a combination of flags and can take multiple values: "type": ["LAND", "WATER", "SURFACE", "SUB", "ROCK"]. In nothing is specified, terrains get LAND | SURFACE flags by default.

Non-surface zones will default to DIRT, and non-underground zones will default to SUBTERRA.
This commit is contained in:
Tomasz Zieliński
2022-09-22 18:23:31 +02:00
parent e53613caa7
commit 6aaf77812b
8 changed files with 54 additions and 52 deletions

View File

@@ -32,8 +32,6 @@ class DLL_LINKAGE CMapGenerator: public Load::Progress
public:
struct Config
{
std::vector<TTerrain> terrainUndergroundAllowed;
std::vector<TTerrain> terrainGroundProhibit;
std::vector<CTreasureInfo> waterTreasure;
int shipyardGuard;
int mineExtraResources;