<data>
	<dungeons>
		<!-- DUNGEON MODEL TEMPLATE -->
		<dungeonTemplate r_name="'commonTemplate'"
										 r_displayName="r_name"
										 hexGraphic="'Cave.png'"
										 r_enabled="1"
										 w_dungeonLoaded="0"
										 r_enteringLevelIndex="0"
										 visible="accessible||victory"
										 accessible="0"
										 conditionVictory="0"
										 stairVictory="0"
										 victory="0"
										 tooltip="''"
										 objective="''"
										 completeTooltip="r_displayName+'\n'+tooltip"
										 completeObjective="'Mission : \n'+objective"
										 canFleeDungeon="1"
										 dungeonDepth="0"
										 w_creationProgress="0"
										 dungeonSurface="500"
										 dungeonTotalXP="0"
										 dungeonMinXPMonster="0"
										 dungeonMaxXPMonster="20"
										 victoryCondition="'stair'"
										 earnedExperience="0"
										 levelCount="1"
										 dungeonLootCount="dungeonLootCount=2D2"
										 dungeonChestCount="dungeonChestCount=2"
										 dungeonPotionCount="dungeonPotionCount=2D3">
			<!-- earnedExperience -->
			<event r_name="'onXPgain'" r_template="'mainEventTemplate'" r_enabled="exists(world)&&exists(heroes.@0)" r_eventTarget="'heroes.@0.Experience'" r_targetType="'attribute'">
				<effect r_name="'earnedExperience'" r_template="{'mainSelfEffectTemplate','evaluationEffect'}" r_effect="earnedExperience+=max(w_newValue-w_oldValue,0)"/>
			</event>
			<event r_name="'onCreation'" r_template="'mainEventTemplate'" r_eventTarget="'w_creationProgress'" r_targetType="'attribute'">
				<effect r_name="'earnedExperience'" r_template="{'mainSelfEffectTemplate','evaluationEffect'}" r_effect="earnedExperience=0"/>
			</event>
		</dungeonTemplate>
		<dungeonTemplate r_name="'finalDungeonTemplate'" r_template="'commonTemplate'"
										 victoryCondition="gameParameters.princessAlive?'saveNPC':'Boss'">
			<levelTemplate r_name="'finalLevelTemplate'" r_template="'standardTemplate'">
				<feature r_name="'prison'" r_template="'finalPrison'"/>
			</levelTemplate>
			<event r_name="'onVictory'" r_template="'mainEventTemplate'" r_eventTarget="'stairVictory'" r_targetType="'attribute'">
				<effect r_name="'victory'" r_template="{'mainSelfEffectTemplate','multiEffect'}" r_enabled="stairVictory">
					<effect r_name="'victory'" r_template="{'mainSelfEffectTemplate','evaluationEffect'}" r_effect="gameParameters.campaignVictory=1"/>
				</effect>
			</event>
		</dungeonTemplate>
		<!-- DUNGEON MODEL -->
		<dungeon r_name="'sewer'" r_template="'commonTemplate'"
						 hexGraphic="'Sewers.png'"
						 r_displayName="text.townSewer"
						 tooltip="text.townSewerTooltip"
						 objective="text.townSewerObjective"
						 dungeonSurface="200"
						 levelCount="2">
			<level r_name="'level1'" r_template="'sewer0'" levelSurface="dungeonSurface/2" r_totalXP="dungeonTotalXP/2-25">
				<feature r_name="'ratTile1'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'Rat'"/>
				<feature r_name="'ratTile2'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'Rat'"/>
				<feature r_name="'ratTile3'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'Rat'"/>
				<feature r_name="'ratTile4'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'Rat'"/>
				<feature r_name="'ratTile5'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'Rat'"/>
			</level>
			<level r_name="'level2'" r_template="'sewer'" levelSurface="dungeonSurface/2" r_totalXP="dungeonTotalXP/2-25">
				<feature r_name="'ratTile1'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'Rat'"/>
				<feature r_name="'ratTile2'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'Rat'"/>
				<feature r_name="'ratTile3'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'Rat'"/>
				<feature r_name="'ratTile4'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'Rat'"/>
				<feature r_name="'ratTile5'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'Rat'"/>
			</level>
		</dungeon>
		<dungeon r_name="'dark_forest'" r_template="'commonTemplate'"
						 hexGraphic="'jungle.png'"
						 r_displayName="text.darkForest"
						 tooltip="text.darkForestTooltip"
						 objective="text.darkForestObjective"
						 victoryCondition="'saveNPC'"
						 levelCount="1">
			<level r_name="'level1'" r_template="'forest'" levelSurface="dungeonSurface" r_totalXP="dungeonTotalXP">
				<feature r_name="'merchant'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" r_shape="'farStart1'" monsterName="'Merchant'"/>
			</level>
		</dungeon>
		<dungeon r_name="'old_forest'" r_template="'commonTemplate'"
						 hexGraphic="'jungle.png'"
						 r_displayName="text.oldForest"
						 tooltip="text.oldForestTooltip"
						 objective="text.oldForestObjective"
						 victoryCondition="'saveNPC'"
						 levelCount="1">
			<level r_name="'level1'" r_template="'forest'" levelSurface="dungeonSurface" r_totalXP="dungeonTotalXP">
				<feature r_name="'merchant'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" r_shape="'farStart1'" monsterName="'Merchant'"/>
			</level>
		</dungeon>
		<dungeon r_name="'lost_jungle'" r_template="'commonTemplate'"
						 hexGraphic="'jungle.png'"
						 r_displayName="text.lostJungle"
						 tooltip="text.lostJungleTooltip"
						 objective="text.lostJungleObjective"
						 victoryCondition="'saveNPC'"
						 levelCount="1">
			<level r_name="'level1'" r_template="'jungle'" levelSurface="dungeonSurface" r_totalXP="dungeonTotalXP">
				<feature r_name="'merchant'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" r_shape="'farStart1'" monsterName="'Merchant'"/>
			</level>
		</dungeon>
		<dungeon r_name="'broken_tower'" r_template="'commonTemplate'"
						 hexGraphic="'Castle.png'"
						 r_displayName="text.brokenTower"
						 tooltip="text.brokenTowerTooltip"
						 objective="text.brokenTowerObjective"
						 levelCount="5">
			<level r_name="'level1'" r_template="'castle'" levelSurface="dungeonSurface*0.25" r_totalXP="dungeonTotalXP/5"/>
			<level r_name="'level2'" r_template="'castle'" levelSurface="dungeonSurface*0.225" r_totalXP="dungeonTotalXP/5"/>
			<level r_name="'level3'" r_template="'castle'" levelSurface="dungeonSurface*0.2" r_totalXP="dungeonTotalXP/5"/>
			<level r_name="'level4'" r_template="'castle'" levelSurface="dungeonSurface*0.175" r_totalXP="dungeonTotalXP/5"/>
			<level r_name="'level5'" r_template="'castle'" levelSurface="dungeonSurface*0.15" r_totalXP="dungeonTotalXP/5">
				<feature r_name="'bookshelf'" r_template="'mainFeatureTemplate'" r_tile="'commonBookshelf'" r_shape="'farStart1'"/>
			</level>
		</dungeon>
		<dungeon r_name="'forgotten_tower'" r_template="'commonTemplate'"
						 hexGraphic="'Castle.png'"
						 r_displayName="text.forgottenTower"
						 tooltip="text.forgottenTowerTooltip"
						 objective="text.forgottenTowerObjective"
						 levelCount="5">
			<level r_name="'level1'" r_template="'castle'" levelSurface="dungeonSurface/5" r_totalXP="dungeonTotalXP/5"/>
			<level r_name="'level2'" r_template="'castle'" levelSurface="dungeonSurface/5" r_totalXP="dungeonTotalXP/5"/>
			<level r_name="'level3'" r_template="'castle'" levelSurface="dungeonSurface/5" r_totalXP="dungeonTotalXP/5"/>
			<level r_name="'level4'" r_template="'castle'" levelSurface="dungeonSurface/5" r_totalXP="dungeonTotalXP/5"/>
			<level r_name="'level5'" r_template="'castle'" levelSurface="dungeonSurface/5" r_totalXP="dungeonTotalXP/5">
				<feature r_name="'bookshelf'" r_template="'mainFeatureTemplate'" r_tile="'commonBookshelf'" r_shape="'farStart1'"/>
			</level>
		</dungeon>
		<dungeon r_name="'tomb_of_Sigmund'" r_template="'commonTemplate'"
						 hexGraphic="'Castle.png'"
						 r_displayName="text.tombOfSigmund"
						 tooltip="text.tombOfSigmundTooltip"
						 objective="text.tombOfSigmundObjective"
						 levelCount="3">
			<level r_name="'level1'" r_template="'desert'" levelSurface="dungeonSurface/5" r_totalXP="dungeonTotalXP/5"/>
			<level r_name="'level2'" r_template="'dungeon'" levelSurface="dungeonSurface*2/5" r_totalXP="dungeonTotalXP*2/5"/>
			<level r_name="'level3'" r_template="'dungeon'" levelSurface="dungeonSurface*2/5" r_totalXP="dungeonTotalXP*2/5">
				<feature r_name="'armorRack'" r_template="'mainFeatureTemplate'" r_tile="'commonArmorRack'" r_shape="'farStart1'"/>
			</level>
		</dungeon>
		<dungeon r_name="'mysterious_ruins'" r_template="'commonTemplate'"
						 hexGraphic="'Ruins.png'"
						 r_displayName="text.mysteriousRuins"
						 tooltip="text.mysteriousRuinsTooltip"
						 objective="text.mysteriousRuinsObjective"
						 levelCount="2">
			<level r_name="'level1'" r_template="'jungle'" levelSurface="dungeonSurface/5" r_totalXP="dungeonTotalXP/5"/>
			<level r_name="'level2'" r_template="'ruin'" levelSurface="dungeonSurface*4/5" r_totalXP="dungeonTotalXP*4/5">
				<feature r_name="'armorRack'" r_template="'mainFeatureTemplate'" r_tile="'commonArmorRack'" r_shape="'farStart1'"/>
			</level>
		</dungeon>
		<dungeon r_name="'lonely_mansion'" r_template="'commonTemplate'"
						 hexGraphic="'Mansion.png'"
						 r_displayName="text.lonelyMansion"
						 tooltip="text.lonelyMansionTooltip"
						 objective="text.lonelyMansionObjective"
						 levelCount="3">
			<level r_name="'level1'" r_template="'swamp'" levelSurface="dungeonSurface/5" r_totalXP="dungeonTotalXP/5"/>
			<level r_name="'level2'" r_template="'mansion'" levelSurface="dungeonSurface*3/5" r_totalXP="dungeonTotalXP*3/5"/>
			<level r_name="'level3'" r_template="'cave'" levelSurface="dungeonSurface/5" r_totalXP="dungeonTotalXP/5">
				<feature r_name="'JewelleryDisplay'" r_template="'mainFeatureTemplate'" r_tile="'commonJewelleryDisplay'" r_shape="'farStart1'"/>
			</level>
		</dungeon>
		<dungeon r_name="'desert_of_death'" r_template="'commonTemplate'"
						 hexGraphic="'Desert.png'"
						 r_displayName="text.desertOfDeath"
						 tooltip="text.desertOfDeathTooltip"
						 objective="text.desertOfDeathObjective"
						 dungeonAltarActivated="0"
						 levelCount="2">
			<level r_name="'level1'" r_template="'desert'" levelSurface="dungeonSurface" r_totalXP="dungeonTotalXP">
				<feature r_name="'altar1'" r_template="'mainFeatureTemplate'" r_tile="'AirAltarTile'" r_shape="'farStart1'"/>
				<feature r_name="'altar2'" r_template="'mainFeatureTemplate'" r_tile="'FireAltarTile'" r_shape="'farStart1'"/>
			</level>
		</dungeon>
		<dungeon r_name="'torment_swamp'" r_template="'commonTemplate'"
						 hexGraphic="'Swamp.png'"
						 r_displayName="text.swampOfTorment"
						 tooltip="text.swampOfTormentTooltip"
						 objective="text.swampOfTormentObjective"
						 dungeonAltarActivated="0"
						 levelCount="1">
			<level r_name="'level1'" r_template="'swamp'" levelSurface="dungeonSurface" r_totalXP="dungeonTotalXP">
				<feature r_name="'altar1'" r_template="'mainFeatureTemplate'" r_tile="'DeathAltarTile'" r_shape="'farStart1'"/>
				<feature r_name="'altar2'" r_template="'mainFeatureTemplate'" r_tile="'WaterAltarTile'" r_shape="'farStart1'"/>
			</level>
		</dungeon>
		<dungeon r_name="'lake_island'" r_template="'commonTemplate'"
						 hexGraphic="'Island.png'"
						 r_displayName="text.lakesIsland"
						 tooltip="text.lakesIslandTooltip"
						 objective="text.lakesIslandObjective"
						 dungeonAltarActivated="0"
						 levelCount="2">
			<level r_name="'level1'" r_template="'jungle'" levelSurface="dungeonSurface*3/5" r_totalXP="dungeonTotalXP*3/5"/>
			<level r_name="'level2'" r_template="'temple'" levelSurface="dungeonSurface*2/5" r_totalXP="dungeonTotalXP*2/5">
				<feature r_name="'altar1'" r_template="'mainFeatureTemplate'" r_tile="'WaterAltarTile'" r_shape="'farStart1'"/>
				<feature r_name="'altar2'" r_template="'mainFeatureTemplate'" r_tile="'HolyAltarTile'" r_shape="'farStart1'"/>
			</level>
		</dungeon>
		<dungeon r_name="'fire_mountain'" r_template="'commonTemplate'"
						 hexGraphic="'LavaCave.png'"
						 r_displayName="text.fireMountain"
						 tooltip="text.fireMountainTooltip"
						 objective="text.fireMountainObjective"
						 dungeonAltarActivated="0"
						 levelCount="2">
			<level r_name="'level1'" r_template="'mountain'" levelSurface="dungeonSurface*2/5" r_totalXP="dungeonTotalXP*2/5"/>
			<level r_name="'level2'" r_template="'lavacave'" levelSurface="dungeonSurface*3/5" r_totalXP="dungeonTotalXP*3/5">
				<feature r_name="'altar1'" r_template="'mainFeatureTemplate'" r_tile="'EarthAltarTile'" r_shape="'farStart1'"/>
				<feature r_name="'altar2'" r_template="'mainFeatureTemplate'" r_tile="'FireAltarTile'" r_shape="'farStart1'"/>
			</level>
		</dungeon>
		<dungeon r_name="'eagles_peak'" r_template="'commonTemplate'"
						 hexGraphic="'Mountain.png'"
						 r_displayName="text.eaglesPeak"
						 tooltip="text.eaglesPeakTooltip"
						 objective="text.eaglesPeakObjective"
						 dungeonAltarActivated="0"
						 levelCount="4">
			<level r_name="'level1'" r_template="'mountain'" levelSurface="dungeonSurface/5" r_totalXP="dungeonTotalXP/5"/>
			<level r_name="'level2'" r_template="'mountain'" levelSurface="dungeonSurface/5" r_totalXP="dungeonTotalXP/5"/>
			<level r_name="'level3'" r_template="'mountain'" levelSurface="dungeonSurface/5" r_totalXP="dungeonTotalXP/5"/>
			<level r_name="'level4'" r_template="'mountain'" levelSurface="dungeonSurface*2/5" r_totalXP="dungeonTotalXP*2/5">
				<feature r_name="'altar1'" r_template="'mainFeatureTemplate'" r_tile="'AirAltarTile'" r_shape="'farStart1'"/>
				<feature r_name="'altar2'" r_template="'mainFeatureTemplate'" r_tile="'EarthAltarTile'" r_shape="'farStart1'"/>
			</level>
		</dungeon>
		<dungeon r_name="'holy_temple'" r_template="'commonTemplate'"
						 hexGraphic="'Temple.png'"
						 r_displayName="text.holyTemple"
						 tooltip="text.holyTempleTooltip"
						 objective="text.holyTempleObjective"
						 dungeonAltarActivated="0"
						 levelCount="3">
			<level r_name="'level1'" r_template="'mountain'" levelSurface="dungeonSurface*2/5" r_totalXP="dungeonTotalXP*2/5"/>
			<level r_name="'level2'" r_template="'temple'" levelSurface="dungeonSurface/5" r_totalXP="dungeonTotalXP/5"/>
			<level r_name="'level3'" r_template="'temple'" levelSurface="dungeonSurface*2/5" r_totalXP="dungeonTotalXP*2/5">
				<feature r_name="'altar1'" r_template="'mainFeatureTemplate'" r_tile="'HolyAltarTile'" r_shape="'farStart1'"/>
			</level>
		</dungeon>
		<dungeon r_name="'desecrate_ground'" r_template="'commonTemplate'"
						 hexGraphic="'Temple.png'"
						 r_displayName="text.desecrateGround"
						 tooltip="text.desecrateGroundTooltip"
						 objective="text.desecrateGroundObjective"
						 dungeonAltarActivated="0"
						 levelCount="2">
			<level r_name="'level1'" r_template="'swamp'" levelSurface="dungeonSurface*3/5" r_totalXP="dungeonTotalXP*3/5"/>
			<level r_name="'level2'" r_template="'temple'" levelSurface="dungeonSurface*2/5" r_totalXP="dungeonTotalXP*2/5">
				<feature r_name="'altar1'" r_template="'mainFeatureTemplate'" r_tile="'DeathAltarTile'" r_shape="'farStart1'"/>
			</level>
		</dungeon>
		<dungeon r_name="'elemental_temple'" r_template="'commonTemplate'"
						 hexGraphic="'Temple.png'"
						 r_displayName="text.elementalTemple"
						 tooltip="text.elementalTempleTooltip"
						 objective="text.elementalTempleObjective"
						 levelCount="4"
						 order="order=shuffle({0,1,2,3})"
						 levelTemplates="{'swamp','ruin','lavacave','cave'}"
						 elements="{'Water','Air','Fire','Earth'}">
			<levelTemplate r_name="'statueActivationInterface'" levelSurface="dungeonSurface/4" r_totalXP="dungeonTotalXP/4" downstairVisible="0">
				<feature r_name="'statue'" r_template="'mainFeatureTemplate'" r_enabled="!downstairVisible" r_tile="'statue'+elements[order[index]]" r_shape="'farStart1'"/>
			</levelTemplate>
			<level r_name="'level1'" r_template="{levelTemplates[order[0]],'statueActivationInterface'}" index="0"/>
			<level r_name="'level2'" r_template="{levelTemplates[order[1]],'statueActivationInterface'}" index="1"/>
			<level r_name="'level3'" r_template="{levelTemplates[order[2]],'statueActivationInterface'}" index="2"/>
			<level r_name="'level4'" r_template="{levelTemplates[order[3]],'statueActivationInterface'}" index="3"/>
		</dungeon>
		<dungeon r_name="'the_lair'" r_template="'commonTemplate'"
						 hexGraphic="'Cave.png'"
						 r_displayName="text.theLair"
						 tooltip="text.theLairTooltip"
						 objective="text.theLairObjective"
						 victoryCondition="'boss'"
						 levelCount="3">
			<level r_name="'level1'" r_template="'mountain'" levelSurface="dungeonSurface/2" r_totalXP="(dungeonTotalXP)/2"/>
			<level r_name="'level2'" r_template="'cave'" levelSurface="dungeonSurface/2" r_totalXP="(dungeonTotalXP)/2"/>
			<level r_name="'level3'" r_template="'cave'" levelSurface="40" r_totalXP="0">
				<feature r_name="'boss'" r_template="'mainFeatureTemplate'" r_tile="'bossTile'" r_shape="'farStart1'" monsterName="'Hydra'"/>
			</level>
		</dungeon>
		<dungeon r_name="'bloodTemple'" r_template="'finalDungeonTemplate'"
						 hexGraphic="'EvilCastle.png'"
						 r_displayName="text.bloodTemple"
						 tooltip="text.bloodTempleTooltip"
						 objective="text.bloodTempleObjective"
						 levelCount="5"
						 dungeonSurface="1000">
			<level r_name="'level1'" r_template="'ruin'" levelSurface="dungeonSurface/10" r_totalXP="dungeonTotalXP*1/10"/>
			<level r_name="'level2'" r_template="'dungeon'" levelSurface="dungeonSurface/5" r_totalXP="dungeonTotalXP*2/10"/>
			<level r_name="'level3'" r_template="'dungeon'" levelSurface="dungeonSurface/5" r_totalXP="dungeonTotalXP*2/10"/>
			<level r_name="'level4'" r_template="'dungeon'" levelSurface="dungeonSurface/5" r_totalXP="dungeonTotalXP*2/10"/>
			<level r_name="'level5'" r_template="{'incrementalLayout', 'advUpstairInterface', 'finalLevelTemplate', 'dungeonAdvancedGraphics', 'dungeonMonsters'}" levelSurface="dungeonSurface*3/10" r_totalXP="dungeonTotalXP*3/10"/>
		</dungeon>
		<dungeon r_name="'lavaPit'" r_template="'commonTemplate'"
						 levelCount="1"
						 canFleeDungeon="0"
						 victoryCondition="'Boss'">
			<level r_name="'level1'" r_template="{'cellularLayout','lavaPitPortalInterface','lavacaveAdvancedGraphics'}" levelSurface="50" r_totalXP="0">
				<feature r_name="'demon'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" r_shape="'farStart1'" monsterName="'DemonGod'"/>
			</level>
		</dungeon>
	</dungeons>
	<worlds>
		<!-- -->
		<!-- Campaign World -->
		<!-- -->
		<worldTemplate r_name="'mainTemplate'"
									 lastDungeonDepth="0"
									 isCampaign="0"
									 isSingleDungeon="0"/>
		<world r_name="'mainWorld'" r_template="'mainTemplate'"
					 isCampaign="1"
					 dungeonList="dungeonList=shuffle({'dark_forest','old_forest','lost_jungle','broken_tower','forgotten_tower','tomb_of_Sigmund','mysterious_ruins','lonely_mansion','desert_of_death','torment_swamp','lake_island','fire_mountain','eagles_peak','holy_temple','desecrate_ground','elemental_temple','the_lair'})"
					 dungeonTotalXPByDepth="{300, 1000, 2000, 3500, 5500, 7500, 16000}"
					 dungeonMinMonsterXPByDepth="{10, 15, 20, 30, 50, 70, 100}"
					 dungeonMaxMonsterXPByDepth="{25, 35, 50, 90, 160, 250, 300}">
			<dungeonTemplate 	r_name="'dungeonXPTemplate'"
												dungeonTotalXP="dungeonTotalXPByDepth[dungeonDepth]"
												dungeonMinXPMonster="dungeonMinMonsterXPByDepth[dungeonDepth]"
												dungeonMaxXPMonster="dungeonMaxMonsterXPByDepth[dungeonDepth]"/>
			<dungeon r_name="'dungeon0a'" r_template="{'sewer','dungeonXPTemplate'}" accessible="!victory" dungeonDepth="0"/>
			<dungeon r_name="'dungeon1a'" r_template="{dungeonList[0],'dungeonXPTemplate'}" accessible="!victory&&(dungeon0a.victory)" dungeonDepth="1"/>
			<dungeon r_name="'dungeon1b'" r_template="{dungeonList[1],'dungeonXPTemplate'}" accessible="!victory&&(dungeon0a.victory)" dungeonDepth="1"/>
			<dungeon r_name="'dungeon2a'" r_template="{dungeonList[2],'dungeonXPTemplate'}" accessible="!victory&&(dungeon1a.victory || dungeon2b.victory || dungeon3a.victory || dungeon3b.victory)" dungeonDepth="2"/>
			<dungeon r_name="'dungeon2b'" r_template="{dungeonList[3],'dungeonXPTemplate'}" accessible="!victory&&(dungeon1a.victory || dungeon1b.victory || dungeon2a.victory || dungeon2c.victory || dungeon3b.victory || dungeon3c.victory)" dungeonDepth="2"/>
			<dungeon r_name="'dungeon2c'" r_template="{dungeonList[4],'dungeonXPTemplate'}" accessible="!victory&&(dungeon1b.victory || dungeon2b.victory || dungeon3c.victory || dungeon3d.victory)" dungeonDepth="2"/>
			<dungeon r_name="'dungeon3a'" r_template="{dungeonList[5],'dungeonXPTemplate'}" accessible="!victory&&(dungeon2a.victory || dungeon3b.victory || dungeon4a.victory)" dungeonDepth="3"/>
			<dungeon r_name="'dungeon3b'" r_template="{dungeonList[6],'dungeonXPTemplate'}" accessible="!victory&&(dungeon2a.victory || dungeon2b.victory || dungeon3a.victory || dungeon3c.victory || dungeon4a.victory || dungeon4b.victory)" dungeonDepth="3"/>
			<dungeon r_name="'dungeon3c'" r_template="{dungeonList[7],'dungeonXPTemplate'}" accessible="!victory&&(dungeon2b.victory || dungeon2c.victory || dungeon3b.victory || dungeon3d.victory || dungeon4b.victory || dungeon4c.victory)" dungeonDepth="3"/>
			<dungeon r_name="'dungeon3d'" r_template="{dungeonList[8],'dungeonXPTemplate'}" accessible="!victory&&(dungeon2c.victory || dungeon3c.victory || dungeon4c.victory)" dungeonDepth="3"/>
			<dungeon r_name="'dungeon4a'" r_template="{dungeonList[9],'dungeonXPTemplate'}" accessible="!victory&&(dungeon3a.victory || dungeon3b.victory || dungeon4b.victory || dungeon5a.victory)" dungeonDepth="4"/>
			<dungeon r_name="'dungeon4b'" r_template="{dungeonList[10],'dungeonXPTemplate'}" accessible="!victory&&(dungeon3b.victory || dungeon3c.victory || dungeon4a.victory || dungeon4c.victory || dungeon5a.victory || dungeon5b.victory)" dungeonDepth="4"/>
			<dungeon r_name="'dungeon4c'" r_template="{dungeonList[11],'dungeonXPTemplate'}" accessible="!victory&&(dungeon3c.victory || dungeon3d.victory || dungeon4b.victory || dungeon5b.victory)" dungeonDepth="4"/>
			<dungeon r_name="'dungeon5a'" r_template="{dungeonList[12],'dungeonXPTemplate'}" accessible="!victory&&(dungeon4a.victory || dungeon4b.victory || dungeon5b.victory)" dungeonDepth="5"/>
			<dungeon r_name="'dungeon5b'" r_template="{dungeonList[13],'dungeonXPTemplate'}" accessible="!victory&&(dungeon4b.victory || dungeon4c.victory || dungeon5a.victory)" dungeonDepth="5"/>
			<dungeon r_name="'dungeon6a'" r_template="{'bloodTemple','dungeonXPTemplate'}" accessible="!victory&&(dungeon5a.victory || dungeon5b.victory)" visible="1" dungeonDepth="6"/>
			<dungeon r_name="'finalBattle'" r_template="'lavaPit'" accessible="0" visible="0" dungeonDepth="6"/>
		</world>
		
		<!-- -->
		<!-- Chaos World -->
		<!-- -->
		<world r_name="'chaosWorld'" r_template="'mainTemplate'"
					 isSingleDungeon="1"
					 dungeonTotalXPByFloor="{350, 500, 750, 1000, 1400, 1800, 2300, 2800, 3300, 3500, 4000, 5000}"
					 dungeonMinMonsterXPByFloor="{10, 15, 15, 20, 20, 30, 30, 50, 50, 70, 80, 120}"
					 dungeonMaxMonsterXPByFloor="{15, 20, 25, 35, 50, 50, 90, 100, 160, 160, 250, 300}"
					 nextDungeon="randomElement({'caveDungeon','desertDungeon','dungeonDungeon','forestDungeon','lavacaveDungeon'})">
			<dungeonTemplate 	r_name="'mainDungeonTemplate'" r_template="'commonTemplate'"
												levelTemplate="''"
												r_displayName="text.towerFloor+' '+(dungeonFloor+1)"
												dungeonFloor="gameParameters.spendDays"
												dungeonDepth="floor(dungeonFloor/2)"
												dungeonTotalXP="(12>dungeonFloor)?(dungeonTotalXPByFloor[dungeonFloor]):((dungeonFloor-6)*1000)"
												dungeonMinXPMonster="(12>dungeonFloor)?(dungeonMinMonsterXPByFloor[dungeonFloor]):((dungeonFloor-8)*30)"
												dungeonMaxXPMonster="(12>dungeonFloor)?(dungeonMaxMonsterXPByFloor[dungeonFloor]):((dungeonFloor-5)*50)"
												dungeonAltarActivated="0">
				<level r_name="'level'" r_template="levelTemplate" levelSurface="300" r_totalXP="dungeonTotalXP">
					<layout r_name="'basic'">
						<feature 	r_name="'bossRoom'" r_template="'patternFeatureTemplate'"
											r_enabled="(dungeonFloor%4)==3"
											r_checkConnection="0"
											altarList="{'AirAltarTile','DeathAltarTile','EarthAltarTile','FireAltarTile','HolyAltarTile','WaterAltarTile'}"
											firstAltar="0"
											randomBoss="randomElement({'monsterTileManticore','monsterTileGorgon','monsterTileLich','monsterTileMinotaur'})"
											r_asciiDesignTranslation="asciiDesignTranslation+simplifyArray({{'a',altarList[firstAltar=(1D6-1)]},{'b',altarList[(firstAltar+1D5)%6]},{'c',randomBoss},{'_','advancedGroundNonBasic'}}, 1)"
											r_asciiPattern="{	'#######',
																				'#######',
																				'#######',
																				'#######',
																				'#######',
																				'   .   '}"
											r_asciiDesign="{'#######',
																			'#a___b#',
																			'#__c__#',
																			'#_____#',
																			'###+###',
																			'       '}"/>
					</layout>
				</level>
				<event r_name="'onCreation'">
					<effect r_name="'resetAltar'" r_template="{'mainSelfEffectTemplate','evaluationEffect'}" r_effect="dungeonAltarActivated=0"/>
				</event>
			</dungeonTemplate>
			<dungeon r_name="'caveDungeon'" r_template="'mainDungeonTemplate'" levelTemplate="'cavePlane'"/>
			<dungeon r_name="'desertDungeon'" r_template="'mainDungeonTemplate'" levelTemplate="'desertPlane'"/>
			<dungeon r_name="'dungeonDungeon'" r_template="'mainDungeonTemplate'" levelTemplate="'dungeonPlane'"/>
			<dungeon r_name="'forestDungeon'" r_template="'mainDungeonTemplate'" levelTemplate="'forestPlane'"/>
			<dungeon r_name="'lavacaveDungeon'" r_template="'mainDungeonTemplate'" levelTemplate="'lavacavePlane'"/>
			<event r_name="'onDungeonDepth'" r_template="'mainEventTemplate'" r_eventTarget="'lastDungeonDepth'" r_targetType="'attribute'">
				<effect r_name="'scoreTowerOfChaos'" r_template="{'mainSelfEffectTemplate','evaluationEffect'}" r_enabled="(gameParameters.difficulty>=1)&&!globalParameters.cheatEnabled" r_effect="globalParameters.scoreTowerOfChaos=gameParameters.spendDays"/>
			</event>
		</world>
		
		<!-- -->
		<!-- Debug Worlds -->
		<!-- -->
		<world r_name="'debugWorld'" r_template="'mainTemplate'"
					 dungeonTotalXPByDepth="{300, 1000, 2000, 3500, 5500, 7500, 16000}"
					 dungeonMinMonsterXPByDepth="{10, 15, 20, 30, 50, 70, 100}"
					 dungeonMaxMonsterXPByDepth="{25, 35, 50, 90, 160, 250, 300}"
					 dungeonDepth="1">
			<dungeon r_name="'dungeon0a'" r_template="'commonTemplate'"
							 r_displayName="'Goblin'"
							 tooltip="'Goblin'"
							 accessible="1"
							 dungeonAltarActivated="0">
				<level r_name="'level1'" r_template="'cave'" levelSurface="40" r_totalXP="0" r_minXPMonster="10" r_maxXPMonster="10">
					<feature r_name="'goblinKing'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" r_shape="'farStart1'" monsterName="'GoblinKing'"/>
					<feature r_name="'altar1'" r_template="'mainFeatureTemplate'" r_tile="'DeathAltarTile'" r_shape="'farStart1'"/>
					<feature r_name="'altar2'" r_template="'mainFeatureTemplate'" r_tile="'FireAltarTile'" r_shape="'farStart1'"/>
				</level>
			</dungeon>
			<dungeon r_name="'dungeon1a'" r_template="'commonTemplate'"
							 r_displayName="'Classic 3x100'"
							 accessible="1">
				<level r_name="'level1'" r_template="'castle'" levelSurface="100" r_totalXP="0" r_minXPMonster="10" r_maxXPMonster="10"/>
				<level r_name="'level2'" r_template="'castle'" levelSurface="100" r_totalXP="0" r_minXPMonster="10" r_maxXPMonster="10"/>
				<level r_name="'level3'" r_template="'castle'" levelSurface="100" r_totalXP="0" r_minXPMonster="10" r_maxXPMonster="10"/>
			</dungeon>
			<dungeon r_name="'dungeon1b'" r_template="'commonTemplate'"
							 r_displayName="'Classic 10x100'"
							 accessible="1">
				<level r_name="'level1'" r_template="'cave'" levelSurface="100" r_totalXP="50" r_minXPMonster="10" r_maxXPMonster="20"/>
				<level r_name="'level2'" r_template="'cave'" levelSurface="100" r_totalXP="100" r_minXPMonster="20" r_maxXPMonster="40"/>
				<level r_name="'level3'" r_template="'cave'" levelSurface="200" r_totalXP="150" r_minXPMonster="30" r_maxXPMonster="60"/>
				<level r_name="'level4'" r_template="'cave'" levelSurface="200" r_totalXP="200" r_minXPMonster="40" r_maxXPMonster="80"/>
				<level r_name="'level5'" r_template="'cave'" levelSurface="300" r_totalXP="250" r_minXPMonster="50" r_maxXPMonster="100"/>
				<level r_name="'level6'" r_template="'cave'" levelSurface="300" r_totalXP="300" r_minXPMonster="60" r_maxXPMonster="120"/>
				<level r_name="'level7'" r_template="'cave'" levelSurface="400" r_totalXP="350" r_minXPMonster="70" r_maxXPMonster="140"/>
				<level r_name="'level8'" r_template="'cave'" levelSurface="400" r_totalXP="400" r_minXPMonster="80" r_maxXPMonster="160"/>
				<level r_name="'level9'" r_template="'cave'" levelSurface="500" r_totalXP="450" r_minXPMonster="90" r_maxXPMonster="180"/>
				<level r_name="'level10'" r_template="'cave'" levelSurface="500" r_totalXP="500" r_minXPMonster="100" r_maxXPMonster="200"/>
			</dungeon>
			<dungeon r_name="'dungeon2a'" r_template="'commonTemplate'"
							 r_displayName="'Big 8000 empty'"
							 accessible="1">
				<level r_name="'level1'" r_template="'cave'" levelSurface="8000" r_totalXP="0" r_minXPMonster="10" r_maxXPMonster="10"/>
			</dungeon>
			<dungeon r_name="'dungeon2b'" r_template="'elemental_temple'"
							 r_displayName="'elemental_temple'"
							 accessible="1"
							 dungeonTotalXP="100">
			</dungeon>
			<dungeon r_name="'dungeon2c'" r_template="'commonTemplate'"
							 r_displayName="'Big 2x2000 mixed'"
							 accessible="1">
				<level r_name="'level1'" r_template="'cave'" levelSurface="2000" r_totalXP="0" r_minXPMonster="10" r_maxXPMonster="10"/>
				<level r_name="'level2'" r_template="'cave'" levelSurface="2000" r_totalXP="2000" r_minXPMonster="10" r_maxXPMonster="10"/>
			</dungeon>
			<dungeon r_name="'dungeon3a'" r_template="'commonTemplate'"
							 r_displayName="'Merchant'"
							 accessible="1"
							 victoryCondition="'saveNPC'">
				<level r_name="'level1'" r_template="'cave'" levelSurface="20" r_totalXP="10" r_minXPMonster="10" r_maxXPMonster="10">
					<feature r_name="'merchant'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" r_shape="'farStart1'" monsterName="'Merchant'"/>
				</level>
			</dungeon>
			<dungeon r_name="'dungeon3b'" r_template="'commonTemplate'"
							 r_displayName="'Princess+Demon'"
							 accessible="1"
							 victoryCondition="'saveNPC'">
				<level r_name="'level1'" r_template="'cave'" levelSurface="20" r_totalXP="0" r_minXPMonster="10" r_maxXPMonster="10">
					<feature r_name="'boss'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" r_shape="'farStart1'" monsterName="'DemonGod'"/>
					<feature r_name="'princess'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" r_shape="'farStart1'" monsterName="'Princess'"/>
				</level>
			</dungeon>
			<dungeon r_name="'dungeon3c'" r_template="'commonTemplate'"
							 accessible="1"
							 dungeonDepth="1"
							 dungeonTotalXP="0">
				<level r_name="'level1'" r_template="'cave'" levelSurface="40" r_totalXP="0">
					<feature r_name="'boss'" r_template="'mainFeatureTemplate'" r_tile="'bossTile'" r_shape="'farStart1'" monsterName="'Hydra'"/>
				</level>
			</dungeon>
			<dungeon r_name="'dungeon3d'" r_template="'finalDungeonTemplate'"
							 r_displayName="'Princess+9 Childrens'"
							 accessible="1">
				<level 	r_name="'level1'" r_template="{'incrementalLayout', 'advUpstairInterface', 'finalLevelTemplate', 'dungeonAdvancedGraphics', 'dungeonMonsters'}"
								levelSurface="40"
								r_totalXP="0"
								r_minXPMonster="10"
								r_maxXPMonster="10"/>
			</dungeon>
			<dungeon r_name="'dungeon4a'" r_template="'commonTemplate'"
							 r_displayName="'exploreVisibilityTest'"
							 accessible="1"
							 dungeonFloor="4">
				<level r_name="'level1'" r_template="{'incrementalLayoutWithEntry', 'emptyTemplate', 'desertAdvancedGraphics'}"
							 levelSurface="20" r_totalXP="0" r_minXPMonster="10" r_maxXPMonster="10">
					<layout r_name="'basic'" r_firstRoom="'En2'">
						<room r_name="'En2'" r_template="'mainRoomTemplate'"
									r_xSize="15"
									r_ySize="4"
									r_asciiDesignTranslation="asciiDesignTranslation+simplifyArray({{'m','monsterTileMinotaur'}}, 1)"
									r_asciiDesign="{'###############',
																	'#«»########..m#',
																	'#...........~~#',
																	'###############'"/>
						<feature r_name="'water'" r_enabled="0"/>
					</layout>
				</level>
			</dungeon>
			<dungeon r_name="'dungeon4b'" r_template="'commonTemplate'"
							 r_displayName="'Traps'"
							 accessible="1">
				<level r_name="'level1'" r_template="'cave'" levelSurface="200" r_totalXP="0" r_minXPMonster="10" r_maxXPMonster="10">
					<loop r_name="'trapLoop'" r_loopCondition="50>iLoop" r_loopStep="child.r_name=(child.r_name+iLoop++)" iLoop="0">
						<feature r_name="'trap'" r_template="'mainFeatureTemplate'" r_tile="trapTile"/>
					</loop>
					<feature r_name="'Troll'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" r_shape="'farStart1'" monsterName="'WanderingTroll'"/>
				</level>
			</dungeon>
			<dungeon r_name="'dungeon4c'" r_template="'commonTemplate'"
							 r_displayName="'waterTest'"
							 accessible="1">
				<level r_name="'level1'" r_template="'sewer0'" levelSurface="20" r_totalXP="0" r_minXPMonster="10" r_maxXPMonster="10">
					<layout r_name="'basic'">
						<room r_name="'En2'"
									r_asciiDesign="{'###############',
																	'##...######...#',
																	'#...########..#',
																	'#..###a####...#',
																	'##..##b###...##',
																	'##..........###',
																	'####......#####',
																	'###############'"/>
						<feature 	r_name="'water4'" r_template="'mainFeatureTemplate'"
											r_shape="'asciiPattern'"
											r_asciiDesignTranslation="asciiDesignTranslation"
											r_asciiPattern="{	'..',
																				'..'}"
											r_asciiDesign="{'~~',
																			'~~'}"
											r_checkConnection="1"/>
					</layout>
				</level>
			</dungeon>
			<dungeon r_name="'dungeon5a'" r_template="'commonTemplate'"
							 r_displayName="'TrainingDummy'"
							 accessible="1">
				<level r_name="'level1'" r_template="'bigRoom'" levelSurface="100" r_totalXP="0" r_minXPMonster="10" r_maxXPMonster="10">
					<loop r_name="'TrainingDummyLoop'" r_loopCondition="20>iLoop" r_loopStep="child.r_name=(child.r_name+iLoop++)" iLoop="0">
						<feature r_name="'TrainingDummy'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" r_shape="'random1'" monsterName="'TrainingDummy'"/>
					</loop>
				</level>
			</dungeon>
			<dungeon r_name="'dungeon5b'" r_template="'commonTemplate'"
							 r_displayName="'Small'"
							 accessible="1">
				<level r_name="'level1'" r_template="'longCave'" levelSurface="2" r_totalXP="0" r_minXPMonster="10" r_maxXPMonster="10"/>
			</dungeon>
			<dungeon r_name="'dungeon6a'" r_template="'commonTemplate'"
							 r_displayName="'Chest'"
							 accessible="1"
							 dungeonDepth="dungeonDepth=(1D7-1)">
				<level r_name="'level1'" r_template="'bigRoom'" levelSurface="100" r_totalXP="0" r_minXPMonster="10" r_maxXPMonster="10">
					<loop r_name="'ArmorRack'" r_loopCondition="5>iLoop" r_loopStep="child.r_name=(child.r_name+iLoop++)" iLoop="0">
						<feature r_name="'ArmorRack'" r_template="'mainFeatureTemplate'" r_tile="'commonArmorRack'" r_shape="'farStart1'"/>
					</loop>
					<loop r_name="'Jewellery'" r_loopCondition="5>iLoop" r_loopStep="child.r_name=(child.r_name+iLoop++)" iLoop="0">
						<feature r_name="'Jewellery'" r_template="'mainFeatureTemplate'" r_tile="'commonJewelleryDisplay'" r_shape="'farStart1'"/>
					</loop>
					<loop r_name="'Book'" r_loopCondition="5>iLoop" r_loopStep="child.r_name=(child.r_name+iLoop++)" iLoop="0">
						<feature r_name="'Book'" r_template="'mainFeatureTemplate'" r_tile="'commonBookshelf'" r_shape="'farStart1'"/>
					</loop>
					<loop r_name="'Chest'" r_loopCondition="30>iLoop" r_loopStep="child.r_name=(child.r_name+iLoop++)" iLoop="0">
						<feature r_name="'Chest'" r_template="'mainFeatureTemplate'" r_tile="'commonChest'" r_shape="'farStart1'"/>
					</loop>
					<loop r_name="'Potion'" r_loopCondition="10>iLoop" r_loopStep="child.r_name=(child.r_name+iLoop++)" iLoop="0">
						<feature r_name="'Potion'" r_template="'mainFeatureTemplate'" r_tile="'commonPotion'" r_shape="'farStart1'"/>
					</loop>
					<loop r_name="'Loot'" r_loopCondition="10>iLoop" r_loopStep="child.r_name=(child.r_name+iLoop++)" iLoop="0">
						<feature r_name="'Loot'" r_template="'mainFeatureTemplate'" r_tile="'commonLoot'" r_shape="'farStart1'"/>
					</loop>
					<feature r_name="'StrengthElixir'" r_template="'mainFeatureTemplate'" r_tile="'specificLoot'" lootName="'StrengthElixir'" r_shape="'farStart1'"/>
					<feature r_name="'DexterityElixir'" r_template="'mainFeatureTemplate'" r_tile="'specificLoot'" lootName="'DexterityElixir'" r_shape="'farStart1'"/>
					<feature r_name="'IntelligenceElixir'" r_template="'mainFeatureTemplate'" r_tile="'specificLoot'" lootName="'IntelligenceElixir'" r_shape="'farStart1'"/>
					<feature r_name="'ConstitutionElixir'" r_template="'mainFeatureTemplate'" r_tile="'specificLoot'" lootName="'ConstitutionElixir'" r_shape="'farStart1'"/>
				</level>
				<level r_name="'level2'" r_template="'bigRoom'" levelSurface="100" r_totalXP="0" r_minXPMonster="10" r_maxXPMonster="10">
					<featureTemplate r_name="'artefactTemplate'" r_template="'mainFeatureTemplate'" r_tile="'specificLoot'" r_shape="'farStart1'" lootName="r_name"/>
					<feature r_name="'AssassinsDagger'" r_template="'artefactTemplate'"/>
					<feature r_name="'LightSaber'" r_template="'artefactTemplate'"/>
					<feature r_name="'Bane'" r_template="'artefactTemplate'"/>
					<feature r_name="'BoneCrusher'" r_template="'artefactTemplate'"/>
					<feature r_name="'Earthquake'" r_template="'artefactTemplate'"/>
					<feature r_name="'Mutilator'" r_template="'artefactTemplate'"/>
					<feature r_name="'HeadCutter'" r_template="'artefactTemplate'"/>
					<feature r_name="'Impaler'" r_template="'artefactTemplate'"/>
					<feature r_name="'ElementalStaff'" r_template="'artefactTemplate'"/>
					<feature r_name="'ElvenCompositeLongbow'" r_template="'artefactTemplate'"/>
					<feature r_name="'PortableBallista'" r_template="'artefactTemplate'"/>
					<feature r_name="'LightningJavelin'" r_template="'artefactTemplate'"/>
					<feature r_name="'LuckyShield'" r_template="'artefactTemplate'"/>
					<feature r_name="'MirrorShield'" r_template="'artefactTemplate'"/>
					<feature r_name="'KnightsShield'" r_template="'artefactTemplate'"/>
					<feature r_name="'TheGreatWall'" r_template="'artefactTemplate'"/>
					<feature r_name="'AstralBook'" r_template="'artefactTemplate'"/>
					<feature r_name="'DivineBook'" r_template="'artefactTemplate'"/>
					<feature r_name="'TheOneRing'" r_template="'artefactTemplate'"/>
					<feature r_name="'RingOfLife'" r_template="'artefactTemplate'"/>
					<feature r_name="'WardingPearl'" r_template="'artefactTemplate'"/>
					<feature r_name="'RobeOfTheArchmage'" r_template="'artefactTemplate'"/>
					<feature r_name="'DragonArmor'" r_template="'artefactTemplate'"/>
					<feature r_name="'Fortress'" r_template="'artefactTemplate'"/>
					<feature r_name="'HelmOfWisdom'" r_template="'artefactTemplate'"/>
					<feature r_name="'SpiderCloak'" r_template="'artefactTemplate'"/>
					<feature r_name="'BracersOfGiants'" r_template="'artefactTemplate'"/>
					<feature r_name="'ThiefsGloves'" r_template="'artefactTemplate'"/>
					<feature r_name="'BeltOfTheBull'" r_template="'artefactTemplate'"/>
					<feature r_name="'BlinkingBoots'" r_template="'artefactTemplate'"/>
					<feature r_name="'BagOfWinds'" r_template="'artefactTemplate'"/>
					<feature r_name="'BootsOfFly'" r_template="'artefactTemplate'"/>
					<feature r_name="'CloakOfWindShield'" r_template="'artefactTemplate'"/>
					<feature r_name="'HuntersBow'" r_template="'artefactTemplate'"/>
					<feature r_name="'TrainingDummy'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" r_shape="'random1'" monsterName="'TrainingDummy'"/>
					<feature r_name="'ArmoredTrainingDummy'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" r_shape="'random1'" monsterName="'ArmoredTrainingDummy'"/>
					<feature r_name="'UndeadTrainingDummy'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" r_shape="'random1'" monsterName="'UndeadTrainingDummy'"/>
				</level>
			</dungeon>
		</world>
		<world r_name="'layoutWorld'" r_template="'mainTemplate'">
			<dungeonTemplate r_name="'dungeonLayoutTemplate'" r_template="'commonTemplate'"
											 dungeonLayout="'ToBeReplaced'"
											 r_displayName="dungeonLayout"
											 tooltip="''"
											 accessible="1">
				<level r_name="'level1'" r_template="dungeonLayout" levelSurface="40" r_totalXP="0" r_minXPMonster="10" r_maxXPMonster="10"/>
				<level r_name="'level2'" r_template="dungeonLayout" levelSurface="300" r_totalXP="0" r_minXPMonster="10" r_maxXPMonster="10"/>
