The_Great_Sephiroth
Scavenger
The xpath tutorial on the wiki is semi-limited, though it goes into all kinds of logical operator detail, I simply want to change a value. I am trying to set the basic 9mm ammo to do 1 damage to blocks, not the default of 6.
I kind of think this is the correct path, but there are to passive effects for "BlockDamage" and I have no clue how to tell it which one to use. I don't want to modify the 100 value for exploding barrels.
What am I missing here?
Code:
<item name="ammo9mmBulletBall">
<property name="Tags" value="ammo,ammo9mm"/>
<property name="DisplayType" value="ammoBullet"/>
<property name="HoldType" value="45"/>
<property name="Meshfile" value="@:Other/Items/Misc/sackPrefab.prefab"/>
<property name="DropMeshfile" value="@:Other/Items/Misc/sack_droppedPrefab.prefab"/>
<property name="Material" value="Mbrass"/>
<property name="MeltTimePerUnit" value=".4"/>
<property name="Stacknumber" value="300"/> <!-- STK ammo high -->
<property name="EconomicValue" value="9"/>
<property name="TraderStageTemplate" value="ammoTier1"/><!-- ammo9mmBulletBall -->
<property name="Group" value="Ammo/Weapons,Ammo,Ranged Weapons"/>
<property name="SoundPickup" value="bullets_grab"/>
<property name="SoundPlace" value="bullets_place"/>
<effect_group name="ammo9mmBulletBall" tiered="false">
<passive_effect name="EntityDamage" operation="base_set" value="32" />
<passive_effect name="BlockDamage" operation="base_set" value="6" />
<passive_effect name="BlockDamage" operation="base_add" value="100" tags="barrelExplosive"/>
<passive_effect name="DamageModifier" operation="perc_add" value="-.8" tags="earth"/>
<passive_effect name="DamageModifier" operation="perc_add" value="2" tags="wood"/>
</effect_group>
</item>
Code:
<set xpath="/items/item[@name='ammo9mmBulletBall']/effect_group[@name='ammo9mmBulletBall']/passive_effect[@name='BlockDamage']/@value">1</set>