Rimworld modding apply burn damage?

Started by VladimirAli, August 09, 2021, 05:50:12 AM

Previous topic - Next topic

VladimirAli

Hello, I am new to modding in Rimworld and I would like to apply burn damage to an attack. When I input burn or flame into the <capacities> </capacities>, I would get no results. How would I go about scripting this? Is there a specific verb for flame damage? I'm aware that there is for toxic damage.

Valor

In weapon def, made the flame bold.

<tools>
      <li>
        <label>handle</label>
        <capacities>
          <li>Blunt</li>
        </capacities>
        <power>12</power>
        <cooldownTime>2</cooldownTime>
      </li>
      <li>
        <label>point</label>
        <capacities>
          <li>Stab</li>
        </capacities>
        <power>21</power>
        <cooldownTime>2.6</cooldownTime>
        <extraMeleeDamages>
          <li>
            <def>Flame</def>
            <amount>10</amount>
            <chance>0.5</chance>
          </li>
        </extraMeleeDamages>
      </li>
      <li>
        <label>edge</label>
        <capacities>
          <li>Cut</li>
        </capacities>
        <power>21</power>
        <cooldownTime>2.6</cooldownTime>
        <extraMeleeDamages>
          <li>
            <def>Flame</def>
            <amount>10</amount>
            <chance>0.5</chance>
          </li>
        </extraMeleeDamages>
      </li>
    </tools>