<!--				
				<level r_name="'level3'" r_template="{'standardTemplate',dungeonLayout+'Graphics'}" levelSurface="4096" r_totalXP="0" r_minXPMonster="10" r_maxXPMonster="10">
					<layout r_name="'debug'" r_template="'standardTemplate'" r_generatorClass="'rngsdk.controller.layoutgenerator.CctlLayoutGeneratorDebug'"/>
				</level>					
-->
			</dungeonTemplate>
			<dungeon r_name="'dungeon0a'" r_template="'dungeonLayoutTemplate'" dungeonLayout="'castle'"/>
			<dungeon r_name="'dungeon1a'" r_template="'dungeonLayoutTemplate'" dungeonLayout="'cave'"/>
			<dungeon r_name="'dungeon1b'" r_template="'dungeonLayoutTemplate'" dungeonLayout="'desert'"/>
			<dungeon r_name="'dungeon2a'" r_template="'dungeonLayoutTemplate'" dungeonLayout="'dungeon'"/>
			<dungeon r_name="'dungeon2b'" r_template="'dungeonLayoutTemplate'" dungeonLayout="'forest'"/>
			<dungeon r_name="'dungeon2c'" r_template="'dungeonLayoutTemplate'" dungeonLayout="'jungle'"/>
			<dungeon r_name="'dungeon3a'" r_template="'dungeonLayoutTemplate'" dungeonLayout="'lavacave'"/>
			<dungeon r_name="'dungeon3b'" r_template="'dungeonLayoutTemplate'" dungeonLayout="'mansion'"/>
			<dungeon r_name="'dungeon3c'" r_template="'dungeonLayoutTemplate'" dungeonLayout="'mountain'"/>
			<dungeon r_name="'dungeon3d'" r_template="'dungeonLayoutTemplate'" dungeonLayout="'ruin'"/>
			<dungeon r_name="'dungeon4a'" r_template="'dungeonLayoutTemplate'" dungeonLayout="'sewer'"/>
			<dungeon r_name="'dungeon4b'" r_template="'dungeonLayoutTemplate'" dungeonLayout="'swamp'"/>
			<dungeon r_name="'dungeon4c'" r_template="'dungeonLayoutTemplate'" dungeonLayout="'temple'"/>
			<dungeon r_name="'dungeon5a'" r_template="'dungeonLayoutTemplate'" dungeonLayout="'castle'" accessible="0"/>
			<dungeon r_name="'dungeon5b'" r_template="'dungeonLayoutTemplate'" dungeonLayout="'castle'" accessible="0"/>
			<dungeon r_name="'dungeon6a'" r_template="'dungeonLayoutTemplate'" dungeonLayout="'castle'" accessible="0"/>
		</world>
		<world r_name="'monsterWorld'" r_template="'mainTemplate'">
			<dungeonTemplate r_name="'dungeonMonsterTemplate'" r_template="'commonTemplate'"
											 dungeonLayout="'cave'"
											 r_displayName="''"
											 levelMonsterName="r_displayName"
											 tooltip="''"
											 accessible="1">
				<level r_name="'level1'" r_template="'bigRoom'" levelSurface="100" r_totalXP="0">
					<feature r_name="'monsterTile'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="levelMonsterName"/>
				</level>
			</dungeonTemplate>
			<dungeon r_name="'dungeon0a'" r_template="'dungeonMonsterTemplate'" r_displayName="'BlueSpider'"/>
			<dungeon r_name="'dungeon1a'" r_template="'dungeonMonsterTemplate'" r_displayName="'GnollShaman'"/>
			<dungeon r_name="'dungeon1b'" r_template="'dungeonMonsterTemplate'" r_displayName="'OakDryad'"/>
			<dungeon r_name="'dungeon2a'" r_template="'dungeonMonsterTemplate'" r_displayName="'BrownBear'"/>
			<dungeon r_name="'dungeon2b'" r_template="'dungeonMonsterTemplate'" r_displayName="'GoblinSorcerer'"/>
			<dungeon r_name="'dungeon2c'" r_template="'dungeonMonsterTemplate'" r_displayName="'Troll'"/>
			<dungeon r_name="'dungeon3a'" r_template="'dungeonMonsterTemplate'" r_displayName="'Keeper'"/>
			<dungeon r_name="'dungeon3b'" r_template="'dungeonMonsterTemplate'" r_displayName="'WaterNaga'"/>
			<dungeon r_name="'dungeon3c'" r_template="'dungeonMonsterTemplate'" r_displayName="'YoungGriffin'"/>
			<dungeon r_name="'dungeon3d'" r_template="'dungeonMonsterTemplate'" r_displayName="'Vampire'"/>
			<dungeon r_name="'dungeon4a'" r_template="'dungeonMonsterTemplate'" r_displayName="'NightSprite'"/>
			<dungeon r_name="'dungeon4b'" r_template="'dungeonMonsterTemplate'" r_displayName="'Manticore'" dungeonFloor="4"/>
			<dungeon r_name="'dungeon4c'" r_template="'dungeonMonsterTemplate'" r_displayName="'Gorgon'" dungeonFloor="4"/>
			<dungeon r_name="'dungeon5a'" r_template="'dungeonMonsterTemplate'" r_displayName="'Lich'" dungeonFloor="4"/>
			<dungeon r_name="'dungeon5b'" r_template="'dungeonMonsterTemplate'" r_displayName="'Minotaur'" dungeonFloor="4"/>
			<dungeon r_name="'dungeon6a'" r_template="'commonTemplate'" r_displayName="'ALL'" accessible="1">
				<level r_name="'level1'" r_template="'bigRoom'" levelSurface="100" r_totalXP="0">
					<feature r_name="'Robber'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'Robber'"/>
					<feature r_name="'SmallBat'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'SmallBat'"/>
					<feature r_name="'BlackBear'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'BlackBear'"/>
					<feature r_name="'YoungCrab'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'YoungCrab'"/>
					<feature r_name="'PoplarDryad'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'PoplarDryad'"/>
					<feature r_name="'FallenAcolyte'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'FallenAcolyte'"/>
					<feature r_name="'Ghost'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'Ghost'"/>
					<feature r_name="'Gnoll'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'Gnoll'"/>
					<feature r_name="'GnollShaman'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'GnollShaman'"/>
					<feature r_name="'Goblin'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'Goblin'"/>
					<feature r_name="'GoblinApprentice'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'GoblinApprentice'"/>
					<feature r_name="'ClayGolem'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'ClayGolem'"/>
					<feature r_name="'YoungGriffin'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'YoungGriffin'"/>
					<feature r_name="'Hydra'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'Hydra'"/>
					<feature r_name="'Keeper'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'Keeper'"/>
					<feature r_name="'BrainLeecher'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'BrainLeecher'"/>
					<feature r_name="'WaterNaga'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'WaterNaga'"/>
					<feature r_name="'Rat'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'Rat'"/>
					<feature r_name="'Salamander'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'Salamander'"/>
					<feature r_name="'ScoutingPlant'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'ScoutingPlant'"/>
					<feature r_name="'Skeleton'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'Skeleton'"/>
					<feature r_name="'GreenSlime'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'GreenSlime'"/>
					<feature r_name="'Snake'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'Snake'"/>
					<feature r_name="'Specter'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'Specter'"/>
					<feature r_name="'BlueSpider'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'BlueSpider'"/>
					<feature r_name="'Sprite'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'Sprite'"/>
					<feature r_name="'WildCat'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'WildCat'"/>
					<feature r_name="'YoungTroll'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'YoungTroll'"/>
					<feature r_name="'Zombi'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'Zombi'"/>
					<feature r_name="'BloodCultMember'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'BloodCultMember'"/>
					<feature r_name="'BloodCultLeader'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'BloodCultLeader'"/>
					<feature r_name="'Familiar'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'Familiar'"/>
					<feature r_name="'UndeadFamiliar'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'UndeadFamiliar'"/>
					<feature r_name="'Wisp'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'Wisp'"/>
					<feature r_name="'Angel'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'Angel'"/>
					<feature r_name="'LordOfThePit'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'LordOfThePit'"/>
					<feature r_name="'AirElemental'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'AirElemental'"/>
					<feature r_name="'EarthElemental'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'EarthElemental'"/>
					<feature r_name="'FireElemental'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'FireElemental'"/>
					<feature r_name="'WaterElemental'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="'WaterElemental'"/>
				</level>
			</dungeon>
		</world>		
		<world r_name="'directWorld'" r_template="'mainTemplate'" nextDungeon="'mainDungeon'" isSingleDungeon="1">
			<dungeon r_name="'mainDungeon'" r_template="'commonTemplate'" dungeonLayout="'cave'">
				<level r_name="'level1'" r_template="'cave'" levelSurface="100" r_totalXP="0">
					<feature r_name="'goblinKing'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" r_shape="'farStart1'" monsterName="'GoblinKing'"/>
					<feature r_name="'TrainingDummy'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" r_shape="'random1'" monsterName="'TrainingDummy'"/>
					<featureTemplate r_name="'artefactTemplate'" r_template="'mainFeatureTemplate'" r_tile="'specificLoot'" r_shape="'farStart1'" lootName="r_name"/>
					<feature r_name="'Mutilator'" r_template="'artefactTemplate'"/>
					<feature r_name="'HeadCutter'" r_template="'artefactTemplate'"/>
					<feature r_name="'Impaler'" r_template="'artefactTemplate'"/>
					<feature r_name="'ElementalStaff'" r_template="'artefactTemplate'"/>
					<feature r_name="'ElvenCompositeLongbow'" r_template="'artefactTemplate'"/>
					<feature r_name="'PortableBallista'" r_template="'artefactTemplate'"/>
					<feature r_name="'LightningJavelin'" r_template="'artefactTemplate'"/>
				</level>	
			</dungeon>
		</world>
	</worlds>
</data>