<data>
	<worlds>
		<worldTemplate r_name="'mainTemplate'"
									 lastDungeonDepth="0"
									 isCampaign="0"
									 isSingleDungeon="0"/>
		<!-- -->
		<!-- Campaign World -->
		<!-- -->
		<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="'GiantMosquito'"/>
			<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="'SwampDrake'"/>
			<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" dungeonFloor="4">
				<level r_name="'level1'" r_template="'bigRoom'" levelSurface="100" r_totalXP="0">
					<loop r_name="'monsterLoop'" r_loopCondition="length(globalParameters.libraries.monsterLibrary)>iLoop" r_loopStep="all({child.iLoop=iLoop,child.r_name=(child.r_name+iLoop++)})" iLoop="0">
						<feature r_name="'monster'" r_template="'mainFeatureTemplate'" r_tile="'monsterTile'" monsterName="monsterName=(globalParameters.libraries.monsterLibrary)[iLoop].r_name" iLoop="0"/>
					</loop>
				</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="'bigRoom'" levelSurface="100" r_totalXP="0">
					<loop r_name="'cloudLoop'" r_loopCondition="1>iLoop" r_loopStep="child.r_name=(child.r_name+iLoop++)" iLoop="0">
						<feature r_name="'blinkingCloud'" r_template="'mainFeatureTemplate'" r_tile="'blinkingCloud'" r_shape="'random1'"/>
					</loop>
				</level>	
			</dungeon>
		</world>
	</worlds>
</data>