边缘世界 RimWorld

边缘世界 RimWorld

Gas Traps And Shells
Ace "Mania" Red 2022 年 5 月 21 日 下午 3:46
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!
< >
正在显示第 1 - 3 条,共 3 条留言
(04) PalverZ  [开发者] 2022 年 5 月 21 日 下午 10:50 
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  [开发者] 2022 年 5 月 21 日 下午 10:54 
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 2022 年 5 月 22 日 上午 5:26 
引用自 (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!
< >
正在显示第 1 - 3 条,共 3 条留言
每页显示数: 1530 50