• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Damage bonus by material?

ubai

New member
Hello,

I am trying to figure out how to use the new format for damage bonuses against specific material. In items.xml the dogs have the following line:

Code:
<passive_effect name="DamageModifier" operation="perc_add" value="2" tags="earth" match_all_tags="true"/>
And I assume this is how you do it, but I can't find the other tags. I looked in blocks.xml, but I couldn't figure it out. Can anyone enlighten me?

Thanks,

Matt

 
In the materials.xml you can find the following in a bunch of different block types

<property name="damage_category" value="earth" />

<property name="surface_category" value="earth" />

I would imagine those tags add damage bonuses (or penalties) to the matching values there.

 
Back
Top