1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

- Fixed treasure zones touching each other, which sometimes resulted in unguarded paths.

- Fixed some object amounts which seemed wrong.
This commit is contained in:
DjWarmonger 2014-07-29 16:35:11 +02:00
parent dc03a251f6
commit 3712b9a48b
2 changed files with 3 additions and 1 deletions

View File

@ -58,6 +58,7 @@
"object" : {
"index" : 0,
"rmg" : {
"zoneLimit" : 1,
"value" : 100,
"rarity" : 100
}
@ -634,6 +635,7 @@
"object" : {
"index" : 0,
"rmg" : {
"zoneLimit" : 1,
"value" : 100,
"rarity" : 20
}

View File

@ -1235,7 +1235,7 @@ bool CRmgTemplateZone::findPlaceForTreasurePile(CMapGenerator* gen, float min_di
bool allTilesAvailable = true;
gen->foreach_neighbour (tile, [&gen, &allTilesAvailable](int3 neighbour)
{
if (!(gen->isPossible(neighbour) || gen->isBlocked(neighbour)))
if (!(gen->isPossible(neighbour) || gen->shouldBeBlocked(neighbour)))
{
allTilesAvailable = false; //all present tiles must be already blocked or ready for new objects
}