<data>
	<items>
		<!-- generic Template -->
		<itemTemplate r_name="'mainItemTemplate'"
									itemName="'ToBeReplaced'"
									r_displayName="itemName+((length(nameModifiers)>0)?(' '+arrayToValue($0+' '+$1,arraysToArray('['+$0+']', nameModifiers))):'')"
									r_graphic="''"
									w_equipped="0"
									slot="''"
									targetSlot="slot"
									targetSlot2="''"
									halfHand="0"
									r_lootable="1"
									r_autoEquip="1"
									r_autoStack="0"
									equippedGraphic="''"
									itemTooltip="''"
									tooltip="r_displayName+'\n'+itemTooltip"
									properties="{}"
									nameModifiers="{}"
									magicLevel="min(length(properties),3)">
		</itemTemplate>

		<!-- Enhancement templates -->
		<itemTemplate r_name="'enhancementBonus0'" enhancementBonus="0"/>
		<itemTemplate r_name="'enhancementBonus1'" enhancementBonus="1"/>
		<itemTemplate r_name="'enhancementBonus2'" enhancementBonus="2"/>
		<itemTemplate r_name="'enhancementBonus3'" enhancementBonus="3"/>
		<itemTemplate r_name="'enhancementBonus4'" enhancementBonus="4"/>
		<itemTemplate r_name="'enhancementBonus5'" enhancementBonus="5"/>
		<itemTemplate r_name="'enhancementBonus6'" enhancementBonus="6"/>
		<itemTemplate r_name="'enhancementBonus7'" enhancementBonus="7"/>
		<itemTemplate r_name="'enhancementBonus8'" enhancementBonus="8"/>
		<itemTemplate r_name="'enhancementBonus9'" enhancementBonus="9"/>
		<itemTemplate r_name="'enhancementBonus10'" enhancementBonus="10"/>
		<itemTemplate r_name="'enhancementBonus11'" enhancementBonus="11"/>
		<itemTemplate r_name="'enhancementBonus12'" enhancementBonus="12"/>
		<itemTemplate r_name="'enhancementBonus13'" enhancementBonus="13"/>
		<itemTemplate r_name="'enhancementBonus14'" enhancementBonus="14"/>
		<itemTemplate r_name="'enhancementBonus15'" enhancementBonus="15"/>
		<itemTemplate r_name="'enhancementBonus16'" enhancementBonus="16"/>
		<itemTemplate r_name="'enhancementBonus17'" enhancementBonus="17"/>
		<itemTemplate r_name="'enhancementBonus18'" enhancementBonus="18"/>
		<itemTemplate r_name="'enhancementBonus19'" enhancementBonus="19"/>
		<itemTemplate r_name="'enhancementBonus20'" enhancementBonus="20"/>
		<itemTemplate r_name="'randomEnhancementBonusLow'" r_template="'enhancementBonus'+eval(gameParameters.lootLowEnchantmentBonus,dungeonDepth)"/>
		<itemTemplate r_name="'randomEnhancementBonusStandard'" r_template="'enhancementBonus'+eval(gameParameters.lootStandardEnchantmentBonus,dungeonDepth)"/>
		<itemTemplate r_name="'randomEnhancementBonusHigh'" r_template="'enhancementBonus'+eval(gameParameters.lootHighEnchantmentBonus,dungeonDepth)"/>

		<itemTemplate r_name="'ActivableItemTemplate'" r_template="'mainItemTemplate'"
									itemActionTemplate="'ToBeReplaced'"
									itemEffectTemplate="'ToBeReplaced'">
			<action r_name="'use'" r_template="itemActionTemplate"
							actionEffectTemplate="itemEffectTemplate"/>
		</itemTemplate>

		<itemTemplate r_name="'selfActivableItemTemplate'" r_template="'ActivableItemTemplate'">
			<action r_name="'use'">
				<effect r_name="'itemAnimation'" r_template="{'mainSquareEffectTemplate','controllerEffect'}"
								r_className="'CctlEffectCreateGraphicObject'"
								r_simpleObject="'effectitem'"
								r_delay="0"
								r_duration="8"
								r_xStart="actor.w_xCoord"
								r_yStart="actor.w_yCoord"
								r_xEnd="xStart"
								r_yEnd="yStart"
								r_scaleX="1"
								r_scaleY="1"
								r_levelIndex="actor.w_levelIndex"
								r_speed="0"/>
				<effect r_name="'launchSound'" r_template="{'mainSelfEffectTemplate','controllerEffect'}"
								r_className="'CctlEffectSound'"
								r_soundName="'pots.mp3'"
								r_recastTimer="0.3"/>
			</action>
		</itemTemplate>
	</items>

	<!-- Brands -->
	<maps>
		<mapTemplate r_name="'itemEnchantmentTemplate'" enchantmentProperty="''" enchantmentName="''" enchantmentTooltip="''">
			<modifier r_name="'propertyModifier'" r_template="'mainModifierTemplate'" r_modifierTarget="'properties'" r_modifiedValue="$0+{enchantmentProperty}"/>
			<modifier r_name="'nameModifier'" r_template="'mainModifierTemplate'" r_modifierTarget="'nameModifiers'" r_modifiedValue="$0+{enchantmentProperty}"/>
			<modifier r_name="'tooltipModifier'" r_template="'mainModifierTemplate'" r_modifierTarget="'tooltip'" r_modifiedValue="$0+' '+enchantmentTooltip"/>
		</mapTemplate>

		<mapTemplate r_name="'strengthEnchantment'" r_template="'itemEnchantmentTemplate'" enchantmentProperty="text.propertyStr" enchantmentName="text.enchantmentStrength" enchantmentTooltip="text.tooltipAdd2Strength">
			<modifier r_name="'strBonus'" r_template="'mainItemModifier'" r_modifierTarget="'Strength'" r_modifiedValue="$0+2"/>
		</mapTemplate>
		<mapTemplate r_name="'dexterityEnchantment'" r_template="'itemEnchantmentTemplate'" enchantmentProperty="text.propertyDex" enchantmentName="text.enchantmentDexterity" enchantmentTooltip="text.tooltipAdd2Dexterity">
			<modifier r_name="'dexBonus'" r_template="'mainItemModifier'" r_modifierTarget="'Dexterity'" r_modifiedValue="$0+2"/>
		</mapTemplate>
		<mapTemplate r_name="'intelligenceEnchantment'" r_template="'itemEnchantmentTemplate'" enchantmentProperty="text.propertyInt" enchantmentName="text.enchantmentIntelligence" enchantmentTooltip="text.tooltipAdd2Intelligence">
			<modifier r_name="'intBonus'" r_template="'mainItemModifier'" r_modifierTarget="'Intelligence'" r_modifiedValue="$0+2"/>
		</mapTemplate>
		<mapTemplate r_name="'constitutionEnchantment'" r_template="'itemEnchantmentTemplate'" enchantmentProperty="text.propertyCon" enchantmentName="text.enchantmentConstitution" enchantmentTooltip="text.tooltipAdd2Constitution">
			<modifier r_name="'conBonus'" r_template="'mainItemModifier'" r_modifierTarget="'Constitution'" r_modifiedValue="$0+2"/>
		</mapTemplate>
		<mapTemplate r_name="'physicalResistanceEnchantment'" r_template="'itemEnchantmentTemplate'" enchantmentProperty="text.propertyPR" enchantmentName="text.enchantmentPhysicalResistance" enchantmentTooltip="text.tooltipAdd2PhysicalResistance">
			<modifier r_name="'PRBonus'" r_template="'mainItemModifier'" r_modifierTarget="'PhysicalResistance'" r_modifiedValue="$0+2"/>
		</mapTemplate>
		<mapTemplate r_name="'mentalResistanceEnchantment'" r_template="'itemEnchantmentTemplate'" enchantmentProperty="text.propertyMR" enchantmentName="text.enchantmentMentalResistance" enchantmentTooltip="text.tooltipAdd2MentalResistance">
			<modifier r_name="'MRBonus'" r_template="'mainItemModifier'" r_modifierTarget="'MentalResistance'" r_modifiedValue="$0+2"/>
		</mapTemplate>
		<mapTemplate r_name="'resistanceEnchantment'" r_template="'itemEnchantmentTemplate'" enchantmentProperty="text.propertyRes" enchantmentName="text.enchantmentResistance" enchantmentTooltip="text.tooltipAdd2Resistance">
			<modifier r_name="'resBonus'" r_template="'mainItemModifier'" r_modifierTarget="'Resistance'" r_modifiedValue="$0+2"/>
		</mapTemplate>
		<mapTemplate r_name="'protectionEnchantment'" r_template="'itemEnchantmentTemplate'" enchantmentProperty="text.propertyProt" enchantmentName="text.enchantmentProtection" enchantmentTooltip="text.tooltipAdd2Armor">
			<modifier r_name="'protBonus'" r_template="'mainItemModifier'" r_modifierTarget="'ItemTotalArmor'" r_modifiedValue="$0+2"/>
		</mapTemplate>
		<mapTemplate r_name="'defensiveEnchantment'" r_template="'itemEnchantmentTemplate'" enchantmentProperty="text.propertyDef" enchantmentName="text.enchantmentDefense" enchantmentTooltip="text.tooltipAdd2Defense">
			<modifier r_name="'defBonus'" r_template="'mainItemModifier'" r_modifierTarget="'customCloseCombatDefenseBonus'" r_modifiedValue="$0+2"/>
		</mapTemplate>
		<mapTemplate r_name="'quicknessEnchantment'" r_template="'itemEnchantmentTemplate'" enchantmentProperty="text.propertyQui" enchantmentName="text.enchantmentQuickness" enchantmentTooltip="text.tooltipIncreaseCombatSpeed">
			<modifier r_name="'quiBonus'" r_template="'mainItemModifier'" r_modifierTarget="'actionTimeCostMultiplier'" r_modifiedValue="$0*0.9"/>
		</mapTemplate>
		<mapTemplate r_name="'runEnchantment'" r_template="'itemEnchantmentTemplate'" enchantmentProperty="text.propertyRun" enchantmentName="text.enchantmentRun" enchantmentTooltip="text.tooltipIncreaseMoveSpeed">
			<modifier r_name="'runBonus'" r_template="'mainItemModifier'" r_modifierTarget="'moveTimeCostMultiplier'" r_modifiedValue="$0*0.9"/>
		</mapTemplate>
		<mapTemplate r_name="'accuracyEnchantment'" r_template="'itemEnchantmentTemplate'" enchantmentProperty="text.propertyAccuracy" enchantmentName="text.enchantmentAccuracy" enchantmentTooltip="text.tooltipIncreaseAccuracy">
			<modifier r_name="'customCloseCombatHitBonus'" r_template="'mainItemModifier'" r_modifierTarget="'customCloseCombatHitBonus'" r_modifiedValue="$0+2"/>
			<modifier r_name="'customRangedHitBonus'" r_template="'mainItemModifier'" r_modifierTarget="'customRangedHitBonus'" r_modifiedValue="$0+2"/>
		</mapTemplate>
	</maps>
</data>