<data>
	<actors>
		<!-- Main Template -->
		<actorTemplate r_name="'mainMonsterTemplate'" r_template="'mainActorTemplate'"
									 r_displayName="'ToBeReplaced'"
									 level="0"
									 effectiveLevel="effectiveLevel=((gameParameters.difficulty==0)?level:(level+level/10+0.05*(2D(level+1)-1)))"
									 maxHitPoints="1"
									 errant="0"
									 r_faction="1"
									 r_hostileFaction="{1,0,0,0,0}"
									 r_allyFaction="{0,1,0,1,0}"
									 isActor="1"
									 r_behavior="'behaviorOffensive'"
									 additionalPowers="{}"
									 r_autoAttacks="{'standardCloseCombat'}"
									 encounterTags="{}"
									 immunities="{}"
									 tooltip="r_displayName+' ('+floor(hitPoints)+'/'+floor(maxHitPoints)+')\n'+((length(encounterTags)>0)?(text.monsterTagType+'\n'+arrayToValue($0+', '+$1,arraysToArray(text.(attributeByName('monsterTag'+$0)),encounterTags))+'\n'):'')+((length(immunities)>0)?(text.monsterImmunities+'\n'+arrayToValue($0+', '+$1,arraysToArray(text.(attributeByName('effectName'+$0)),immunities))+'\n'):'')"
									 MonsterWeaponSkill="0"
									 Strength="0"
									 Dexterity="0"
									 character="self"
									 wanderingMonster="0"
									 lootStuff="1">
			<power r_template="'doNothing'"/>
			<power r_template="'endTurn'"/>
			<power r_template="'standardCloseCombat'"/>
			<itemTemplate r_name="'monsterWeaponTemplateModification'" r_lootable="0" weaponSkill="MonsterWeaponSkill">
				<action r_name="'attackAction'" fatigueCost="0"/>
			</itemTemplate>
			<itemTemplate r_name="'WeaponWithPoisonInterface'"
										r_displayName="text.monsterWeaponPoisonousFang"
										poisonDamage="1"
										powerDuration="200"
										powerTickCount="5"
										powerRecastRule="'stack'"
										powerHitBonus="effectiveLevel*1.5">
				<action r_name="'attackAction'">
					<effect r_name="'mainEffect'">
						<effect r_name="'hitEffect'">
							<effect r_name="'damageEffect'">
								<effect r_name="'Poison'" r_template="'physicalPoisonAttack'">
									<modifier r_name="'poisonOnDamage'" r_template="'mainModifierTemplate'" r_modifierTarget="'r_enabled'" r_modifiedValue="$0&&(resultingDamage>0)"/>
									<effect r_name="'onHitEffect'"
													r_effectName="poisonName"/>
								</effect>
							</effect>
						</effect>
					</effect>
				</action>
			</itemTemplate>

			<itemTemplate r_name="'WeaponWithSlowInterface'"
										powerSlowValue="1.5"
										powerDuration="500"
										powerRecastRule="'fail'"
										powerHitBonus="effectiveLevel*1.5+5">
				<action r_name="'attackAction'">
					<effect r_name="'mainEffect'">
						<effect r_name="'hitEffect'">
							<effect r_name="'damageEffect'">
								<effect r_name="'slowEffect'" r_template="'physicalSlowAttack'"
												r_graphic="'YoungCrab.png'"
												r_displayName="text.monsterEffectSlowingClaws"/>
							</effect>
						</effect>
					</effect>
				</action>
			</itemTemplate>
			
			<itemTemplate r_name="'monsterWeaponTemplate'" r_template="{'mainWeaponTemplate','monsterWeaponTemplateModification'}" baseWeaponHitBonus="baseWeaponHitBonus=(1+floor(effectiveLevel*0.2))" baseWeaponDamage="baseWeaponDamage=(7+floor(effectiveLevel*0.4))"/>
			<itemTemplate r_name="'monsterDualWeaponTemplate'" r_template="{'mainWeaponTemplate','monsterWeaponTemplateModification'}" baseWeaponHitBonus="baseWeaponHitBonus=(2+floor(effectiveLevel*0.2))" baseWeaponDamage="baseWeaponDamage=(5+floor(effectiveLevel*0.4))" slot="'onehand'" weaponSpeed="80" weaponCriticalPercentage="10"/>
			<itemTemplate r_name="'monsterDualHeavyWeaponTemplate'" r_template="{'mainWeaponTemplate','monsterWeaponTemplateModification'}" baseWeaponHitBonus="baseWeaponHitBonus=(1+floor(effectiveLevel*0.2))" baseWeaponDamage="baseWeaponDamage=(7+floor(effectiveLevel*0.4))" slot="'onehand'"/>
			<itemTemplate r_name="'monsterRangedWeaponTemplate'" r_template="{'mainRangedWeaponTemplate','monsterWeaponTemplateModification'}" baseWeaponHitBonus="baseWeaponHitBonus=(0+floor(effectiveLevel*0.2))" baseWeaponDamage="baseWeaponDamage=(7+floor(effectiveLevel*0.4))" weaponMaxRange="weaponMaxRange=(5+min(7,floor(effectiveLevel*0.4)))"/>
			
			<event r_name="'onDeath'" r_template="'mainEventTemplate'" r_enabled="destructionOnDying&&(r_xpValue>0)&&(50>=1D100)" r_eventTarget="'isDead'" r_targetType="'attribute'">
				<effect r_name="'orbCreation'" r_template="{'mainSelfEffectTemplate','controllerEffect'}"
								r_className="'CctlEffectCreation'"
								r_creationType="'activable'"
								r_creationName="'LifeOrb'"
								rw_xTarget="w_xCoord"
								rw_yTarget="w_yCoord"
								r_params="{}"/>
			</event>
			
			<modifier r_name="'effectGraphicModifier'" r_template="'mainModifierTemplate'" r_modifierTarget="'r_graphic'" r_modifiedValue="((effects.count>0)&&effects[0]&&(effects[0].r_graphic))?($0+{'monsterEffect_'+effects[0].r_graphic}):$0"/>
			<event r_name="'onEffects'" r_template="'mainEventTemplate'" r_eventTarget="'effects'" r_targetType="'evaluator'">
				<effect r_name="'refresh'" r_template="'mainGraphicEffectTemplate'" r_type="'LocalRefresh'"/>
			</event>
		</actorTemplate>

		<!-- Monster with bonus levels -->
		<actorTemplate 	r_name="'dungeonStandardMonsterInterface'"
										gradeBonus="(exists(creator)||!exists(world))?0:(floor(world.lastDungeonDepth/7))"
										levelBonus="12*gradeBonus">
			<modifier r_name="'nameModifier'" r_template="'mainModifierTemplate'" r_enabled="gradeBonus>0" r_modifierTarget="'r_displayName'" r_modifiedValue="$0+'+'+((gradeBonus>1)?'+':'')"/>
			<modifier r_name="'levelModifier'" r_template="'mainModifierTemplate'" r_enabled="gradeBonus>0" r_modifierTarget="'level'" r_modifiedValue="$0+levelBonus"/>
		</actorTemplate>
		
		<!-- Main Family templates -->
		<actorTemplate r_name="'basicMonsterTemplate'" r_template="'mainMonsterTemplate'"
									 encounterTags="{'living'}"
									 immunities="{}"/>
		<actorTemplate r_name="'animalMonsterTemplate'" r_template="'mainMonsterTemplate'"
									 encounterTags="{'living','animal'}"
									 immunities="{}"/>
		<actorTemplate r_name="'undeadMonsterTemplate'" r_template="'mainMonsterTemplate'"
									 encounterTags="{'undead','unholy'}"
									 immunities="{'Shaken','Poison','Disease'}"/>
		<actorTemplate r_name="'constructMonsterTemplate'" r_template="'mainMonsterTemplate'"
									 encounterTags="{'construct','mindless'}"
									 immunities="{'Shaken','Poison'}"
									 suffersCritical="0"/>
		<actorTemplate r_name="'oozeMonsterTemplate'" r_template="'mainMonsterTemplate'"
									 encounterTags="{'living','ooze','mindless'}"
									 immunities="{}"
									 suffersCritical="0"/>
		<actorTemplate r_name="'angelMonsterTemplate'" r_template="'mainMonsterTemplate'"
									 encounterTags="{'angel','holy'}"
									 immunities="{'Holy'}"/>
		<actorTemplate r_name="'demonMonsterTemplate'" r_template="'mainMonsterTemplate'"
									 encounterTags="{'demon','unholy'}"
									 immunities="{'Shaken'}"/>
		<actorTemplate r_name="'elementalMonsterTemplate'" r_template="'mainMonsterTemplate'"
									 encounterTags="{'elemental','mindless'}"
									 immunities="{'Poison','Disease'}"/>
		<actorTemplate r_name="'plantMonsterTemplate'" r_template="'mainMonsterTemplate'"
									 encounterTags="{'living','mindless'}"
									 immunities="{'Shaken','Poison'}"/>

		<!-- Additional templates -->
		<actorTemplate r_name="'summonedMonsterAdditionalTemplate'"
									 r_behavior="'behaviorOffensiveFollower'"
									 r_faction="(exists(creator))?(creator.r_faction):1"
									 r_hostileFaction="(exists(creator))?(creator.r_hostileFaction):{1,0,0,0,0}"
									 r_allyFaction="(exists(creator))?(creator.r_allyFaction):{0,1,0,1,0}"
									 r_xpValue="0"
									 dyingTime="0"
									 lootStuff="0">
			<modifier r_name="'summonedTag'" r_template="'mainModifierTemplate'" r_modifierTarget="'encounterTags'" r_modifiedValue="$0+{'summon'}"/>
			<event r_name="'lifeDuration'" r_template="'mainEventTemplate'" r_enabled="dyingTime>0" r_eventTarget="'rw_currentTime'" r_targetType="'attribute'">
				<effect r_name="'destruction'" r_template="{'mainSelfEffectTemplate','multiEffect'}" r_enabled="(rw_currentTime>dyingTime)&&!isDead">
					<effect r_name="'dead'" r_template="{'mainSelfEffectTemplate','evaluationEffect'}" r_effect="all({destructionOnDying=0,isDead=1})"/>
					<effect r_name="'remove'" r_template="{'mainSelfEffectTemplate','controllerEffect'}" r_className="'CctlEffectDestructor'" r_loot="0"/>
					<effect r_name="'log'" r_template="'logDeathSummon'" rw_currentTime="w_oldValue"/>
				</effect>
			</event>
			<event r_name="'creatorDie'" r_template="'mainEventTemplate'" r_enabled="exists(creator)" r_eventTarget="'creator.isDead'" r_targetType="'attribute'">
				<effect r_name="'destruction'" r_template="{'mainSelfEffectTemplate','multiEffect'}">
					<effect r_name="'dead'" r_template="{'mainSelfEffectTemplate','evaluationEffect'}" r_effect="all({destructionOnDying=0,isDead=1})"/>
					<effect r_name="'remove'" r_template="{'mainSelfEffectTemplate','controllerEffect'}" r_className="'CctlEffectDestructor'" r_loot="0"/>
					<effect r_name="'log'" r_template="'logDeathSummon'"/>
				</effect>
			</event>
		</actorTemplate>
		
		<!-- weapons template -->
		<actorTemplate r_name="'MonsterWithSwordInterface'"
									 Sword="MonsterWeaponSkill">
			<item r_name="'ShortSword'" r_template="'randomMonsterSword'"/>
		</actorTemplate>
		<actorTemplate r_name="'MonsterWithAxeInterface'"
									 Axe="MonsterWeaponSkill">
			<item r_name="'HandAxe'" r_template="'randomMonsterAxe'"/>
		</actorTemplate>
		<actorTemplate r_name="'MonsterWithMaceInterface'"
									 Mace="MonsterWeaponSkill">
			<item r_name="'Mace'" r_template="'randomMonsterMace'"/>
		</actorTemplate>
		<actorTemplate r_name="'MonsterWithBowAndSwordInterface'"
									 Bow="MonsterWeaponSkill"
									 Sword="MonsterWeaponSkill">
			<item r_name="'Bow'" r_template="'randomMonsterBow'"/>
			<item r_name="'ShortSword'" r_template="'randomMonsterSword'"/>
		</actorTemplate>
		<actorTemplate r_name="'MonsterWithDaggersInterface'"
									 Dagger="MonsterWeaponSkill">
			<item r_name="'rightDagger'" r_template="'randomMonsterDagger'"/>
			<item r_name="'leftDagger'" r_template="'randomMonsterDagger'"/>
		</actorTemplate>
		<actorTemplate r_name="'MonsterWithRogueWeaponInterface'" r_template="randomElement({'MonsterWithBowAndSwordInterface','MonsterWithDaggersInterface'})"/>
		<actorTemplate r_name="'MonsterWithGreatAxeInterface'"
									 Axe="MonsterWeaponSkill">
			<item r_name="'SplittingMaul'" r_template="'randomMonsterGreatAxe'"/>
		</actorTemplate>
		<actorTemplate r_name="'MonsterWithAxeAndShieldInterface'"
									 Axe="MonsterWeaponSkill"
									 Shield="effectiveLevel+1">
			<item r_name="'HandAxe'" r_template="'randomMonsterAxe'"/>
			<item r_name="'Buckler'" r_template="'randomMonsterShield'"/>
		</actorTemplate>
		<actorTemplate r_name="'MonsterWithWarriorWeaponInterface'" r_template="randomElement({'MonsterWithGreatAxeInterface','MonsterWithAxeAndShieldInterface'})"/>
		<actorTemplate r_name="'MonsterWithStaffInterface'"
									 Staff="MonsterWeaponSkill">
			<item r_name="'Staff'" r_template="'randomMonsterStaff'"/>
		</actorTemplate>
		<actorTemplate r_name="'MonsterWithMaceAndShieldInterface'"
									 Mace="MonsterWeaponSkill"
									 Shield="effectiveLevel+1">
			<item r_name="'Mace'" r_template="'randomMonsterMace'"/>
			<item r_name="'Buckler'" r_template="'randomMonsterShield'"/>
		</actorTemplate>
		<actorTemplate r_name="'MonsterWithPriestWeaponInterface'" r_template="randomElement({'MonsterWithStaffInterface','MonsterWithMaceAndShieldInterface'})"/>
		<actorTemplate r_name="'MonsterWithSwordAndShieldInterface'"
									 Sword="MonsterWeaponSkill"
									 Shield="effectiveLevel+1">
			<item r_name="'Sword'" r_template="'randomMonsterSword'"/>
			<item r_name="'Buckler'" r_template="'randomMonsterShield'"/>
		</actorTemplate>
		<actorTemplate r_name="'MonsterWithWeaponAndShieldInterface'" r_template="randomElement({'MonsterWithSwordAndShieldInterface','MonsterWithAxeAndShieldInterface','MonsterWithMaceAndShieldInterface'})"/>
		
		<!-- Template Per Level -->
		<actorTemplate r_name="'monsterClassTemplate'"
									 r_xpValue="r_xpValue=(15>level)?({10,15,20,30,45,70,100,130,160,190,220,250,280,320,360}[level]):((level-7)*50)"
									 maxHitPoints="5+5*max(effectiveLevel,1)+5*Constitution"
									 customCloseCombatHitBonus="effectiveLevel-5"
									 customRangedHitBonus="effectiveLevel-5"
									 customCloseCombatDefenseBonus="effectiveLevel-5"
									 customRangedDefenseBonus="effectiveLevel-5"
									 customCloseCombatDamageBonus="-5"
									 customRangedDamageBonus="-5"
									 customCloseCombatPiercingBonus="0"
									 customRangedPiercingBonus="0"/>
		<actorTemplate r_name="'warriorMonster'" r_template="'monsterClassTemplate'"
									 Strength="effectiveLevel+1"
									 Dexterity="effectiveLevel/2+1"
									 Constitution="effectiveLevel"
									 CloseCombat="effectiveLevel+1"
									 RangedCombat="effectiveLevel/2+1"
									 Dodge="effectiveLevel/2+1"
									 Resistance="effectiveLevel/2+1"
									 NaturalArmor="2*effectiveLevel"
									 attackDamageAbsorption="customDamageAbsorption+effectiveLevel"
									 customCloseCombatDamageBonus="effectiveLevel-5"
									 customRangedDamageBonus="effectiveLevel-5"
									 MonsterWeaponSkill="effectiveLevel+1"/>
		<actorTemplate r_name="'rogueMonster'" r_template="'monsterClassTemplate'"
									 Strength="effectiveLevel/2+1"
									 Dexterity="effectiveLevel+1"
									 Constitution="effectiveLevel/2"
									 CloseCombat="effectiveLevel+1"
									 RangedCombat="effectiveLevel+1"
									 Dodge="effectiveLevel+1"
									 Resistance="effectiveLevel/2+1"
									 NaturalArmor="effectiveLevel"
									 attackDamageAbsorption="customDamageAbsorption+effectiveLevel/2"
									 customCloseCombatPiercingBonus="effectiveLevel"
									 customRangedPiercingBonus="effectiveLevel"
									 MonsterWeaponSkill="effectiveLevel+1"/>
		<actorTemplate r_name="'mageMonster'" r_template="'monsterClassTemplate'"
									 Dexterity="effectiveLevel/2+1"
									 Intelligence="effectiveLevel+1"
									 CloseCombat="effectiveLevel/2+1"
									 RangedCombat="effectiveLevel/2+1"
									 Magic="effectiveLevel+1"
									 Dodge="effectiveLevel/2+1"
									 Resistance="effectiveLevel/2+1"
									 NaturalArmor="0"
									 MonsterWeaponSkill="effectiveLevel/2+1"/>
		<actorTemplate r_name="'priestMonster'" r_template="'monsterClassTemplate'"
									 Strength="effectiveLevel/2+1"
									 Dexterity="effectiveLevel/2+1"
									 Intelligence="effectiveLevel/2+1"
									 Constitution="effectiveLevel/2"
									 CloseCombat="effectiveLevel/2+1"
									 RangedCombat="effectiveLevel/2+1"
									 Magic="effectiveLevel/2+1"
									 Dodge="effectiveLevel/2+1"
									 Resistance="effectiveLevel+1"
									 NaturalArmor="effectiveLevel"
									 attackDamageAbsorption="customDamageAbsorption+effectiveLevel/2"
									 customCloseCombatDamageBonus="effectiveLevel/2-5"
									 customRangedDamageBonus="effectiveLevel/2-5"
									 MonsterWeaponSkill="effectiveLevel/2+1"/>
										 
		<!-- Bandit -->
		<actorTemplate r_name="'banditTemplate'" r_template="{'basicMonsterTemplate','rogueMonster','MonsterWithRogueWeaponInterface','dungeonStandardMonsterInterface'}"
									 r_autoAttacks="{'standardRangedCombat','standardCloseCombat'}"
									 customCloseCombatHitBonus="effectiveLevel-2"
									 customRangedHitBonus="effectiveLevel-2"
									 customCloseCombatPiercingBonus="5+effectiveLevel"
									 customRangedPiercingBonus="5+effectiveLevel">
		</actorTemplate>
		<actor r_name="'Robber'" r_template="'banditTemplate'"
						 r_displayName="text.monsterNameRobber"
						 r_graphic="{'bandit1.png'}"
						 level="4"/>
		<actor r_name="'Bandit'" r_template="'banditTemplate'"
						 r_displayName="text.monsterNameBandit"
						 r_graphic="{'bandit2.png'}"
						 level="7"/>
		<actor r_name="'Thief'" r_template="'banditTemplate'"
						 r_displayName="text.monsterNameThief"
						 r_graphic="{'bandit3.png'}"
						 level="10"/>
		<!-- Bat -->
		<actorTemplate r_name="'batTemplate'" r_template="{'animalMonsterTemplate','rogueMonster','dungeonStandardMonsterInterface'}"
										 moveTimeCostMultiplier="0.6"
										 isFlying="1">
			<item r_name="'slam'" r_template="'monsterWeaponTemplate'"/>
			<modifier r_name="'defense'" r_template="'mainModifierTemplate'" r_modifierTarget="'Defense'" r_modifiedValue="$0+5"/> 
			<power r_name="'FuryStrike'" r_template="'weaponProcAllWeaponsTemplate'"
						 r_displayName="text.powerNameFuryStrike"
						 powerDuration="2D3*50"
						 powerRecastRule="'fail'"
						 powerHitBonus="effectiveLevel*1.5+5"
						 procEffectTemplate="'mentalFuryAttack'"
						 procProbability="1D2==1"/>
		</actorTemplate>
		<actor r_name="'SmallBat'" r_template="'batTemplate'"
						 r_displayName="text.monsterNameSmallBat"
						 r_graphic="{'bat1.png'}"
						 level="2"/>
		<actor r_name="'GreyBat'" r_template="'batTemplate'"
						 r_displayName="text.monsterNameGreyBat"
						 r_graphic="{'bat3.png'}"
						 level="5"/>
		<actor r_name="'GiantBat'" r_template="'batTemplate'"
						 r_displayName="text.monsterNameGiantBat"
						 r_graphic="{'bat2.png'}"
						 level="8"/>
		<!-- Bear -->
		<actorTemplate 	r_name="'bearTemplate'" r_template="{'animalMonsterTemplate','warriorMonster','dungeonStandardMonsterInterface'}"
										additionalPowers="{'rage'}">
			<item r_name="'claws'" r_template="'monsterWeaponTemplate'"/>
			<modifier r_name="'maxHitPoints'" r_template="'mainModifierTemplate'" r_modifierTarget="'maxHitPoints'" r_modifiedValue="$0*1.2"/> 
			<power r_name="'rage'" r_template="{'Rage','powerMonsterTemplate','activePowerWithCooldownInterface'}" cooldown="3000" powerHealBonus="10+5*effectiveLevel">
				<action r_name="'use'" r_enabled="maxHitPoints>=(hitPoints*2)"/>
			</power>
		</actorTemplate>
		<actor r_name="'BlackBear'" r_template="'bearTemplate'"
						 r_displayName="text.monsterNameBlackBear"
						 r_graphic="{'bear1.png'}"
						 level="3"/>
		<actor r_name="'BrownBear'" r_template="'bearTemplate'"
						 r_displayName="text.monsterNameBrownBear"
						 r_graphic="{'bear2.png'}"
						 level="6"/>
		<actor r_name="'PolarBear'" r_template="'bearTemplate'"
						 r_displayName="text.monsterNamePolarBear"
						 r_graphic="{'bear3.png'}"
						 level="9"/>
		<!-- Crab -->
		<actorTemplate r_name="'crabTemplate'" r_template="{'animalMonsterTemplate','warriorMonster','dungeonStandardMonsterInterface'}">
			<item r_name="'claws'" r_template="{'monsterWeaponTemplate','WeaponWithSlowInterface'}" powerDuration="500+100*1D5"/>
		</actorTemplate>
		<actor r_name="'YoungCrab'" r_template="'crabTemplate'"
						 r_displayName="text.monsterNameYoungCrab"
						 r_graphic="{'YoungCrab.png'}"
						 level="2"/>
		<actor r_name="'StrongCrab'" r_template="'crabTemplate'"
						 r_displayName="text.monsterNameStrongCrab"
						 r_graphic="{'StrongCrab.png'}"
						 level="5"/>
		<actor r_name="'ElderCrab'" r_template="'crabTemplate'"
						 r_displayName="text.monsterNameElderCrab"
						 r_graphic="{'ElderCrab.png'}"
						 level="8"/>						 
		<!-- Dryads -->
		<actorTemplate 	r_name="'dryadTemplate'" r_template="{'basicMonsterTemplate','priestMonster','dungeonStandardMonsterInterface'}"
											r_autoAttacks="{'confuse','root','standardRangedCombat','standardCloseCombat'}"
											Holy="1"
											Enchantment="effectiveLevel+1"
											Conjuration="effectiveLevel+1">
			<item r_name="'slam'" r_template="'monsterWeaponTemplate'"/>
			<item r_name="'blowgun'" r_template="'monsterRangedWeaponTemplate'"
						missileGraphic="'arrow'+{'Right','Up','Left','Down'}[easyOrientation4(actor.w_xCoord, actor.w_yCoord, target.w_xCoord, target.w_yCoord)]+'.png'"/>
			<power r_name="'confuse'" r_template="{'Confusion','powerMonsterTemplate','activePowerWithCooldownInterface'}" cooldown="1200" powerDuration="1D3*100"/>
			<power r_name="'root'" r_template="{'Root','powerMonsterTemplate','activePowerWithCooldownInterface'}" cooldown="800"/>
		</actorTemplate>
		<actor r_name="'PoplarDryad'" r_template="'dryadTemplate'"
						 r_displayName="text.monsterNamePoplarDryad"
						 r_graphic="{'dryad1.png'}"
						 level="3">
		</actor>
		<actor r_name="'ElmDryad'" r_template="'dryadTemplate'"
						 r_displayName="text.monsterNameElmDryad"
						 r_graphic="{'dryad2.png'}"
						 level="7">
		</actor>
		<actor r_name="'OakDryad'" r_template="'dryadTemplate'"
						 r_displayName="text.monsterNameOakDryad"
						 r_graphic="{'dryad3.png'}"
						 level="11">
		</actor>
		<!-- Fallen -->
		<actorTemplate r_name="'fallenTemplate'" r_template="{'basicMonsterTemplate','priestMonster','MonsterWithWeaponAndShieldInterface','dungeonStandardMonsterInterface'}"
									 additionalPowers="{'summonWisp'}"
									 r_autoAttacks="{'healing','standardCloseCombat'}"
									 Holy="1"
									 Conjuration="effectiveLevel+1"
									 Transmutation="effectiveLevel+1"
									 Strength="effectiveLevel+1">
			<power r_name="'summonWisp'" r_template="{'summonMonsterTemplate','conjurationSpellTemplate','powerMonsterTemplate','activePowerWithCooldownInterface'}"
						 powerDuration="1500"
						 cooldown="1000"
						 monsterName="'Wisp'"
						 summonedMonsterLevel="1+floor(Conjuration/2)+summonSpellLevelBonus"/>
			<power r_name="'healing'" r_template="{'HealTemplate','powerMonsterTemplate','activePowerWithCooldownInterface'}"
						 r_displayName="text.powerNameHealing"
						 powerHealBonus="2*Transmutation+5*Holy"
						 powerRange="4"
						 powerFatigueCost="10"
						 cooldown="400-100*Holy">
				<action r_name="'use'"
								r_targetingType="'direct'">
					<modifier r_name="'targetLifeCheck'" r_template="'mainModifierTemplate'" r_modifierTarget="'r_canTarget'" r_modifiedValue="$0&&(target.maxHitPoints>target.hitPoints)"/>
				</action>
			</power>
		</actorTemplate>
		<actor r_name="'FallenAcolyte'" r_template="'fallenTemplate'"
						 r_displayName="text.monsterNameFallenAcolyte"
						 r_graphic="{'fallenpaladin1.png'}"
						 level="6"/>
		<actor r_name="'FallenInitiate'" r_template="'fallenTemplate'"
						 r_displayName="text.monsterNameFallenInitiate"
						 r_graphic="{'fallenpaladin2.png'}"
						 Holy="2"
						 level="9"/>
		<actor r_name="'FallenPaladin'" r_template="'fallenTemplate'"
						 r_displayName="text.monsterNameFallenPaladin"
						 r_graphic="{'fallenpaladin3.png'}"
						 Holy="3"
						 level="12"/>		
		<!-- Ghost -->
		<actorTemplate 	r_name="'ghostTemplate'" r_template="{'undeadMonsterTemplate','priestMonster','dungeonStandardMonsterInterface'}"
											isFlying="1"
											r_autoAttacks="{'shaken','standardCloseCombat'}"
											Enchantment="effectiveLevel+1">
			<modifier r_name="'immunities'" r_template="'mainModifierTemplate'" r_modifierTarget="'immunities'" r_modifiedValue="$0+{'Grounded'}"/>
			<item r_name="'slam'" r_template="'monsterWeaponTemplate'"/>
			<power r_name="'shaken'" r_template="{'Shaken','powerMonsterTemplate','activePowerWithCooldownInterface'}" cooldown="2000"/>
		</actorTemplate>
		<actor r_name="'Ghost'" r_template="'ghostTemplate'"
						 r_displayName="text.monsterNameGhost"
						 r_graphic="{'RobedFigure.png'}"
						 level="4"/>
		<actor r_name="'VengefulGhost'" r_template="'ghostTemplate'"
						 r_displayName="text.monsterNameVengefulGhost"
						 r_graphic="{'HoodedFigure.png'}"
						 level="7"/>
		<actor r_name="'AncientGhost'" r_template="'ghostTemplate'"
						 r_displayName="text.monsterNameAncientGhost"
						 r_graphic="{'CloakedFigure.png'}"
						 level="10"/>
		<actor r_name="'summonedGhost'" r_template="{'Ghost','summonedMonsterAdditionalTemplate'}"/>
		<!-- Gnoll -->
		<actorTemplate r_name="'gnollTemplate'" r_template="{'basicMonsterTemplate','warriorMonster','MonsterWithWarriorWeaponInterface','dungeonStandardMonsterInterface'}"
										 r_autoAttacks="{'Bash','standardCloseCombat'}">
			<power r_name="'Bash'" r_template="{'Bash','powerMonsterTemplate','activePowerWithCooldownInterface'}"
						 powerHitBonus="effectiveLevel*1.5"
						 powerDamageBonus="effectiveLevel*1.5"
						 cooldown="500"/>
		</actorTemplate>
		<actor r_name="'Gnoll'" r_template="'gnollTemplate'"
						 r_displayName="text.monsterNameGnoll"
						 r_graphic="{'gnoll1.png'}"
						 level="1"/>
		<actor r_name="'GnollWarrior'" r_template="'gnollTemplate'"
						 r_displayName="text.monsterNameGnollWarrior"
						 r_graphic="{'gnoll2.png'}"
						 level="4"/>
		<actor r_name="'GnollVeteran'" r_template="'gnollTemplate'"
						 r_displayName="text.monsterNameGnollVeteran"
						 r_graphic="{'gnoll3.png'}"
						 level="7"/>
		<!-- Gnoll Shaman -->
		<actorTemplate r_name="'gnollShamanTemplate'" r_template="{'basicMonsterTemplate','priestMonster','MonsterWithPriestWeaponInterface','dungeonStandardMonsterInterface'}"
										 r_autoAttacks="{'healing','standardCloseCombat'}"
										 Holy="1"
										 Transmutation="effectiveLevel+1"
										 Strength="effectiveLevel+1">
			<power r_name="'healing'" r_template="{'HealTemplate','powerMonsterTemplate','activePowerWithCooldownInterface'}"
						 r_displayName="text.powerNameHealing"
						 powerHealBonus="2*Transmutation+5*Holy"
						 powerRange="4"
						 powerFatigueCost="10"
						 cooldown="400-100*Holy">
				<action r_name="'use'"
								r_targetingType="'direct'">
					<modifier r_name="'targetLifeCheck'" r_template="'mainModifierTemplate'" r_modifierTarget="'r_canTarget'" r_modifiedValue="$0&&(target.maxHitPoints>target.hitPoints)"/>
				</action>
			</power>
		</actorTemplate>
		<actor r_name="'GnollShaman'" r_template="'gnollShamanTemplate'"
						 r_displayName="text.monsterNameGnollShaman"
						 r_graphic="{'gnollshaman1.png'}"
						 level="3"/>
		<actor r_name="'GnollPriest'" r_template="'gnollShamanTemplate'"
						 r_displayName="text.monsterNameGnollPriest"
						 r_graphic="{'gnollshaman2.png'}"
						 Holy="2"
						 level="5"/>
		<actor r_name="'GnollElder'" r_template="'gnollShamanTemplate'"
						 r_displayName="text.monsterNameGnollElder"
						 r_graphic="{'gnollshaman3.png'}"
						 Holy="3"
						 level="7"/>						 
		<!-- Goblin -->
		<actorTemplate r_name="'goblinTemplate'" r_template="{'basicMonsterTemplate','rogueMonster','MonsterWithRogueWeaponInterface','dungeonStandardMonsterInterface'}"
									 r_autoAttacks="{'standardRangedCombat','standardCloseCombat'}">
			<power r_name="'SilenceStrike'" r_template="'weaponProcAllWeaponsTemplate'"
						 r_displayName="text.powerNameSilenceStrike"
						 powerDuration="2D5*50"
						 powerRecastRule="'fail'"
						 powerHitBonus="effectiveLevel*1.5"
						 procEffectTemplate="'physicalSilenceAttack'"
						 procProbability="1D3==1"/>
		</actorTemplate>
		<actor r_name="'Goblin'" r_template="'goblinTemplate'"
						 r_displayName="text.monsterNameGoblin"
						 r_graphic="{'gob00.png'}"
						 level="1"/>
		<actor r_name="'RedGoblin'" r_template="'goblinTemplate'"
						 r_displayName="text.monsterNameRedGoblin"
						 r_graphic="{'gob01.png'}"
						 level="3"/>
		<actor r_name="'VeteranGoblin'" r_template="'goblinTemplate'"
						 r_displayName="text.monsterNameVeteranGoblin"
						 r_graphic="{'gob02.png'}"
						 level="5"/>
		<!-- Goblin Sorcerer -->
		<actorTemplate r_name="'goblinSorcererTemplate'" r_template="{'basicMonsterTemplate','mageMonster','dungeonStandardMonsterInterface'}"
										 additionalPowers="{'SummonFamiliar'}"
										 r_autoAttacks="{'Incineration','standardCloseCombat'}"
										 Evocation="effectiveLevel+1"
										 Transmutation="effectiveLevel+1"
										 Fire="1">
			<power r_name="'SummonFamiliar'" r_template="{'SummonFamiliar','powerMonsterTemplate','activePowerWithCooldownInterface'}"/>
			<power r_name="'Incineration'" r_template="{'Incineration','powerMonsterTemplate'}"/>
		</actorTemplate>
		<actor r_name="'GoblinApprentice'" r_template="'goblinSorcererTemplate'"
						 r_displayName="text.monsterNameGoblinApprentice"
						 r_graphic="{'gob_sorcerer1.png'}"
						 level="2"/>
		<actor r_name="'GoblinWizard'" r_template="'goblinSorcererTemplate'"
						 r_displayName="text.monsterNameGoblinWizard"
						 r_graphic="{'gob_sorcerer2.png'}"
						 level="4"/>
		<actor r_name="'GoblinSorcerer'" r_template="'goblinSorcererTemplate'"
						 r_displayName="text.monsterNameGoblinSorcerer"
						 r_graphic="{'gob_sorcerer3.png'}"
						 level="6"
						 Fire="2"/>
		<!-- Golem -->
		<actorTemplate r_name="'golemTemplate'" r_template="{'constructMonsterTemplate','warriorMonster','dungeonStandardMonsterInterface'}"
							knownTrapMoveCost="1">
			<item r_name="'slam'" r_template="'monsterWeaponTemplate'"/>
			<modifier r_name="'armor'" r_template="'mainModifierTemplate'" r_modifierTarget="'NaturalArmor'" r_modifiedValue="$0*2"/> 
			<modifier r_name="'defense'" r_template="'mainModifierTemplate'" r_modifierTarget="'Defense'" r_modifiedValue="$0*0.5"/> 
		</actorTemplate>
		<actor r_name="'ClayGolem'" r_template="'golemTemplate'"
						 r_displayName="text.monsterNameClayGolem"
						 r_graphic="{'golem01.png'}"
						 level="5"/>
		<actor r_name="'IronGolem'" r_template="'golemTemplate'"
						 r_displayName="text.monsterNameIronGolem"
						 r_graphic="{'golem00.png'}"
						 level="8"/>
		<actor r_name="'FireGolem'" r_template="'golemTemplate'"
						 r_displayName="text.monsterNameFireGolem"
						 r_graphic="{'golem02.png'}"
						 level="11"/>				 
		<!-- Griffin -->
		<actorTemplate r_name="'griffinTemplate'" r_template="{'animalMonsterTemplate','warriorMonster','dungeonStandardMonsterInterface'}"
										 moveTimeCostMultiplier="0.8"
										 isFlying="1">
			<modifier r_name="'damage'" r_template="'mainModifierTemplate'" r_modifierTarget="'customCloseCombatDamageBonus'" r_modifiedValue="$0+5"/>
			<item r_name="'leftSlam'" r_template="'monsterDualHeavyWeaponTemplate'"/>
			<item r_name="'rightSlam'" r_template="'monsterDualHeavyWeaponTemplate'"/>
		</actorTemplate>
		<actor r_name="'YoungGriffin'" r_template="'griffinTemplate'"
						 r_displayName="text.monsterNameYoungGriffin"
						 r_graphic="{'griffon1.png'}"
						 level="2"/>
		<actor r_name="'Griffin'" r_template="'griffinTemplate'"
						 r_displayName="text.monsterNameGriffin"
						 r_graphic="{'griffon2.png'}"
						 level="5"/>
		<actor r_name="'LargeGriffin'" r_template="'griffinTemplate'"
						 r_displayName="text.monsterNameLargeGriffin"
						 r_graphic="{'griffon3.png'}"
						 level="8"/>
		<!-- Hydra -->
		<actorTemplate 	r_name="'hydraTemplate'" r_template="{'animalMonsterTemplate','warriorMonster','dungeonStandardMonsterInterface'}"
										immunities="{'headCut'}"
										r_autoAttacks="{'multiHeadsAttack'}"
										countHeads="countHeads=floor(5+effectiveLevel/4)"
										regenerationValue="5+effectiveLevel"
										knownTrapMoveCost="1">
			<item r_name="'head'" r_template="{'monsterWeaponTemplate','WeaponWithPoisonInterface'}"
						poisonLength="3"
						poisonDamage="2"
						powerRecastRule="'resetTickIndexAndAddCharge'"
						poisonName="text.effectNameHydraPoison"
						weaponMaxRange="2"/>
			<power	r_name="'multiHeadsAttack'" r_template="'activePowerTemplate'"
							powerEffectTemplate="{'mainSelfEffectTemplate','controllerEffect'}"
							powerFatigueCost="0"
							powerRange="2">
				<action r_name="'use'">
					<effect r_name="'mainEffect'" r_className="'CctlEffectLaunchEffect'" r_repeatCount="countHeads">
						<effect r_name="'strikeHead'" r_template="{'mainTargetEffectTemplate','controllerEffect'}"
										r_className="'CctlEffectLaunchAction'"
										r_newActor="'actor'"
										r_newTarget="'target'"
										r_newActionType="'equippedItem'"
										r_newActionName="'mainhand'"
										r_delayRequest="0"
										r_params="{{'timeCost',0},{'isFree',$0||isFree}}"/>
					</effect>
				</action>
			</power>
			<power r_name="'Regeneration'" r_template="'BodyPerfection'" powerRegenerationValue="regenerationValue" maximumRegeneration="maxHitPoints" PhysicalResistanceValue="0"/>
			<event r_name="'damaged'" r_template="'mainEventTemplate'" r_eventTarget="'hitPoints'" r_targetType="'attribute'">
				<effect r_name="'cutHead'" r_template="{'mainSelfEffectTemplate','multiEffect'}" r_enabled="w_oldValue>w_newValue">
					<effect r_name="'cutHead'" r_template="{'mainSelfEffectTemplate','evaluationEffect'}" r_enabled="exists(currentAction)&&exists(currentAction.actionTags)&&contains(currentAction.actionTags,'slashing')&&contains(currentAction.actionTags,'flaming')" r_effect="--countHeads"/>
					<effect r_name="'addHead'" r_template="{'mainSelfEffectTemplate','evaluationEffect'}" r_enabled="exists(currentAction)&&exists(currentAction.actionTags)&&contains(currentAction.actionTags,'slashing')&&!contains(currentAction.actionTags,'flaming')" r_effect="++countHeads"/>
					<effect r_name="'dead'" r_template="{'mainSelfEffectTemplate','evaluationEffect'}" r_enabled="countHeads==0" r_effect="isDead=1"/>
					<effect r_name="'refresh'" r_template="'mainGraphicEffectTemplate'" r_type="'LocalRefresh'"/>
				</effect>
			</event>
			<modifier r_name="'maxHitPoints'" r_template="'mainModifierTemplate'" r_modifierTarget="'maxHitPoints'" r_modifiedValue="$0*3"/> 
			<modifier r_name="'xpValue'" r_template="'mainModifierTemplate'" r_modifierTarget="'r_xpValue'" r_modifiedValue="$0*2+100*level"/> 
		</actorTemplate>
		<actor r_name="'Hydra'" r_template="'hydraTemplate'"
						 r_displayName="relocate(text.monsterNameHydra)"
						 r_graphic="{'Hydra'+min(countHeads,12)}"
						 level="level=max((2*dungeonDepth-1), 1)"/>
		<!-- Imp -->
		<actorTemplate r_name="'impTemplate'" r_template="{'demonMonsterTemplate','mageMonster','dungeonStandardMonsterInterface'}"
										 r_autoAttacks="{'standardCloseCombat','fireBolt'}"
										 Evocation="effectiveLevel+1"
										 isFlying="1">
			<item r_name="'slam'" r_template="'monsterWeaponTemplate'"/>
			<power r_name="'fireBolt'" r_template="{'FireBolt','powerMonsterTemplate'}"/>
		</actorTemplate>
		<actor r_name="'LesserImp'" r_template="'impTemplate'"
						 r_displayName="text.monsterNameLesserImp"
						 r_graphic="{'imp1.png'}"
						 level="2"
						 Fire="1"/>
		<actor r_name="'Imp'" r_template="'impTemplate'"
						 r_displayName="text.monsterNameImp"
						 r_graphic="{'imp2.png'}"
						 level="5"
						 Fire="2"/>
		<actor r_name="'GreaterImp'" r_template="'impTemplate'"
						 r_displayName="text.monsterNameGreaterImp"
						 r_graphic="{'imp3.png'}"
						 level="8"
						 Fire="3"/>
		<actor r_name="'SummonedLesserImp'" r_template="{'LesserImp','summonedMonsterAdditionalTemplate'}"/>						 
		<actor r_name="'SummonedImp'" r_template="{'Imp','summonedMonsterAdditionalTemplate'}"/>						 
		<actor r_name="'SummonedGreaterImp'" r_template="{'GreaterImp','summonedMonsterAdditionalTemplate'}"/>						 
		<!-- Keepers -->
		<actorTemplate 	r_name="'keeperTemplate'" r_template="{'basicMonsterTemplate','mageMonster','dungeonStandardMonsterInterface'}"
											additionalPowers="{'summon'}"
											r_autoAttacks="{'magicMissile','standardCloseCombat'}"
											Evocation="effectiveLevel+1"
											Conjuration="effectiveLevel+1">
			<item r_name="'slam'" r_template="'monsterWeaponTemplate'"/>
			<power r_name="'summon'" r_template="{'summonMonsterTemplate','conjurationSpellTemplate','powerMonsterTemplate','activePowerWithCooldownInterface'}" powerDuration="1000" cooldown="1000"/>
			<power r_name="'magicMissile'" r_template="{'MagicMissile','powerMonsterTemplate'}"/>
		</actorTemplate>
		<actor r_name="'Keeper'" r_template="'keeperTemplate'"
						 r_displayName="text.monsterNameKeeper"
						 r_graphic="{'RiverKeeper.png'}"
						 level="4">
			<power r_name="'summon'" monsterName="'SummonedSpecter'"/>
		</actor>
		<actor r_name="'SubterraneanKeeper'" r_template="'keeperTemplate'"
						 r_displayName="text.monsterNameSubterraneanKeeper"
						 r_graphic="{'SubterraneanKeeper.png'}"
						 level="7">
			<power r_name="'summon'" monsterName="'SummonedViolentSpecter'"/>
		</actor>
		<actor r_name="'AfterlifeKeeper'" r_template="'keeperTemplate'"
						 r_displayName="text.monsterNameAfterlifeKeeper"
						 r_graphic="{'AfterlifeKeeper.png'}"
						 level="10">
			<power r_name="'summon'" monsterName="'SummonedWailingSpecter'"/>
		</actor>
		<!-- Leechers -->
		<actorTemplate 	r_name="'leecherTemplate'" r_template="{'basicMonsterTemplate','priestMonster','dungeonStandardMonsterInterface'}"
											isFlying="1"
											additionalPowers="{'blind'}"
											r_autoAttacks="{'leech','standardCloseCombat'}"
											Holy="1"
											Enchantment="effectiveLevel+1">
			<item r_name="'slam'" r_template="'monsterWeaponTemplate'"/>
			<power r_name="'blind'" r_template="{'Blind','powerMonsterTemplate','activePowerWithCooldownInterface'}" cooldown="1000"/>
			<power r_name="'leech'" r_template="{'LeechEnergy','powerMonsterTemplate'}"/>
		</actorTemplate>
		<actor r_name="'BrainLeecher'" r_template="'leecherTemplate'"
						 r_displayName="text.monsterNameBrainLeecher"
						 r_graphic="{'BrainLeecher.png'}"
						 level="7">
		</actor>
		<actor r_name="'MindLeecher'" r_template="'leecherTemplate'"
						 r_displayName="text.monsterNameMindLeecher"
						 r_graphic="{'MindLeecher.png'}"
						 level="9">
		</actor>
		<actor r_name="'SoulLeecher'" r_template="'leecherTemplate'"
						 r_displayName="text.monsterNameSoulLeecher"
						 r_graphic="{'SoulLeecher.png'}"
						 level="12">
		</actor>
		<!-- Moskitos -->
		<actorTemplate 	r_name="'mosquitoTemplate'" r_template="{'basicMonsterTemplate','rogueMonster','dungeonStandardMonsterInterface'}"
										moveTimeCostMultiplier="0.6"
										isFlying="1"
										r_autoAttacks="{'standardCloseCombat'}"
										Transmutation="effectiveLevel+1"
										Death="1">
			<item r_name="'slam'" r_template="'monsterWeaponTemplate'"/>
			<power r_name="'DrainingStrike'" r_template="'weaponProcTemplate'"
						 r_displayName="text.powerNameDrainLife"
						 procEffectTemplate="{'mainTargetEffectTemplate','controllerEffect'}"
						 procProbability="1"
						 procLogName="''">
				<event r_name="'procMainhand'" r_template="'eventProcTemplate'" slotName="'mainhand'">
					<effect r_name="'procMultiEffect'">
						<effect r_name="'procEffect'"
										r_className="'CctlEffectLaunchAction'"
										r_newActor="'actor'"
										r_newTarget="'target'"
										r_newActionType="'power'"
										r_newActionName="'DrainLife'"
										r_delayRequest="0"
										r_params="{{'timeCost',0},{'isFree',$0||isFree}}"/>
					</effect>
				</event>
			</power>
			<power 	r_name="'DrainLife'" r_template="{'DrainLife','powerMonsterTemplate'}"
							basePowerDamage="2*effectiveLevel">
				<action r_name="'use'">
					<effect r_name="'mainEffect'">
						<effect r_name="'hitEffect'">
							<effect r_name="'gettingStronger'" r_template="{'mainSelfEffectTemplate','evaluationEffect'}" r_effect="all({Strength+=1,Constitution+=1,effectiveLevel+=0.5})"/>
							<effect r_name="'gettingStrongerLog'" r_template="'logGettingStronger'"/>
						</effect>
					</effect>
				</action>
			</power>
		</actorTemplate>
		<actor r_name="'GiantMosquito'" r_template="'mosquitoTemplate'"
						 r_displayName="text.monsterNameGiantMosquito"
						 r_graphic="{'moskito1.png'}"
						 level="1">
		</actor>
		<actor r_name="'GiantTigerMosquito'" r_template="'mosquitoTemplate'"
						 r_displayName="text.monsterNameGiantTigerMosquito"
						 r_graphic="{'moskito2.png'}"
						 level="3">
		</actor>
		<actor r_name="'BloodsuckerMosquito'" r_template="'mosquitoTemplate'"
						 r_displayName="text.monsterNameBloodsuckerMosquito"
						 r_graphic="{'moskito3.png'}"
						 level="5">
		</actor>
		<!-- Nagas -->
		<actorTemplate 	r_name="'nagaTemplate'" r_template="{'basicMonsterTemplate','rogueMonster','dungeonStandardMonsterInterface'}"
										r_autoAttacks="{'mesmerize','root','standardCloseCombat'}"
										Holy="1"
										Enchantment="effectiveLevel+1"
										Conjuration="effectiveLevel+1">
			<item r_name="'slam'" r_template="'monsterWeaponTemplate'"/>
			<power r_name="'mesmerize'" r_template="{'Mesmerize','powerMonsterTemplate','activePowerWithCooldownInterface'}" cooldown="3000" powerDuration="3D2*100" basePowerHitBonus="level*1.5" />
			<power r_name="'root'" r_template="{'Root','powerMonsterTemplate','activePowerWithCooldownInterface'}" cooldown="800" powerRange="1"/>
		</actorTemplate>
		<actor r_name="'WaterNaga'" r_template="'nagaTemplate'"
						 r_displayName="text.monsterNameWaterNaga"
						 r_graphic="{'WaterNaga.png'}"
						 level="8">
		</actor>
		<actor r_name="'GuardianNaga'" r_template="'nagaTemplate'"
						 r_displayName="text.monsterNameGuardianNaga"
						 r_graphic="{'PondNaga.png'}"
						 level="10">
		</actor>
		<actor r_name="'SpiritNaga'" r_template="'nagaTemplate'"
						 r_displayName="text.monsterNameSpiritNaga"
						 r_graphic="{'SeafoamNaga.png'}"
						 level="12">
		</actor>		
		<!-- Rat -->
		<actorTemplate r_name="'ratTemplate'" r_template="{'animalMonsterTemplate','rogueMonster','dungeonStandardMonsterInterface'}"
										 wanderingMonster="1">
			<item r_name="'claw'" r_template="'monsterWeaponTemplate'"/>
		</actorTemplate>
		<actor r_name="'Rat'" r_template="'ratTemplate'"
						 r_displayName="text.monsterNameRat"
						 r_graphic="{'rat01.png'}"
						 level="0"/>
		<actor r_name="'GreyRat'" r_template="'ratTemplate'"
						 r_displayName="text.monsterNameGreyRat"
						 r_graphic="{'rat00.png'}"
						 level="1"/>
		<actor r_name="'BlueRat'" r_template="'ratTemplate'"
						 r_displayName="text.monsterNameBlueRat"
						 r_graphic="{'rat02.png'}"
						 level="2"/>
		<!-- Salamander -->
		<actorTemplate r_name="'salamanderTemplate'" r_template="{'animalMonsterTemplate','warriorMonster','dungeonStandardMonsterInterface'}"
									 immunities="{'Burn'}">
			<item r_name="'claw'" r_template="'monsterWeaponTemplate'"/>
			<power r_name="'BurningStrike'" r_template="'weaponProcAllWeaponsTemplate'"
						 r_displayName="text.powerNameBurningStrike"
						 powerDuration="100"
						 powerTickCount="(3+effectiveLevel/3)"
						 powerRecastRule="'replace'"
						 powerHitBonus="effectiveLevel*1.5"
						 procEffectTemplate="'physicalBurnAttack'"
						 burnDamage="1+effectiveLevel/2" />
		</actorTemplate>
		<actor r_name="'Salamander'" r_template="'salamanderTemplate'"
						 r_displayName="text.monsterNameSalamander"
						 r_graphic="{'salamander1.png'}"
						 level="4"/>
		<actor r_name="'FireSalamander'" r_template="'salamanderTemplate'"
						 r_displayName="text.monsterNameFireSalamander"
						 r_graphic="{'salamander2.png'}"
						 level="7"/>
		<actor r_name="'GiantSalamander'" r_template="'salamanderTemplate'"
						 r_displayName="text.monsterNameGiantSalamander"
						 r_graphic="{'salamander3.png'}"
						 level="10"/>						 
		<!-- Shell -->
		<actorTemplate r_name="'shellTemplate'" r_template="{'plantMonsterTemplate','mageMonster','dungeonStandardMonsterInterface'}"
										 r_autoAttacks="{'magicMissile','standardCloseCombat'}"
										 Evocation="effectiveLevel+1"
										 canMove="0">
			<item r_name="'slam'" r_template="'monsterWeaponTemplate'"/>
			<power r_name="'magicMissile'" r_template="{'MagicMissile','powerMonsterTemplate'}"
						 basePowerHitBonus="5"
						 basePowerDamage="effectiveLevel+3+Evocation"/>
		</actorTemplate>
		<actor r_name="'ScoutingPlant'" r_template="'shellTemplate'"
						 r_displayName="text.monsterNameScoutingPlant"
						 r_graphic="{'shell00.png'}"
						 level="1"
						 actionTimeCostMultiplier="1.2"/>
		<actor r_name="'MagicPlant'" r_template="'shellTemplate'"
						 r_displayName="text.monsterNameMagicPlant"
						 r_graphic="{'shell01.png'}"
						 level="3"
						 actionTimeCostMultiplier="1"/>
		<actor r_name="'GuardianPlant'" r_template="'shellTemplate'"
						 r_displayName="text.monsterNameGuardianPlant"
						 r_graphic="{'shell02.png'}"
						 level="5"
						 actionTimeCostMultiplier="0.8"/>
		<!-- Skeleton -->
		<actorTemplate r_name="'skeletonTemplate'" r_template="{'undeadMonsterTemplate','rogueMonster',randomElement({'MonsterWithSwordInterface','MonsterWithAxeInterface','MonsterWithMaceInterface'}),'dungeonStandardMonsterInterface'}"
										 knownTrapMoveCost="1">
			<item r_name="'slam'" r_template="'monsterWeaponTemplate'"/>
			<modifier r_name="'piercingResistance'" r_template="'mainModifierTemplate'" r_modifierTarget="'NaturalArmor'" r_modifiedValue="$0+((exists(currentAction)&&exists(currentAction.actionTags)&&contains(currentAction.actionTags,'piercing'))?10:0)"/>
		</actorTemplate>
		<actor r_name="'Skeleton'" r_template="'skeletonTemplate'"
						 r_displayName="text.monsterNameSkeleton"
						 r_graphic="{'skull00.png'}"
						 level="1"/>
		<actor r_name="'FireSkeleton'" r_template="'skeletonTemplate'"
						 r_displayName="text.monsterNameFireSkeleton"
						 r_graphic="{'skull01.png'}"
						 level="6"/>
		<actor r_name="'ObsidianSkeleton'" r_template="'skeletonTemplate'"
						 r_displayName="text.monsterNameObsidianSkeleton"
						 r_graphic="{'skull02.png'}"
						 level="11"/>
		<actor r_name="'summonedSkeleton'" r_template="{'Skeleton','summonedMonsterAdditionalTemplate'}"/>
		<!-- Slime -->
		<actorTemplate	r_name="'slimeTemplate'" r_template="{'oozeMonsterTemplate','rogueMonster','dungeonStandardMonsterInterface'}"
										r_autoAttacks="{'standardRangedCombat'}"
										wanderingMonster="1">
			<item r_name="'spit'" r_template="'monsterRangedWeaponTemplate'" weaponMaxRange="3"/>
		</actorTemplate>
		<actor r_name="'GreenSlime'" r_template="'slimeTemplate'"
						 r_displayName="text.monsterNameGreenSlime"
						 r_graphic="{'slime00.png'}"
						 level="3"/>
		<actor r_name="'BlueSlime'" r_template="'slimeTemplate'"
						 r_displayName="text.monsterNameBlueSlime"
						 r_graphic="{'slime01.png'}"
						 level="5"/>
		<actor r_name="'RedSlime'" r_template="'slimeTemplate'"
						 r_displayName="text.monsterNameRedSlime"
						 r_graphic="{'slime02.png'}"
						 level="7">
			<item r_name="'spit'" weaponMaxRange="4"/>
		</actor>
		<!-- Snake -->
		<actorTemplate r_name="'snakeTemplate'" r_template="{'animalMonsterTemplate','rogueMonster','dungeonStandardMonsterInterface'}">
			<item r_name="'fangs'" r_template="{'monsterWeaponTemplate','WeaponWithPoisonInterface'}" poisonLength="4"/>
		</actorTemplate>
		<actor r_name="'Snake'" r_template="'snakeTemplate'"
						 r_displayName="text.monsterNameSnake"
						 r_graphic="{'snake00.png'}"
						 level="2">
			<item r_name="'fangs'" poisonDamage="1" powerRecastRule="'addTickCount'" poisonName="text.effectNameWeakSnakePoison"/>
		</actor>
		<actor r_name="'WhiteSnake'" r_template="'snakeTemplate'"
						 r_displayName="text.monsterNameWhiteSnake"
						 r_graphic="{'snake01.png'}"
						 level="4">
			<item r_name="'fangs'" poisonDamage="2" powerRecastRule="'addTickCount'" poisonName="text.effectNameSnakePoison"/>
		</actor>
		<actor r_name="'JungleSnake'" r_template="'snakeTemplate'"
						 r_displayName="text.monsterNameJungleSnake"
						 r_graphic="{'snake02.png'}"
						 level="6">
			<item r_name="'fangs'" poisonDamage="3" powerRecastRule="'addTickCount'" poisonName="text.effectNameStringSnakePoison"/>
		</actor>
		<!-- Specters -->
		<actorTemplate 	r_name="'specterTemplate'" r_template="{'undeadMonsterTemplate','priestMonster','dungeonStandardMonsterInterface'}"
											isFlying="1">
			<modifier r_name="'immunities'" r_template="'mainModifierTemplate'" r_modifierTarget="'immunities'" r_modifiedValue="$0+{'Grounded'}"/>
			<item r_name="'ghost touch'" r_template="'monsterWeaponTemplate'" weaponIgnoreArmor="1"/>
		</actorTemplate>
		<actor r_name="'Specter'" r_template="'specterTemplate'"
						 r_displayName="text.monsterNameSpecter"
						 r_graphic="{'GrievingSpecter.png'}"
						 level="2"/>
		<actor r_name="'ViolentSpecter'" r_template="'specterTemplate'"
						 r_displayName="text.monsterNameViolentSpecter"
						 r_graphic="{'ViolentSpecter.png'}"
						 level="5"/>
		<actor r_name="'WailingSpecter'" r_template="'specterTemplate'"
						 r_displayName="text.monsterNameWailingSpecter"
						 r_graphic="{'WailingSpecter.png'}"
						 level="8"/>
		<actor r_name="'SummonedSpecter'" r_template="{'Specter','summonedMonsterAdditionalTemplate'}"/>
		<actor r_name="'SummonedViolentSpecter'" r_template="{'ViolentSpecter','summonedMonsterAdditionalTemplate'}"/>
		<actor r_name="'SummonedWailingSpecter'" r_template="{'WailingSpecter','summonedMonsterAdditionalTemplate'}"/>
		<!-- Spider -->
		<actorTemplate r_name="'spiderTemplate'" r_template="{'animalMonsterTemplate','rogueMonster','dungeonStandardMonsterInterface'}">
			<item r_name="'fangs'" r_template="{'monsterWeaponTemplate','WeaponWithPoisonInterface'}" poisonLength="4"/>
		</actorTemplate>
		<actor r_name="'BlueSpider'" r_template="'spiderTemplate'"
						 r_displayName="text.monsterNameBlueSpider"
						 r_graphic="{'spider00.png'}"
						 level="3">
			<item r_name="'fangs'" poisonDamage="1" powerRecastRule="'resetTickIndexAndAddCharge'" poisonName="text.effectNameWeakSpiderPoison"/>
		</actor>
		<actor r_name="'RedSpider'" r_template="'spiderTemplate'"
						 r_displayName="text.monsterNameRedSpider"
						 r_graphic="{'spider01.png'}"
						 level="6">
			<item r_name="'fangs'" poisonDamage="2" powerRecastRule="'resetTickIndexAndAddCharge'" poisonName="text.effectNameSpiderPoison"/>
		</actor>
		<actor r_name="'GreenSpider'" r_template="'spiderTemplate'"
						 r_displayName="text.monsterNameGreenSpider"
						 r_graphic="{'spider02.png'}"
						 level="9">
			<item r_name="'fangs'" poisonDamage="2" powerRecastRule="'resetTickIndexAndAddCharge'" poisonName="text.effectNameStrongSpiderPoison"/>
		</actor>
		<!-- Sprite -->
		<actorTemplate r_name="'spriteTemplate'" r_template="{'basicMonsterTemplate','priestMonster','dungeonStandardMonsterInterface'}"
										 moveTimeCostMultiplier="0.8"
										 isFlying="1"
										 additionalPowers="{'protection'}"
										 r_autoAttacks="{'magicMissile','standardCloseCombat'}"
										 Evocation="effectiveLevel+1">
			<item r_name="'slam'" r_template="'monsterWeaponTemplate'"/>
			<power r_name="'magicMissile'" r_template="{'MagicMissile','powerMonsterTemplate'}"/>
			<power r_name="'protection'" r_template="{'ProtectionSphere','powerMonsterTemplate','activePowerWithCooldownInterface'}" cooldown="1000"/>
		</actorTemplate>
		<actor r_name="'Sprite'" r_template="'spriteTemplate'"
						 r_displayName="text.monsterNameSprite"
						 r_graphic="{'sprite1.png'}"
						 level="1"/>
		<actor r_name="'NightSprite'" r_template="'spriteTemplate'"
						 r_displayName="text.monsterNameNightSprite"
						 r_graphic="{'sprite2.png'}"
						 level="4"/>
		<actor r_name="'MoonSprite'" r_template="'spriteTemplate'"
						 r_displayName="text.monsterNameMoonSprite"
						 r_graphic="{'sprite3.png'}"
						 level="7"/>
		<!-- SwampDrake -->
		<actorTemplate	r_name="'swampDrakeTemplate'" r_template="{'animalMonsterTemplate','warriorMonster','dungeonStandardMonsterInterface'}"
										immunities="{'Poison'}"
										r_autoAttacks="{'poisonBreath','standardCloseCombat'}"
										poisonCloudLevel="1">
			<item r_name="'slam'" r_template="'monsterWeaponTemplate'"/>
			<power r_name="'poisonBreath'" r_template="{'PoisonBreath','powerMonsterTemplate','activePowerWithCooldownInterface'}" cooldown="400"/>
		</actorTemplate>
		<actor r_name="'SwampDrake'" r_template="'swampDrakeTemplate'"
						 r_displayName="text.monsterNameSwampDrake"
						 r_graphic="{'swampdrake1.png'}"
						 level="6"
						 poisonCloudLevel="3"/>
		<actor r_name="'GreaterSwampDrake'" r_template="'swampDrakeTemplate'"
						 r_displayName="text.monsterNameGreaterSwampDrake"
						 r_graphic="{'swampdrake2.png'}"
						 level="9"
						 poisonCloudLevel="4"/>
		<actor r_name="'AncientSwampDrake'" r_template="'swampDrakeTemplate'"
						 r_displayName="text.monsterNameAncientSwampDrake"
						 r_graphic="{'swampdrake3.png'}"
						 level="12"
						 poisonCloudLevel="5"/>
		<!-- Tiger -->
		<actorTemplate r_name="'tigerTemplate'" r_template="{'animalMonsterTemplate','rogueMonster','dungeonStandardMonsterInterface'}"
										 r_autoAttacks="{'charge','standardCloseCombat'}">
			<item r_name="'leftSlam'" r_template="'monsterDualWeaponTemplate'"/>
			<item r_name="'rightSlam'" r_template="'monsterDualWeaponTemplate'"/>
			<power r_name="'charge'" r_template="{'Charge','powerMonsterTemplate'}" predatorInstinct="1"/>
		</actorTemplate>
		<actor r_name="'WildCat'" r_template="'tigerTemplate'"
						 r_displayName="text.monsterNameWildCat"
						 r_graphic="{'tiger1.png'}"
						 level="4"/>
		<actor r_name="'Puma'" r_template="'tigerTemplate'"
						 r_displayName="text.monsterNamePuma"
						 r_graphic="{'tiger2.png'}"
						 level="7"/>
		<actor r_name="'Tiger'" r_template="'tigerTemplate'"
						 r_displayName="text.monsterNameTiger"
						 r_graphic="{'tiger3.png'}"
						 level="10"/>
		<!-- Troll -->
		<actorTemplate r_name="'trollTemplate'" r_template="{'basicMonsterTemplate','warriorMonster','dungeonStandardMonsterInterface'}">
			<item r_name="'slam'" r_template="'monsterWeaponTemplate'"/>
			<power r_name="'Regeneration'" r_template="'BodyPerfection'" powerRegenerationValue="effectiveLevel" PhysicalResistanceValue="effectiveLevel/3" />
		</actorTemplate>
		<actor r_name="'YoungTroll'" r_template="'trollTemplate'"
						 r_displayName="text.monsterNameYoungTroll"
						 r_graphic="{'troll1.png'}"
						 level="6"/>
		<actor r_name="'Troll'" r_template="'trollTemplate'"
						 r_displayName="text.monsterNameTroll"
						 r_graphic="{'troll2.png'}"
						 level="9"/>
		<actor r_name="'GreaterTroll'" r_template="'trollTemplate'"
						 r_displayName="text.monsterNameGreaterTroll"
						 r_graphic="{'troll3.png'}"
						 level="12"/>
		<!-- Vampire -->
		<actorTemplate r_name="'vampireTemplate'" r_template="{'undeadMonsterTemplate','mageMonster','dungeonStandardMonsterInterface'}"
									 additionalPowers="{'GaseousForm'}"
									 r_autoAttacks="{'DrainLife','standardCloseCombat'}"
									 Air="1"
									 Water="1"
									 Death="2"
									 Transmutation="effectiveLevel+1">
			<item r_name="'slam'" r_template="'monsterWeaponTemplate'"/>
			<power r_name="'GaseousForm'" r_template="{'GaseousForm','powerMonsterTemplate','activePowerWithCooldownInterface'}" cooldown="10000"/>
			<power r_name="'DrainLife'" r_template="{'DrainLife','powerMonsterTemplate','activePowerWithCooldownInterface'}" cooldown="400"/>
		</actorTemplate>
		<actor r_name="'YoungVampire'" r_template="'vampireTemplate'"
						 r_displayName="text.monsterNameYoungVampire"
						 r_graphic="{'vampire1.png'}"
						 level="5"
						 Air="1"
						 Water="1"
						 Death="2"/>
		<actor r_name="'Vampire'" r_template="'vampireTemplate'"
						 r_displayName="text.monsterNameVampire"
						 r_graphic="{'vampire2.png'}"
						 level="8"
						 Air="2"
						 Water="2"
						 Death="3"/>
		<actor r_name="'ElderVampire'" r_template="'vampireTemplate'"
						 r_displayName="text.monsterNameElderVampire"
						 r_graphic="{'vampire3.png'}"
						 level="11"
						 Air="3"
						 Water="3"
						 Death="4"/>
		<!-- Whelp -->
		<actorTemplate r_name="'whelpTemplate'" r_template="{'animalMonsterTemplate','mageMonster','dungeonStandardMonsterInterface'}"
										 r_autoAttacks="{'MagmaMissile','standardCloseCombat'}"
										 Evocation="effectiveLevel+1">
			<item r_name="'slam'" r_template="'monsterWeaponTemplate'"/>
			<power r_name="'MagmaMissile'" r_template="{'MagmaMissile','powerMonsterTemplate'}"/>
			<modifier r_name="'armor'" r_template="'mainModifierTemplate'" r_modifierTarget="'NaturalArmor'" r_modifiedValue="$0*2"/> 
		</actorTemplate>
		<actor r_name="'YoungWhelp'" r_template="'whelpTemplate'"
						 r_displayName="text.monsterNameYoungWhelp"
						 r_graphic="{'AncientWhelp.png'}"
						 level="6"
						 Fire="2"
						 Earth="1" />
		<actor r_name="'FireWhelp'" r_template="'whelpTemplate'"
						 r_displayName="text.monsterNameFireWhelp"
						 r_graphic="{'FireWhelp.png'}"
						 level="9"
						 Fire="3"
						 Earth="2"/>
		<actor r_name="'MagmaWhelp'" r_template="'whelpTemplate'"
						 r_displayName="text.monsterNameMagmaWhelp"
						 r_graphic="{'RareWhelp.png'}"
						 level="12"
						 Fire="4"
						 Earth="3"/>
		<!-- Zombi -->
		<actorTemplate r_name="'zombiTemplate'" r_template="{'undeadMonsterTemplate','warriorMonster','dungeonStandardMonsterInterface'}"
										 moveTimeCostMultiplier="1.3"
										 customCloseCombatDamageBonus="effectiveLevel+5"
										 knownTrapMoveCost="1">
			<item r_name="'slam'" r_template="'monsterWeaponTemplate'"/>
			<modifier r_name="'encounterTags'" r_template="'mainModifierTemplate'" r_modifierTarget="'encounterTags'" r_modifiedValue="$0+{'mindless'}"/>
		</actorTemplate>
		<actor r_name="'Zombi'" r_template="'zombiTemplate'"
						 r_displayName="text.monsterNameZombi"
						 r_graphic="{'zomb00.png'}"
						 level="2"/>
		<actor r_name="'GreaterZombi'" r_template="'zombiTemplate'"
						 r_displayName="text.monsterNameGreaterZombi"
						 r_graphic="{'zomb01.png'}"
						 level="5"/>
		<actor r_name="'AncientZombi'" r_template="'zombiTemplate'"
						 r_displayName="text.monsterNameAncientZombi"
						 r_graphic="{'zomb02.png'}"
						 level="8"/>
						 
		<!-- final Boss -->
		<actorTemplate r_name="'dungeonBossInterface'">
			<event r_name="'bossDeath'" r_template="'mainEventTemplate'" r_eventTarget="'isDead'" r_targetType="'attribute'">
				<effect r_name="'bossDeath'" r_template="{'mainSelfEffectTemplate','multiEffect'}" r_enabled="isDead">
					<effect r_name="'victory'" r_template="{'mainSelfEffectTemplate','evaluationEffect'}" r_effect="world.currentDungeon.conditionVictory=1"/>
					<effect r_name="'victoryLog'" r_template="'logBossIsDead'"/>
				</effect>
			</event>
		</actorTemplate>
		<actorTemplate r_name="'campaignBossInterface'">
			<event r_name="'finalBossDeath'" r_template="'mainEventTemplate'" r_eventTarget="'isDead'" r_targetType="'attribute'">
				<effect r_name="'finalBossDeath'" r_template="{'mainSelfEffectTemplate','multiEffect'}" r_enabled="isDead">
					<effect r_name="'capaignDarkVictory'" r_template="{'mainSelfEffectTemplate','evaluationEffect'}" r_effect="all({world.currentDungeon.conditionVictory=1,gameParameters.campaignDarkVictory=1})"/>
					<effect r_name="'victoryLog'" r_template="'logBossIsDead'"/>
				</effect>
			</event>
		</actorTemplate>
		
		<actor r_name="'DemonGod'" r_template="{'demonMonsterTemplate','priestMonster','campaignBossInterface'}"
					 r_autoAttacks="{'MindBurn','standardCloseCombat','FreezingDeath','fireBolt'}"
					 immunities="{'Shaken','Stun','Confuse','Mesmerize','Charm'}"
					 r_displayName="text.monsterNameRahlNargGhoth"
					 r_graphic="{'lord'}"
					 level="16"
					 Conjuration="effectiveLevel+1"
					 Evocation="effectiveLevel+1"
					 Transmutation="effectiveLevel+1"
					 Enchantment="effectiveLevel+1"
					 MonsterWeaponSkill="effectiveLevel+1"
					 actionTimeCostMultiplier="0.7"
					 moveTimeCostMultiplier="0.7"
					 Fire="4"
					 Air="4"
					 Water="4"
					 Death="4">
			<item r_name="'fireSword'" r_template="'monsterWeaponTemplate'" weaponPiercingDamage="effectiveLevel*0.5" />
			<power r_name="'fireBolt'" r_template="{'FireBolt','powerMonsterTemplate'}"
						 basePowerHitBonus="5"
						 basePowerDamage="20"
						 powerRange="7"/>
			<power r_name="'FreezingDeath'" r_template="{'FreezingDeath','powerMonsterTemplate','activePowerWithCooldownInterface'}"
						 cooldown="1500"/>
			<power r_name="'MindBurn'" r_template="{'MindBurn','powerMonsterTemplate','activePowerWithCooldownInterface'}"
						 cooldown="300"/>
			<power r_name="'Regeneration'" r_template="'BodyPerfection'" powerRegenerationValue="10" maximumRegeneration="maxHitPoints" PhysicalResistanceValue="0"/>
			<modifier r_name="'maxHitPoints'" r_template="'mainModifierTemplate'" r_modifierTarget="'maxHitPoints'" r_modifiedValue="$0*3"/> 
		</actor>
		
		<actor r_name="'BloodCultMember'" r_template="{'basicMonsterTemplate','warriorMonster'}"
						 r_autoAttacks="{'Bash','standardCloseCombat'}"
						 r_displayName="text.monsterNameBloodCultMember"
						 r_graphic="{'bloodcultmember.png'}"
						 level="10">
			<item r_name="'slam'" r_template="'monsterWeaponTemplate'"/>
			<power r_name="'Bash'" r_template="{'Bash','powerMonsterTemplate','activePowerWithCooldownInterface'}"
						 powerHitBonus="effectiveLevel*1.5"
						 powerDamageBonus="effectiveLevel*1.5"
						 cooldown="1000"/>
			<modifier r_name="'maxHitPoints'" r_template="'mainModifierTemplate'" r_modifierTarget="'maxHitPoints'" r_modifiedValue="$0*2"/> 
		</actor>
		<actor r_name="'BloodCultLeader'" r_template="{'basicMonsterTemplate','priestMonster'}"
						 additionalPowers="{'summon','summonEnemy'}"
						 r_autoAttacks="{'Shaken','DrainLife','standardCloseCombat'}"
						 r_displayName="text.monsterNameBloodCultLeader"
						 r_graphic="{'bloodcultleader.png'}"
						 level="12"
						 Conjuration="effectiveLevel+1"
						 Evocation="effectiveLevel+1"
						 Transmutation="effectiveLevel+1"
						 Enchantment="effectiveLevel+1"
						 Death="2">
			<item r_name="'slam'" r_template="'monsterWeaponTemplate'"/>
			<power r_name="'DrainLife'" r_template="{'DrainLife','powerMonsterTemplate','activePowerWithCooldownInterface'}"
						 cooldown="500"/>
			<power r_name="'summonEnemy'" r_template="{'SummonEnemy','powerMonsterTemplate','activePowerWithCooldownInterface'}" cooldown="2000"/>
			<power r_name="'teleportEnemy'" r_template="'TeleportEnemy'"/> <!-- mandatory for summonEnemy -->
			<power r_name="'Shaken'" r_template="{'Shaken','powerMonsterTemplate','activePowerWithCooldownInterface'}" cooldown="800"/>
			<power r_name="'summon'" r_template="{'summonMonsterTemplate','conjurationSpellTemplate','powerMonsterTemplate','activePowerWithCooldownInterface'}"
						 powerDuration="2000"
						 cooldown="1000"
						 monsterName="'SummonedGreaterImp'"/>
			<modifier r_name="'maxHitPoints'" r_template="'mainModifierTemplate'" r_modifierTarget="'maxHitPoints'" r_modifiedValue="$0*3"/> 
		</actor>
		<!-- Other Boss -->
		<actorTemplate 	r_name="'chaosBossInterface'"
										hitPointsBonus="3"
										level="exists(dungeonFloor)?(dungeonFloor+2):0">
			<modifier r_name="'maxHitPoints'" r_template="'mainModifierTemplate'" r_modifierTarget="'maxHitPoints'" r_modifiedValue="$0*hitPointsBonus"/> 
		</actorTemplate>
		<actor r_name="'Manticore'" r_template="{'basicMonsterTemplate','rogueMonster','dungeonStandardMonsterInterface','chaosBossInterface'}"
					 r_autoAttacks="{'spineVolley','standardCloseCombat'}"
					 r_graphic="{'manticore.png'}"
					 r_displayName="text.monsterNameManticore"
					 isFlying="1">
			<item r_name="'leftSlam'" r_template="'monsterDualHeavyWeaponTemplate'"/>
			<item r_name="'rightSlam'" r_template="'monsterDualHeavyWeaponTemplate'"/>
			<item r_name="'spines'" r_template="{'monsterRangedWeaponTemplate','WeaponWithPoisonInterface'}"
						r_displayName="text.monsterWeaponPoisonousSpine"
						weaponMaxRange="7"
						baseWeaponHitBonus="5"
						poisonDamage="1+floor(effectiveLevel/4)"
						powerDuration="100"
						powerTickCount="10"
						powerRecastRule="'resetTickIndexAndAddCharge'"
						powerHitBonus="effectiveLevel*2"
						missileGraphic="'arrow'+{'Right','Up','Left','Down'}[easyOrientation4(actor.w_xCoord, actor.w_yCoord, target.w_xCoord, target.w_yCoord)]+'.png'"/>
			<power	r_name="'spineVolley'" r_template="{'activePowerTemplate','activePowerWithCooldownInterface'}"
							cooldown="800"
							powerEffectTemplate="{'mainSelfEffectTemplate','controllerEffect'}"
							powerFatigueCost="0"
							powerRange="7">
				<action r_name="'use'" r_minRange="2">
					<effect r_name="'mainEffect'" r_className="'CctlEffectLaunchEffect'" r_repeatCount="3">
						<effect r_name="'strikeSpine'" r_template="{'mainTargetEffectTemplate','controllerEffect'}"
										r_className="'CctlEffectLaunchAction'"
										r_newActor="'actor'"
										r_newTarget="'target'"
										r_newActionType="'equippedItem'"
										r_newActionName="'ranged'"
										r_delayRequest="0"
										r_params="{{'timeCost',0},{'isFree',$0||isFree}}"/>
					</effect>
				</action>
			</power>
		</actor>
		<actor r_name="'Gorgon'" r_template="{'basicMonsterTemplate','priestMonster','dungeonStandardMonsterInterface','chaosBossInterface'}"
					 r_autoAttacks="{'fullAttack','standardCloseCombat'}"
					 r_graphic="{'gorgone.png'}"
					 r_displayName="text.monsterNameGorgon">
			<item r_name="'leftSlam'" r_template="'monsterDualWeaponTemplate'"/>
			<item r_name="'rightSlam'" r_template="'monsterDualWeaponTemplate'"/>
			<item r_name="'serpent'" r_template="{'monsterWeaponTemplate','WeaponWithPoisonInterface'}"
						r_displayName="text.monsterWeaponPoisonousSerpent"
						slot="'head'"
						poisonDamage="3+floor(effectiveLevel/2)"
						powerDuration="100"
						powerTickCount="5"
						powerRecastRule="'resetTickIndex'"
						powerHitBonus="effectiveLevel*1.5"/>
			<power	r_name="'fullAttack'" r_template="{'activePowerTemplate'}"
							powerEffectTemplate="{'mainSelfEffectTemplate','multiEffect'}"
							powerFatigueCost="0"
							powerRange="1">
				<action r_name="'use'">
					<effect r_name="'mainEffect'">
						<effect r_name="'strikeSlam'" r_template="{'mainTargetEffectTemplate','controllerEffect'}"
										r_className="'CctlEffectLaunchAction'"
										r_newActor="'actor'"
										r_newTarget="'target'"
										r_newActionType="'power'"
										r_newActionName="'standardCloseCombat'"
										r_delayRequest="0"
										r_params="{{'timeCost',0},{'isFree',$0||isFree}}"/>
						<effect r_name="'mainEffect'" r_template="{'mainSelfEffectTemplate','controllerEffect'}" r_className="'CctlEffectLaunchEffect'" r_repeatCount="1D4">
							<effect r_name="'strikeSerpent'" r_template="{'mainTargetEffectTemplate','controllerEffect'}"
											r_className="'CctlEffectLaunchAction'"
											r_newActor="'actor'"
											r_newTarget="'target'"
											r_newActionType="'equippedItem'"
											r_newActionName="'head'"
											r_delayRequest="0"
											r_params="{{'timeCost',0},{'isFree',$0||isFree}}"/>
						</effect>
					</effect>
				</action>
			</power>
			<event r_name="'onSeen'" r_template="'mainEventTemplate'" r_enabled="exists(square)" r_eventTarget="'square.w_isSeenByHeroes'" r_targetType="'attribute'" heroIsBlinded="0">
				<effect r_name="'blindHeroLog'" r_template="'standardLogTemplate'" r_enabled="!heroIsBlinded" text="text.logGorgonVision"/>
				<effect r_name="'blindLaunched'" r_template="{'mainSelfEffectTemplate','evaluationEffect'}" r_effect="heroIsBlinded=1"/>
				<modifier r_name="'customCloseCombatHitBonus'" r_template="'mainEffectModifier'" r_enabled="heroIsBlinded&&exists(heroes)" r_modifierTarget="'heroes.@0.customCloseCombatHitBonus'" r_modifiedValue="$0-5"/> 
				<modifier r_name="'customRangedHitBonus'" r_template="'mainEffectModifier'" r_enabled="heroIsBlinded&&exists(heroes)" r_modifierTarget="'heroes.@0.customRangedHitBonus'" r_modifiedValue="$0-5"/> 
				<modifier r_name="'viewRange'" r_template="'mainEffectModifier'" r_enabled="heroIsBlinded&&exists(heroes)" r_modifierTarget="'heroes.@0.r_viewRange'" r_modifiedValue="min($0,1)"/> 
				<event r_name="'onMove'" r_template="'mainEventTemplate'" r_eventTarget="'square'" r_targetType="'evaluator'">
					<effect r_name="'eventRefresh'" r_template="{'mainSelfEffectTemplate','utilityEffect'}" r_className="'CutiEffectRefreshHierarchy'" r_refreshTarget="'onSeen'"/>
				</event>
			</event>
		</actor>
		<actor r_name="'Lich'" r_template="{'undeadMonsterTemplate','mageMonster','dungeonStandardMonsterInterface','chaosBossInterface'}"
					 additionalPowers="{'RaiseSkeleton','GaseousForm'}"
					 r_autoAttacks="{'Curse','FreezingDeath','MagicMissile','standardCloseCombat'}"
					 r_graphic="{'lich.png'}"
					 r_displayName="text.monsterNameLich"
					 Air="1"
					 Death="3+floor(effectiveLevel/4)"
					 Water="2+floor(effectiveLevel/4)"
					 Evocation="effectiveLevel+1"
					 Transmutation="effectiveLevel+1"
					 Conjuration="effectiveLevel+1">
			<item r_name="'slam'" r_template="'monsterWeaponTemplate'"/>
			<power r_name="'RaiseSkeleton'" r_template="{'RaiseSkeleton','powerMonsterTemplate','activePowerWithCooldownInterface'}" cooldown="1000"/>
			<power r_name="'GaseousForm'" r_template="{'GaseousForm','powerMonsterTemplate','activePowerWithCooldownInterface'}" cooldown="1000" r_enabled="!contains(immunities,'Burn')" />
			<power r_name="'Curse'" r_template="{'Curse','powerMonsterTemplate','activePowerWithCooldownInterface'}" cooldown="1000"/>
			<power r_name="'FreezingDeath'" r_template="{'FreezingDeath','powerMonsterTemplate','activePowerWithCooldownInterface'}" cooldown="400"/>
			<power r_name="'MagicMissile'" r_template="{'MagicMissile','powerMonsterTemplate'}"/>
		</actor>
		<actor r_name="'Minotaur'" r_template="{'basicMonsterTemplate','warriorMonster','dungeonStandardMonsterInterface','chaosBossInterface'}"
					 r_autoAttacks="{'charge','standardCloseCombat'}"
					 r_graphic="{'minotor.png'}"
					 r_displayName="text.monsterNameMinotaur">
			<item r_name="'slam'" r_template="'monsterWeaponTemplate'"/>
			<power r_name="'Swipe'" r_template="{'Swipe','powerMonsterTemplate'}"/>
			<power r_name="'charge'" r_template="{'Charge','powerMonsterTemplate'}" mightyCharge="1" standardHit="1"/>
		</actor>
		
		<!-- Debug -->
		<actor r_name="'TrainingDummy'" r_template="'basicMonsterTemplate'"
						 r_displayName="text.monsterNameTrainingDummy"
						 r_graphic="{'bloodcultleader.png'}"
						 r_xpValue="0"
						 MonsterWeaponSkill="0"
						 Strength="0"
						 Dodge="0"
						 NaturalArmor="0"
						 maxHitPoints="1000000"
						 canMove="0"/>
		<actor r_name="'ArmoredTrainingDummy'" r_template="'constructMonsterTemplate'"
						 r_displayName="text.monsterNameTrainingDummy"
						 r_graphic="{'gob01.png'}"
						 r_xpValue="0"
						 MonsterWeaponSkill="0"
						 Strength="0"
						 Dodge="0"
						 NaturalArmor="50"
						 maxHitPoints="1000000"
						 canMove="0"/>
		<actor r_name="'UndeadTrainingDummy'" r_template="'undeadMonsterTemplate'"
						 r_displayName="text.monsterNameTrainingDummy"
						 encounterTags="{'undead'}"
						 r_graphic="{'skull00.png'}"
						 r_xpValue="0"
						 MonsterWeaponSkill="0"
						 Strength="0"
						 Dodge="0"
						 NaturalArmor="50"
						 maxHitPoints="1000000"
						 canMove="0"/>
		<actor r_name="'GoblinKing'" r_template="'goblinTemplate'"
						 r_displayName="text.monsterNameGoblinKing"
						 r_graphic="{'gob01.png'}"
						 r_xpValue="30"
						 Dodge="5"
						 NaturalArmor="0"
						 maxHitPoints="1000"
						 CloseCombat="0"
						 RangedCombat="0"/>
		<actor r_name="'GoblinKnight'" r_template="'goblinTemplate'"
						 r_displayName="text.monsterNameGoblinKnight"
						 r_graphic="{'gob01.png'}"
						 r_xpValue="30"
						 Dodge="0"
						 NaturalArmor="50"
						 maxHitPoints="1000"
						 CloseCombat="0"
						 RangedCombat="0"/>
		<actor r_name="'WanderingTroll'" r_template="'Troll'"
						 maxHitPoints="1000"
						 wanderingMonster="1"
						 knownTrapMoveCost="1"/>
	</actors>
</data>