1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-21 00:19:29 +02:00
- Some primitive way to randomize treasures
This commit is contained in:
DjWarmonger
2014-06-04 10:16:08 +02:00
parent 6221f4ac2c
commit 62e9f13b08
7 changed files with 169 additions and 44 deletions

View File

@ -258,6 +258,7 @@ void CMapGenerator::createConnections()
});
if (guardPos.valid())
{
setOccupied (guardPos, ETileType::FREE); //just in case monster is too weak to spawn
zoneA->addMonster (this, guardPos, connection.getGuardStrength()); //TODO: set value according to template
//zones can make paths only in their own area
zoneA->crunchPath (this, guardPos, zoneA->getPos(), zoneA->getId()); //make connection towards our zone center