I have created variants of the throwing knives, axes and javelins, that I thought I gave correct modifications to but now don't seem to be working as intended. I have included the item xml and the spell xml it references here:
item:
Code: xml
- <GameItemType InternalName="EvilThrowingAxes">
- <DisplayName>Throwing Axes</DisplayName>
- <Description>A brace of throwing axes.</Description>
- <Type>Accessory</Type>
- <CanBeEquipped>1</CanBeEquipped>
- <AdditionalTrainingTurns>15</AdditionalTrainingTurns>
- <ShopValue>180</ShopValue>
- <ProductionRequirement>
- <Type>Resource</Type>
- <Attribute>Metal</Attribute>
- <Value>2</Value>
- </ProductionRequirement>
- <GameModifier>
- <ModType>Unit</ModType>
- <Attribute>UnlockCombatAbility</Attribute>
- <StrVal>ThrowingKnife</StrVal>
- <Provides>Allows the unit to throw axes at enemies within a range of 3</Provides>
- </GameModifier>
- <IsAvailableForSovereignCustomization>0</IsAvailableForSovereignCustomization>
- <RarityDisplay>Common</RarityDisplay>
- <IsUsable>0</IsUsable>
- <Prereq>
- <Type>Tech</Type>
- <Attribute>Weaponsmithing</Attribute>
- </Prereq>
- <ArtDef>ThrowingAxe_ArtDef</ArtDef>
- <GameItemTypeArtDef InternalName="Evil_ThrowingAxe_ArtDef">
- <GameItemTypeModelPack InternalName="Evil_ThrowingAxe_Default">
- <IconFile>Evil_ThrowingAxe_Icon_01.png</IconFile>
- <GameItemTypeModel>
- </GameItemTypeModel>
- </GameItemTypeModelPack>
- </GameItemTypeArtDef>
spell:
Code: xml
- <SpellDef InternalName="EvilThrowAxe">
- <DisplayName>Throwing Axe</DisplayName>
- <Description>Throw an axe at a nearby enemy.</Description>
- <IconFG>Ability_ThrowingKnife_Icon.png</IconFG>
- <IconColor>32,45,243</IconColor>
- <Cooldown>3</Cooldown>
- <SpellType>Tactical</SpellType>
- <SpellClass>Offensive</SpellClass>
- <SpellSubClass>Damage</SpellSubClass>
- <SpellTargetType>EnemyUnit</SpellTargetType>
- <HideInHiergamenon>1</HideInHiergamenon>
- <IsCastable>0</IsCastable>
- <IsSpecialAbility>1</IsSpecialAbility>
- <Range>3</Range>
- <GameModifier>
- <ModType>Unit</ModType>
- <Attribute>DefendableDamage</Attribute>
- <AttackStat>UnitStat_Attack_Pierce</AttackStat>
- <Calculate InternalName="Calc" ValueOwner="CastingUnit">
- <Expression><![CDATA[[UnitStat_Strength] - 5]]></Expression>
- </Calculate>
- <Calculate InternalName="Calc2">
- <Expression><![CDATA[[Calc] / 2]]></Expression>
- </Calculate>
- <Calculate InternalName="Value">
- <Expression><![CDATA[[Calc2] + 6]]></Expression>
- </Calculate>
- </GameModifier>
- <AIData AIPersonality="AI_General">
- <AIPriority>10</AIPriority>
- </AIData>
- <HitSoundFX>Launch_SingleArrow2</HitSoundFX>
- <SpellCastEffectName>Arrow</SpellCastEffectName>
- <SpellCastEffectScale>0.55</SpellCastEffectScale>
- <SpellCastProjectile>1</SpellCastProjectile>
- <SpellCastProjectileSpeed>1000</SpellCastProjectileSpeed>
- </SpellDef>
-
I have modified the knives to have a distance of 4, cooldown 2, (no damage change)... axes 3/3, javelins 2/3 (with damage changes for both)
All 3 items have a range of 4 in the game and I cannot tell if they are doing any more damage than a knife.
The only thing I can think of is that <StrVal>ThrowingKnife</StrVal> in the item xml. What is this referencing? The English.str file? Or something else?