<data>
	<items>
		<!-- General Template -->
		<itemTemplate r_name="'artefactItem'" enhancementBonus="maximumBonus" maximumBonus="gameParameters.lootStandardArtefactEnchantmentBonus" magicLevel="4">
			<event r_name="'dungeonChange'" r_template="'mainEventTemplate'" r_enabled="exists(world)" r_eventTarget="'world.currentDungeon'" r_targetType="'evaluator'">
				<effect r_name="'enhancement'" r_template="{'mainSelfEffectTemplate','evaluationEffect'}" r_enabled="exists(world.currentDungeon)" r_effect="enhancementBonus=maximumBonus"/>
			</event>
		</itemTemplate>

		<item r_name="'BagOfWinds'" r_template="{'selfActivableItemTemplate','mainItemTemplate','artefactItem'}"
					itemName="text.BagOfWinds"
					itemTooltip="text.tooltipBagOfWinds"
					r_graphic="'bagofwinds.png'"
					itemActionTemplate="'mainActionWithFatigueTemplate'"
					itemEffectTemplate="{'mainSelfEffectTemplate','multiEffect'}"
					maximumBonus="1">
			<modifier r_name="'Air'" r_template="'mainModifierTemplate'" r_enabled="exists(Air)" r_modifierTarget="'Air'" r_modifiedValue="$0+1"/>
			<action r_name="'use'"
							r_range="1"
							canTargetGround="1"
							r_targetingType="'standard'"
							exhaustionCost="1">
				<effect r_name="'mainEffect'"
								xDirection="0"
						 		yDirection="0">
					<effect r_name="'direction'" r_template="{'mainSelfEffectTemplate','evaluationEffect'}" r_effect="all({xDirection=(targetSquare.w_xCoord>actor.w_xCoord)?1:((actor.w_xCoord>targetSquare.w_xCoord)?(-1):0),yDirection=(targetSquare.w_yCoord>actor.w_yCoord)?1:((actor.w_yCoord>targetSquare.w_yCoord)?(-1):0)})"/>
					<effect r_name="'blastEffect'" r_template="{'mainSquareEffectTemplate','controllerEffect'}"
									r_className="'CctlEffectLaunchAreaEffect'"
									r_area="{'cone',targetSquare.w_xCoord,targetSquare.w_yCoord,easyOrientation8(actor.square.w_xCoord, actor.square.w_yCoord,targetSquare.w_xCoord,targetSquare.w_yCoord),6}"
									r_areaTargetingType="'direct'">
						<effect r_name="'zoneEffectGraphic'" r_template="'zoneEffectGraphicTemplate'"
										delay="2*actor.square.distanceTo(targetSquare)"
										zoneEffectGraphic="'windAreaEffect'"/>
						<effect r_name="'push'" r_template="'pushEffect'"
										r_enabled="exists(target)"
										recursivePush="1"
										pushXDirection="xDirection"
										pushYDirection="yDirection"/>
					</effect>
				</effect>
			</action>
		</item>
		<item r_name="'BootsOfFly'" r_template="{'Boots','artefactArmor'}"
					itemName="text.BootsOfFly"
					itemTooltip="text.tooltipBootsOfFly"
					r_graphic="'bootsoffly.png'"
					baseItemArmor="2">
			<modifier r_name="'isFlying'" r_template="'mainItemModifier'" r_modifierTarget="'isFlying'" r_modifiedValue="($0==0)?1:(($0==1)?2:$0)"/>
			<modifier r_name="'Defense'" r_template="'mainItemModifier'" r_modifierTarget="'Defense'" r_modifiedValue="$0+2"/>
			<modifier r_name="'Dexterity'" r_template="'mainItemModifier'" r_modifierTarget="'Dexterity'" r_modifiedValue="$0+2"/>
		</item>
		<item r_name="'CloakOfWindShield'" r_template="{'Cloak','artefactArmor'}"
					itemName="text.CloakOfWindShield"
					itemTooltip="text.tooltipCloakOfWindShield"
					r_graphic="'cloakofwindshield.png'"
					baseItemArmor="2">
			<modifier r_name="'rangedDefense'" r_template="'mainItemModifier'" r_modifierTarget="'rangedDefense'" r_modifiedValue="$0+6"/>
			<modifier r_name="'customRangedHitBonus'" r_template="'mainItemModifier'" r_modifierTarget="'customRangedHitBonus'" r_modifiedValue="$0+2"/>
			<modifier r_name="'customRangedDamageBonus'" r_template="'mainItemModifier'" r_modifierTarget="'customRangedDamageBonus'" r_modifiedValue="$0+2"/>
		</item>
		<item r_name="'HuntersBow'" r_template="{'CompositeLongbow','artefactWeapon'}"
					itemName="text.HuntersBow"
					itemTooltip="text.tooltipHuntersBow"
					r_graphic="'huntersbow.png'"
					baseWeaponDamage="8"
					baseWeaponHitBonus="2">
			<modifier r_name="'Dexterity'" r_template="'mainItemModifier'" r_modifierTarget="'Dexterity'" r_modifiedValue="$0+2"/>
			<modifier r_name="'Strength'" r_template="'mainItemModifier'" r_modifierTarget="'Strength'" r_modifiedValue="$0+2"/>
			<modifier r_name="'hunterDamagBonus'" r_template="'mainModifierTemplate'" r_modifierTarget="'weaponAdditionalDamage'" r_modifiedValue="$0+((target.isFlying>0)?3D6:0)"/>
		</item>

		<!-- Weapons -->
		<itemTemplate r_name="'artefactWeapon'" r_template="'artefactItem'"/>
		<item r_name="'AssassinsDagger'" r_template="{'Dagger','artefactWeapon'}"
					itemName="text.AssassinsDagger"
					itemTooltip="text.tooltipAssassinsDagger"
					r_graphic="'assassinsdagger.png'"
					baseWeaponDamage="10">
			<modifier r_name="'piercing'" r_template="'mainModifierTemplate'" r_modifierTarget="'weaponPiercingDamage'" r_modifiedValue="$0+5"/>
			<modifier r_name="'keen'" r_template="'mainModifierTemplate'" r_modifierTarget="'weaponCriticalPercentage'" r_modifiedValue="$0+10"/>
			<modifier r_name="'Dagger'" r_template="'mainItemModifier'" r_modifierTarget="'Dagger'" r_modifiedValue="$0+2"/>
		</item>
		<item r_name="'LightSaber'" r_template="{'LongSword','artefactWeapon'}"
					itemName="text.LightSaber"
					itemTooltip="text.tooltipLightSaber"
					r_graphic="'lightsaber.png'"
					baseWeaponDamage="12"
					weaponIgnoreArmor="1">
			<modifier r_name="'rangedDefense'" r_template="'mainItemModifier'" r_modifierTarget="'rangedDefense'" r_modifiedValue="$0+3"/>
		</item>
		<item r_name="'Bane'" r_template="{'Claymore','artefactWeapon'}"
					itemName="text.Bane"
					itemTooltip="text.tooltipBane"
					r_graphic="'bane.png'"
					baseWeaponDamage="21">
			<modifier r_name="'Death'" r_template="'mainItemModifier'" r_modifierTarget="'Death'" r_modifiedValue="$0+1"/>
			<action r_name="'attackAction'">
				<effect r_name="'mainEffect'">
					<effect r_name="'hitEffect'">
						<effect r_name="'curseProc'" r_template="'curseEffect'" curseValue="3" powerDuration="500" powerRecastRule="'resetDuration'" actionLogMethod="'logDebuffEffect'"/>
					</effect>
				</effect>
			</action>
		</item>
		<item r_name="'BoneCrusher'" r_template="{'MorningStar','artefactWeapon'}"
					itemName="text.BoneCrusher"
					itemTooltip="text.tooltipBoneCrusher"
					r_graphic="'bonecrusher.png'"
					baseWeaponDamage="13">
			<modifier r_name="'holyWeaponBonus'" r_template="'mainModifierTemplate'" r_modifierTarget="'weaponAdditionalDamage'" r_modifiedValue="$0+((exists(target)&&contains(target.encounterTags,'undead'))?(2D6):0)"/>
			<action r_name="'attackAction'">
				<effect r_name="'mainEffect'">
					<effect r_name="'hitEffect'">
						<effect r_name="'disruptUndead'" r_template="'disruptEvilAttack'"
										r_enabled="contains(target.encounterTags,'undead')"
										powerHitBonus="Mace+CloseCombat/2"/>
					</effect>
				</effect>
			</action>
		</item>
		<item r_name="'Earthquake'" r_template="{'HeavyMace','artefactWeapon'}"
					itemName="text.Earthquake"
					itemTooltip="text.tooltipEarthquake"
					r_graphic="'earthquake.png'"
					baseWeaponDamage="22">
			<action r_name="'attackAction'">
				<effect r_name="'mainEffect'">
					<effect r_name="'earthBlast'" r_template="{'mainSquareEffectTemplate','controllerEffect'}"
									r_className="'CctlEffectLaunchAreaEffect'"
									r_area="{'cone',targetSquare.w_xCoord,targetSquare.w_yCoord,easyOrientation8(actor.square.w_xCoord, actor.square.w_yCoord,targetSquare.w_xCoord,targetSquare.w_yCoord),3}"
									r_areaTargetingType="'direct'">
						<effect r_name="'zoneEffectGraphic'" r_template="'zoneEffectGraphicTemplate'"
										zoneEffectGraphic="'earthAreaEffect'"
										delay="2*actor.square.distanceTo(targetSquare)"/>
						<effect r_name="'earthquakeAttack'" r_template="'weaponPhysicalAttackEffect'"
										r_enabled="exists(target)"
										actionLogMethod="'logStrikePowerWithDamage'">
							<effect r_name="'hitEffect'"
											offensiveDamageBonus="5+(enhancementBonus)D4"/>
						</effect>
					</effect>
				</effect>
			</action>
		</item>
		<item r_name="'Mutilator'" r_template="{'BattleAxe','artefactWeapon'}"
					itemName="text.Mutilator"
					itemTooltip="text.tooltipMutilator"
					r_graphic="'mutilator.png'"
					weaponSpeed="90"
					baseWeaponDamage="13">
			<modifier r_name="'Strength'" r_template="'mainItemModifier'" r_modifierTarget="'Strength'" r_modifiedValue="$0+2"/>
			<action r_name="'attackAction'">
				<effect r_name="'mainEffect'">
					<effect r_name="'hitEffect'">
						<effect r_name="'crippelProc'" r_template="'cripplingEffect'" rw_charge="2" powerDuration="500" powerRecastRule="'resetDurationAndAddCharge'" actionLogMethod="'logDebuffEffect'"/>
					</effect>
				</effect>
			</action>
		</item>
		<item r_name="'HeadCutter'" r_template="{'Cleaver','artefactWeapon'}"
					itemName="text.HeadCutter"
					itemTooltip="text.tooltipHeadCutter"
					r_graphic="'headcutter.png'"
					baseWeaponDamage="22">
			<modifier r_name="'Strength'" r_template="'mainItemModifier'" r_modifierTarget="'Strength'" r_modifiedValue="$0+4"/>
			<action r_name="'attackAction'">
				<effect r_name="'mainEffect'">
					<effect r_name="'hitEffect'">
						<effect r_name="'instaKill'" r_template="{'mainSelfEffectTemplate','multiEffect'}"
										r_enabled="(1D10==1)&&!contains(target.encounterTags,'construct')&&!contains(target.immunities,'headCut')">
							<effect r_name="'log'" r_template="'logCutHeadEffect'"/>
							<effect r_name="'instaKill'" r_template="{'mainSelfEffectTemplate','evaluationEffect'}" r_effect="target.isDead=1"/>
						</effect>										
					</effect>
				</effect>
			</action>
		</item>
		<item r_name="'Impaler'" r_template="{'Spear','artefactWeapon'}"
					itemName="text.Impaler"
					itemTooltip="text.tooltipImpaler"
					r_graphic="'impaler.png'"
					baseWeaponDamage="13">
			<modifier r_name="'Strength'" r_template="'mainItemModifier'" r_modifierTarget="'Strength'" r_modifiedValue="$0+2"/>
			<modifier r_name="'Dexterity'" r_template="'mainItemModifier'" r_modifierTarget="'Dexterity'" r_modifiedValue="$0+2"/>
			<action r_name="'attackAction'">
				<effect r_name="'strikeBehind'" r_template="{'mainSquareEffectTemplate','controllerEffect'}"
								r_className="'CctlEffectLaunchAreaEffect'"
								r_area="{'point',2*target.w_xCoord-actor.w_xCoord,2*target.w_yCoord-actor.w_yCoord}"
								r_areaTargetingType="'all'">
					<effect r_name="'strikeMH'" r_template="{'mainTargetEffectTemplate','controllerEffect'}" r_enabled="exists(target)" r_className="'CctlEffectLaunchAction'" r_newActor="'actor'" r_newTarget="'target'" r_newActionType="'equippedItem'" r_newActionName="'mainhand'" r_delayRequest="0" r_params="{{'isFree',1},{'r_targetingType','all'},{'r_range',99}}"/>
				</effect>
			</action>
		</item>
		<item r_name="'ElementalStaff'" r_template="{'Staff','artefactWeapon'}"
					itemName="text.ElementalStaff"
					itemTooltip="text.tooltipElementalStaff"
					r_graphic="'elementalstaff.png'"
					baseWeaponDamage="8">
			<modifierTemplate r_name="'affinityModifier'" r_template="'mainItemModifier'" r_modifierTarget="r_name" r_modifiedValue="$0+(((baseValueByName(r_name)>0)||(baseValueByName(r_name+'Bonus')>0))?1:0)"/>
			<modifier r_name="'Air'" r_template="'affinityModifier'"/>
			<modifier r_name="'Earth'" r_template="'affinityModifier'"/>
			<modifier r_name="'Fire'" r_template="'affinityModifier'"/>
			<modifier r_name="'Water'" r_template="'affinityModifier'"/>
		</item>
		<item r_name="'ElvenCompositeLongbow'" r_template="{'CompositeLongbow','artefactWeapon'}"
					itemName="text.ElvenCompositeLongbow"
					itemTooltip="text.tooltipElvenCompositeLongbow"
					r_graphic="'elvencompositebow.png'"
					baseWeaponDamage="8"
					weaponSpeed="90"
					baseWeaponHitBonus="2">
			<modifier r_name="'keen'" r_template="'mainModifierTemplate'" r_modifierTarget="'weaponCriticalPercentage'" r_modifiedValue="$0+10"/>
			<modifier r_name="'Dexterity'" r_template="'mainItemModifier'" r_modifierTarget="'Dexterity'" r_modifiedValue="$0+2"/>
		</item>
		<item r_name="'PortableBallista'" r_template="{'HeavyCrossbow','artefactWeapon'}"
					itemName="text.PortableBallista"
					itemTooltip="text.tooltipPortableBallista"
					r_graphic="'portableballista.png'"
					baseWeaponDamage="12">
			<modifier r_name="'Strength'" r_template="'mainItemModifier'" r_modifierTarget="'Strength'" r_modifiedValue="$0+2"/>
			<action r_name="'attackAction'">
				<effect r_name="'mainEffect'">
					<effect r_name="'hitEffect'">
						<effect r_name="'pushEffect'" r_template="'pushEffect'"/>
					</effect>
				</effect>
			</action>
		</item>
		<item r_name="'LightningJavelin'" r_template="{'Javelins','artefactWeapon'}"
					itemName="text.LightningJavelin"
					itemTooltip="text.tooltipLightningJavelin"
					r_graphic="'lightningjavelin.png'"
					baseWeaponDamage="13">
			<action r_name="'attackAction'"
							r_targetingType="'line8'">
				<effect r_name="'mainEffect'">
					<effect r_name="'hitEffect'">
						<effect r_name="'lightningEffect'" r_template="{'mainSelfEffectTemplate','multiEffect'}"
										xDirection="(targetSquare.w_xCoord>actor.w_xCoord)?1:((actor.w_xCoord>targetSquare.w_xCoord)?-1:0)"
										yDirection="(targetSquare.w_yCoord>actor.w_yCoord)?1:((actor.w_yCoord>targetSquare.w_yCoord)?-1:0)"
										fixedXStart=""
										fixedYStart=""
										fixedXDirection=""
										fixedYDirection=""
										powerHitEffectTemplate="'powerStrikeDamageEffect'"
										powerMissEffectTemplate="'standardMissTemplate'"
										powerDefenseName="text.defenseSpellDefense"
										actionLogMethod="'logStrikePowerWithDamage'"
										powerHitBonus="Throw+RangedCombat/2"
										powerDamage="10">
							<effect r_name="'log'" r_template="'logPower'"/>
							<effect r_name="'fixValues'" r_template="{'mainSelfEffectTemplate','evaluationEffect'}" r_effect="all({fixedXStart=targetSquare.w_xCoord,fixedYStart=targetSquare.w_yCoord,fixedXDirection=xDirection,fixedYDirection=yDirection})"/>
							<effect r_name="'strikeInLine'" r_template="{'mainSquareEffectTemplate','controllerEffect'}"
											r_className="'CctlEffectLaunchAreaEffect'"
											r_area="{'line',fixedXStart,fixedYStart,fixedXStart+fixedXDirection*4,fixedYStart+fixedYDirection*4}"
											r_areaTargetingType="'direct'">
								<effect r_name="'zoneEffectGraphic'" r_template="'zoneEffectGraphicTemplate'"
												zoneEffectGraphic="'windAreaEffect'"
												delay="2*actor.square.distanceTo(targetSquare)"/>
								<effect r_name="'powerEffect'" r_template="'powerSpellAttackEffect'">
									<effect r_name="'hitEffect'" attackIgnoreArmor="1"/>
								</effect>
							</effect>
						</effect>
					</effect>
				</effect>
			</action>
		</item>
		<itemTemplate r_name="'randomArtefactWeapon'" r_template="randomElement({'AssassinsDagger','LightSaber','Bane','BoneCrusher','Earthquake','Mutilator','HeadCutter','Impaler','ElementalStaff','ElvenCompositeLongbow','PortableBallista','LightningJavelin'})"/>

		<!-- Shield -->
		<itemTemplate r_name="'artefactShield'" r_template="'artefactItem'"/>
		<item r_name="'LuckyShield'" r_template="{'Buckler','artefactShield'}"
					itemName="text.LuckyShield"
					itemTooltip="text.tooltipLuckyShield"
					r_graphic="'luckyshield.png'"
					baseItemDefense="2">
			<modifier r_name="'absorption'" r_template="'mainItemModifier'" r_modifierTarget="'customDamageAbsorption'" r_modifiedValue="$0+1D6"/>
			<modifier r_name="'Dexterity'" r_template="'mainItemModifier'" r_modifierTarget="'Dexterity'" r_modifiedValue="$0+2"/>
		</item>
		<item r_name="'MirrorShield'" r_template="{'Shield','artefactShield'}"
					itemName="text.MirrorShield"
					itemTooltip="text.tooltipMirrorShield"
					r_graphic="'mirrorshield.png'"
					baseItemDefense="3">
			<modifier r_name="'spellDefense'" r_template="'mainItemModifier'" r_modifierTarget="'spellDefense'" r_modifiedValue="$0+8"/>
			<modifier r_name="'Strength'" r_template="'mainItemModifier'" r_modifierTarget="'Strength'" r_modifiedValue="$0+2"/>
		</item>
		<item r_name="'KnightsShield'" r_template="{'LargeShield','artefactShield'}"
					itemName="text.KnightsShield"
					itemTooltip="text.tooltipKnightsShield"
					r_graphic="'knightsshield.png'"
					baseItemDefense="4"
					baseWeaponDamage="8"
					baseWeaponHitBonus="4">
			<modifier r_name="'Strength'" r_template="'mainItemModifier'" r_modifierTarget="'Strength'" r_modifiedValue="$0+2"/>
			<modifier r_name="'customCloseCombatHitBonus'" r_template="'mainItemModifier'" r_modifierTarget="'customCloseCombatHitBonus'" r_modifiedValue="$0+2"/>
			<modifier r_name="'closeCombatDefense'" r_template="'mainItemModifier'" r_modifierTarget="'closeCombatDefense'" r_modifiedValue="$0+2"/>
		</item>
		<item r_name="'TheGreatWall'" r_template="{'TowerShield','artefactShield'}"
					itemName="text.TheGreatWall"
					itemTooltip="text.tooltipTheGreatWall"
					r_graphic="'thegreatwall.png'"
					baseItemDefense="5">
			<modifier r_name="'Constitution'" r_template="'mainItemModifier'" r_modifierTarget="'Constitution'" r_modifiedValue="$0+2"/>
			<modifier r_name="'rangedDefense'" r_template="'mainItemModifier'" r_modifierTarget="'rangedDefense'" r_modifiedValue="$0+4"/>
		</item>
		<itemTemplate r_name="'randomArtefactShield'" r_template="randomElement({'LuckyShield','MirrorShield','KnightsShield','TheGreatWall'})"/>
		
		<!-- Book -->
		<item r_name="'AstralBook'" r_template="{'BookTemplate','artefactItem'}"
					itemName="text.AstralBook"
					itemTooltip="text.tooltipAstralBook"
					r_graphic="'astralbook.png'"
					maximumBonus="max(4,gameParameters.lootLowArtefactEnchantmentBonus)">
			<modifier r_name="'selfSpellSustainModifier'" r_template="'mainItemModifier'" r_modifierTarget="'selfSpellSustainModifier'" r_modifiedValue="$0*0.8"/>
			<modifier r_name="'spellCostModifier'" r_template="'mainItemModifier'" r_modifierTarget="'spellCostModifier'" r_modifiedValue="$0-2"/>
			<modifier r_name="'Magic'" r_template="'mainItemModifier'" r_modifierTarget="'Magic'" r_modifiedValue="$0+enhancementBonus"/>
		</item>
		<item r_name="'DivineBook'" r_template="{'BookTemplate','artefactItem'}"
					itemName="text.DivineBook"
					itemTooltip="text.tooltipDivineBook"
					r_graphic="'divinebook.png'"
					maximumBonus="1">
			<modifier r_name="'Holy'" r_template="'mainItemModifier'" r_modifierTarget="'Holy'" r_modifiedValue="$0+1"/>
			<modifier r_name="'Death'" r_template="'mainItemModifier'" r_modifierTarget="'Death'" r_modifiedValue="$0+1"/>
			<event r_name="'restoration'" r_template="'mainEventTemplate'" r_enabled="w_equipped" r_eventTarget="'rw_currentTime'" r_targetType="'attribute'">
				<effect r_name="'restorationEffect'" r_template="{'mainSelfEffectTemplate','evaluationEffect'}" r_enabled="w_newValue>w_oldValue" r_effect="fatigue+=(w_newValue-w_oldValue)*2/100"/>
			</event>
		</item>
		<itemTemplate r_name="'randomArtefactBook'" r_template="randomElement({'AstralBook','DivineBook'})"/>

		<!-- Book -->
		<item r_name="'TheOneRing'" r_template="{'RingTemplate','artefactItem'}"
					itemName="text.TheOneRing"
					itemTooltip="text.tooltipTheOneRing"
					r_graphic="'theonering.png'"
					maximumBonus="max(1,floor(gameParameters.lootLowArtefactEnchantmentBonus/2))">
			<modifier r_name="'Strength'" r_template="'mainItemModifier'" r_modifierTarget="'Strength'" r_modifiedValue="$0+enhancementBonus"/>
			<modifier r_name="'Dexterity'" r_template="'mainItemModifier'" r_modifierTarget="'Dexterity'" r_modifiedValue="$0+enhancementBonus"/>
			<modifier r_name="'Intelligence'" r_template="'mainItemModifier'" r_modifierTarget="'Intelligence'" r_modifiedValue="$0+enhancementBonus"/>
			<modifier r_name="'Constitution'" r_template="'mainItemModifier'" r_modifierTarget="'Constitution'" r_modifiedValue="$0+enhancementBonus"/>
			<modifier r_name="'CloseCombat'" r_template="'mainItemModifier'" r_modifierTarget="'CloseCombat'" r_modifiedValue="$0+enhancementBonus"/>
			<modifier r_name="'RangedCombat'" r_template="'mainItemModifier'" r_modifierTarget="'RangedCombat'" r_modifiedValue="$0+enhancementBonus"/>
			<modifier r_name="'Magic'" r_template="'mainItemModifier'" r_modifierTarget="'Magic'" r_modifiedValue="$0+enhancementBonus"/>
			<modifier r_name="'Dodge'" r_template="'mainItemModifier'" r_modifierTarget="'Dodge'" r_modifiedValue="$0+enhancementBonus"/>
			<modifier r_name="'Resistance'" r_template="'mainItemModifier'" r_modifierTarget="'Resistance'" r_modifiedValue="$0+enhancementBonus"/>
		</item>
		<item r_name="'RingOfLife'" r_template="{'RingTemplate','artefactItem'}"
					itemName="text.RingOfLife"
					itemTooltip="text.tooltipRingOfLife"
					r_graphic="'ringoflife.png'"
					maximumBonus="1">
			<modifier r_name="'maxHitPoints'" r_template="'mainItemModifier'" r_modifierTarget="'maxHitPoints'" r_modifiedValue="$0+50"/>
			<modifier r_name="'Holy'" r_template="'mainItemModifier'" r_modifierTarget="'Holy'" r_modifiedValue="$0+1"/>
			<modifier r_name="'destructionOnDying'" r_template="'mainItemModifier'" r_modifierTarget="'destructionOnDying'" r_modifiedValue="0"/>
			<event r_name="'resurrection'" r_template="'mainEventTemplate'" r_enabled="w_equipped" r_eventTarget="'isDead'" r_targetType="'attribute'">
				<effect r_name="'resurrection'" r_template="{'mainSelfEffectTemplate','multiEffect'}" r_enabled="isDead">
					<effect r_name="'gameOver'" r_template="{'mainSelfEffectTemplate','evaluationEffect'}" r_effect="all({isDead=0,fatigue=exhaustion,hitPoints=maxHitPoints})"/>
					<effect r_name="'log'" r_template="'logResurrectionRingOfLife'"/>
					<effect r_name="'remove'" r_template="{'mainSelfEffectTemplate','controllerEffect'}" r_className="'CctlEffectDestructor'"/>
				</effect>
			</event>
		</item>
		<item r_name="'WardingPearl'" r_template="{'AmuletTemplate','artefactItem'}"
					itemName="text.WardingPearl"
					itemTooltip="text.tooltipWardingPearl"
					r_graphic="'wardingpearl.png'"
					maximumBonus="gameParameters.lootHighArtefactEnchantmentBonus">
			<modifier r_name="'Resistance'" r_template="'mainItemModifier'" r_modifierTarget="'Resistance'" r_modifiedValue="$0+enhancementBonus"/>
			<modifier r_name="'Intelligence'" r_template="'mainItemModifier'" r_modifierTarget="'Intelligence'" r_modifiedValue="$0+2"/>
			<modifier r_name="'immunities'" r_template="'mainItemModifier'" r_modifierTarget="'immunities'" r_modifiedValue="$0+{'Poison'}"/>
		</item>
		<itemTemplate r_name="'randomArtefactJewelry'" r_template="randomElement({'TheOneRing','RingOfLife','WardingPearl'})"/>

		<!-- Body Armor -->
		<itemTemplate r_name="'artefactBodyArmor'" r_template="'artefactItem'"/>
		<item r_name="'RobeOfTheArchmage'" r_template="{'selfActivableItemTemplate','Robe','artefactBodyArmor'}"
					itemActionTemplate="'mainActionWithFatigueTemplate'"
					itemEffectTemplate="{'mainTargetEffectTemplate','mainBuffEffectTemplate'}"
					actionLogMethod="'logPowerWithBuff'"
					endBuffLogMethod="'logBuffEnd'"
					maximumBonus="gameParameters.lootLowArtefactEnchantmentBonus"
					itemName="text.RobeOfTheArchmage"
					itemTooltip="text.tooltipRobeOfTheArchmage"
					r_graphic="'robeofthearchmage.png'"
					baseItemArmor="1">
			<modifier r_name="'Intelligence'" r_template="'mainItemModifier'" r_modifierTarget="'Intelligence'" r_modifiedValue="$0+2"/>
			<action r_name="'use'"
							r_enabled="w_equipped"
							exhaustionCost="2">
				<effect r_name="'mainEffect'"
								r_effectName="itemName"
								r_tickDuration="2000"
								r_tickCount="2"
								cancellable="1"
								recastRule="'replace'">
					<modifier r_name="'Air'" r_template="'mainEffectModifier'" r_enabled="w_launched&&w_equipped" r_modifierTarget="'Air'" r_modifiedValue="$0+2"/>
					<modifier r_name="'Earth'" r_template="'mainEffectModifier'" r_enabled="w_launched&&w_equipped" r_modifierTarget="'Earth'" r_modifiedValue="$0+2"/>
					<modifier r_name="'Fire'" r_template="'mainEffectModifier'" r_enabled="w_launched&&w_equipped" r_modifierTarget="'Fire'" r_modifiedValue="$0+2"/>
					<modifier r_name="'Water'" r_template="'mainEffectModifier'" r_enabled="w_launched&&w_equipped" r_modifierTarget="'Water'" r_modifiedValue="$0+2"/>
				</effect>
			</action>
		</item>
		<item r_name="'DragonArmor'" r_template="{'StuddedLeatherArmor','artefactBodyArmor'}"
					itemName="text.DragonArmor"
					itemTooltip="text.tooltipDragonArmor"
					r_graphic="'dragonarmor.png'"
					baseItemArmor="6">
			<modifier r_name="'Fire'" r_template="'mainItemModifier'" r_modifierTarget="'Fire'" r_modifiedValue="$0+1"/>
			<modifier r_name="'Strength'" r_template="'mainItemModifier'" r_modifierTarget="'Strength'" r_modifiedValue="$0+2"/>
			<modifier r_name="'Dexterity'" r_template="'mainItemModifier'" r_modifierTarget="'Dexterity'" r_modifiedValue="$0+2"/>
		</item>
		<item r_name="'Fortress'" r_template="{'PlateArmor','artefactBodyArmor'}"
					itemName="text.Fortress"
					itemTooltip="text.tooltipFortress"
					r_graphic="'fortress.png'"
					baseItemArmor="12"
					damageAbsorption="8">
			<modifier r_name="'Constitution'" r_template="'mainItemModifier'" r_modifierTarget="'Constitution'" r_modifiedValue="$0+2"/>
			<modifier r_name="'suffersCritical'" r_template="'mainItemModifier'" r_modifierTarget="'suffersCritical'" r_modifiedValue="0"/>
		</item>
		<itemTemplate r_name="'randomArtefactBodyArmor'" r_template="randomElement({'RobeOfTheArchmage','DragonArmor','Fortress'})"/>

		<!-- Armor -->
		<itemTemplate r_name="'artefactArmor'" r_template="'artefactItem'" maximumBonus="gameParameters.lootLowArtefactEnchantmentBonus"/>
		<item r_name="'HelmOfWisdom'" r_template="{'Helm','artefactArmor'}"
					itemName="text.HelmOfWisdom"
					itemTooltip="text.tooltipHelmOfWisdom"
					r_graphic="'helmofwisdom.png'"
					baseItemArmor="2">
			<modifier r_name="'Intelligence'" r_template="'mainItemModifier'" r_modifierTarget="'Intelligence'" r_modifiedValue="$0+2"/>
			<modifier r_name="'Enchantment'" r_template="'mainItemModifier'" r_modifierTarget="'Enchantment'" r_modifiedValue="$0+2"/>
			<modifier r_name="'immunities'" r_template="'mainItemModifier'" r_modifierTarget="'immunities'" r_modifiedValue="$0+{'Confuse','Fury','Fear','Shaken'}"/>
		</item>
		<item r_name="'SpiderCloak'" r_template="{'ActivableItemTemplate','Cloak','artefactArmor'}"
					itemActionTemplate="'mainActionWithFatigueTemplate'"
					itemEffectTemplate="{'mainTargetEffectTemplate','weaponRangedRootAttack'}"
					itemName="text.SpiderCloak"
					itemTooltip="text.tooltipSpiderCloak"
					powerDuration="1D5*100"
					powerRecastRule="'fail'"
					r_graphic="'spidercloak.png'"
					weaponHitBonus="Throw+RangedCombat/2-ItemPenalty+customRangedHitBonus"
					actionVerb="'shoots'"
					baseItemArmor="2">
			<modifier r_name="'Dexterity'" r_template="'mainItemModifier'" r_modifierTarget="'Dexterity'" r_modifiedValue="$0+2"/>
			<action r_name="'use'"
							r_enabled="w_equipped"
							r_range="min(4,r_viewRange)"
							fatigueCost="10"/>
		</item>
		<item r_name="'BracersOfGiants'" r_template="{'Bracers','artefactArmor'}"
					itemName="text.BracersOfGiants"
					itemTooltip="text.tooltipBracersOfGiants"
					r_graphic="'bracersofgiants.png'"
					baseItemArmor="2">
			<modifier r_name="'Strength'" r_template="'mainItemModifier'" r_modifierTarget="'Strength'" r_modifiedValue="$0+4"/>
			<modifier r_name="'Earth'" r_template="'mainItemModifier'" r_modifierTarget="'Earth'" r_modifiedValue="$0+1"/>
		</item>
		<item r_name="'ThiefsGloves'" r_template="{'Gloves','artefactArmor'}"
					itemName="text.ThiefsGloves"
					itemTooltip="text.tooltipThiefsGloves"
					r_graphic="'thiefsgloves.png'"
					baseItemArmor="2">
			<modifier r_name="'Dexterity'" r_template="'mainItemModifier'" r_modifierTarget="'Dexterity'" r_modifiedValue="$0+2"/>
			<modifier r_name="'openCost'" r_template="'mainItemModifier'" r_modifierTarget="'openCost'" r_modifiedValue="0"/>
			<modifier r_name="'mainhandSpeed'" r_template="'mainItemModifier'" r_enabled="w_equipped&&exists(mainhand)" r_modifierTarget="'mainhand.weaponSpeed'" r_modifiedValue="$0*0.9">
				<event r_name="'mainhandUpdate'" r_template="'mainEventTemplate'" r_enabled="w_equipped" r_eventTarget="'mainhand'" r_targetType="'evaluator'">
					<effect r_name="'eventRefresh'" r_template="{'mainSelfEffectTemplate','utilityEffect'}" r_className="'CutiEffectRefreshHierarchy'" r_refreshTarget="'mainhandSpeed'"/>
				</event>
			</modifier>
			<modifier r_name="'offhandSpeed'" r_template="'mainItemModifier'" r_enabled="w_equipped&&exists(offhand)&&exists(offhand.weaponSpeed)" r_modifierTarget="'offhand.weaponSpeed'" r_modifiedValue="$0*0.9">
				<event r_name="'mainhandUpdate'" r_template="'mainEventTemplate'" r_enabled="w_equipped" r_eventTarget="'offhand'" r_targetType="'evaluator'">
					<effect r_name="'eventRefresh'" r_template="{'mainSelfEffectTemplate','utilityEffect'}" r_className="'CutiEffectRefreshHierarchy'" r_refreshTarget="'offhandSpeed'"/>
				</event>
			</modifier>
		</item>
		<item r_name="'BeltOfTheBull'" r_template="{'Belt','artefactArmor'}"
					itemName="text.BeltOfTheBull"
					itemTooltip="text.tooltipBeltOfTheBull"
					r_graphic="'beltofthebull.png'"
					baseItemArmor="2">
			<modifier r_name="'Strength'" r_template="'mainItemModifier'" r_modifierTarget="'Strength'" r_modifiedValue="$0+2"/>
			<modifier r_name="'Constitution'" r_template="'mainItemModifier'" r_modifierTarget="'Constitution'" r_modifiedValue="$0+2"/>
			<modifier r_name="'chargeEffiency'" r_template="'mainItemModifier'" r_enabled="w_equipped&&exists(powers.Charge)" r_modifierTarget="'powers.Charge.powerFatigueCost'" r_modifiedValue="$0*0.5">
				<event r_name="'mainhandUpdate'" r_template="'mainEventTemplate'" r_enabled="w_equipped" r_eventTarget="'powers'" r_targetType="'evaluator'">
					<effect r_name="'eventRefresh'" r_template="{'mainSelfEffectTemplate','utilityEffect'}" r_className="'CutiEffectRefreshHierarchy'" r_refreshTarget="'chargeEffiency'"/>
				</event>
			</modifier>
		</item>
		<item r_name="'BlinkingBoots'" r_template="{'selfActivableItemTemplate','Boots','artefactArmor'}"
					itemActionTemplate="'mainActionWithFatigueTemplate'"
					itemEffectTemplate="{'mainSelfEffectTemplate','controllerEffect'}"
					actionLogMethod="'logPower'"
					itemName="text.BlinkingBoots"
					itemTooltip="text.tooltipBlinkingBoots"
					r_graphic="'blinkingboots.png'"
					baseItemArmor="2">
			<modifier r_name="'rangedDefense'" r_template="'mainItemModifier'" r_modifierTarget="'rangedDefense'" r_modifiedValue="$0+3"/>
			<modifier r_name="'spellDefense'" r_template="'mainItemModifier'" r_modifierTarget="'spellDefense'" r_modifiedValue="$0+3"/>
			<modifier r_name="'closeCombatDefense'" r_template="'mainItemModifier'" r_modifierTarget="'closeCombatDefense'" r_modifiedValue="$0+1"/>
			<action r_name="'use'"
							r_enabled="w_equipped"
							fatigueCost="10">
				<effect r_name="'mainEffect'"
								r_className="'CctlEffectTeleportation'"
								r_targetLevelIndex="actor.w_levelIndex"
								rw_xTarget="actor.w_xCoord"
								rw_yTarget="actor.w_yCoord"
								r_randomDestination="1"
								r_randomRange="7"
								r_randomTargetingType="'standard'"
								r_walkSimulation="0"
								w_crossedSquare="0"/>
			</action>
		</item>
		
		<itemTemplate r_name="'randomArtefactMiscArmor'" r_template="randomElement({'HelmOfWisdom','SpiderCloak','CloakOfWindShield','BracersOfGiants','ThiefsGloves','BeltOfTheBull','BlinkingBoots','BootsOfFly'})"/>

		<itemTemplate r_name="'randomArtefactArmor'" r_template="randomElement({'LuckyShield','MirrorShield','KnightsShield','TheGreatWall'}+{'RobeOfTheArchmage','DragonArmor','Fortress'}+{'HelmOfWisdom','SpiderCloak','BracersOfGiants','ThiefsGloves','BeltOfTheBull','BlinkingBoots'})"/>
		<itemTemplate r_name="'randomArtefactJewellery'" r_template="randomElement({'AstralBook','DivineBook'}+{'TheOneRing','RingOfLife','WardingPearl'}+{'BagOfWinds'})"/>

		<itemTemplate r_name="'randomArtefact'" r_template="randomElement({'AssassinsDagger','LightSaber','Bane','BoneCrusher','Earthquake','Mutilator','HeadCutter','Impaler','ElementalStaff','ElvenCompositeLongbow','HuntersBow','PortableBallista','LightningJavelin'}+{'LuckyShield','MirrorShield','KnightsShield','TheGreatWall'}+{'AstralBook','DivineBook'}+{'TheOneRing','RingOfLife','WardingPearl'}+{'RobeOfTheArchmage','DragonArmor','Fortress'}+{'HelmOfWisdom','SpiderCloak','BracersOfGiants','ThiefsGloves','BeltOfTheBull','BlinkingBoots'})"/>
	</items>
</data>