소스 검색

- Fixed treasure zones touching each other, which sometimes resulted in unguarded paths.
- Fixed some object amounts which seemed wrong.

DjWarmonger 11 년 전
부모
커밋
3712b9a48b
2개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 0
      config/objects/generic.json
  2. 1 1
      lib/rmg/CRmgTemplateZone.cpp

+ 2 - 0
config/objects/generic.json

@@ -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
 				}

+ 1 - 1
lib/rmg/CRmgTemplateZone.cpp

@@ -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
 				}