RimWorld

RimWorld

Gas Traps And Shells
Editing Acid Damage
I would like to alter the acid damage so that it doesn't damage metal or just doesn't damage buildings, I thought i had found the Defs to do that but it seems i was mistaken.

If someone with more modding knowledge could point me in the right direction i would be very grateful.

Thanks in advance!
< >
Showing 1-3 of 3 comments
(04) PalverZ  [developer] May 21, 2022 @ 10:50pm 
I dont think any materials resist "Burn" damage type there is a setting I made for the damage dealing gases

<damageStructures>false</damageStructures> (default is true) if you change the gas settings it should void damaging the structures.

Also if you look at the bottom of Gas_DamageDealing.xml I actually explain all the specific variables.
(04) PalverZ  [developer] May 21, 2022 @ 10:54pm 
So if you wanted acid gas to not deal that damage type all you do is add that line in the "<gasDamageInfos> <li>" part for each damage type that is in the list, in default there is only one damage type

<gasDamageInfos>
<li>
<damageChance>1</damageChance>
<damageAmountRange>0.8~2.0</damageAmountRange>
<buildingMultiplier>.22</buildingMultiplier>
<damageDef>Burn</damageDef>
<maxHits>4</maxHits>
</li>
</gasDamageInfos>

change it to:

<gasDamageInfos>
<li>
<damageChance>1</damageChance>
<damageAmountRange>0.8~2.0</damageAmountRange>
<buildingMultiplier>.22</buildingMultiplier>
<damageDef>Burn</damageDef>
<maxHits>4</maxHits>
<damageStructures>false</damageStructures>
</li>
</gasDamageInfos>


***Also note the damage range is a little lower thats becuase I am lowering the damage of acid gas slightly
Ace "Mania" Red May 22, 2022 @ 5:26am 
Originally posted by (04) PalverZ:
So if you wanted acid gas to not deal that damage type all you do is add that line in the "<gasDamageInfos> <li>" part for each damage type that is in the list, in default there is only one damage type

<gasDamageInfos>
<li>
<damageChance>1</damageChance>
<damageAmountRange>0.8~2.0</damageAmountRange>
<buildingMultiplier>.22</buildingMultiplier>
<damageDef>Burn</damageDef>
<maxHits>4</maxHits>
</li>
</gasDamageInfos>

change it to:

<gasDamageInfos>
<li>
<damageChance>1</damageChance>
<damageAmountRange>0.8~2.0</damageAmountRange>
<buildingMultiplier>.22</buildingMultiplier>
<damageDef>Burn</damageDef>
<maxHits>4</maxHits>
<damageStructures>false</damageStructures>
</li>
</gasDamageInfos>


***Also note the damage range is a little lower thats becuase I am lowering the damage of acid gas slightly

Thank you very much for the fast response!
< >
Showing 1-3 of 3 comments
Per page: 1530 50