coil
2019-12-30 da95be53ec5703e808233d7b45fc42fb500863dd
Fix radiation protection when armor group is not set (#509)

The radiation damage group can be not set when armor completely
protects against radiation or when no mod has set a default value
for the damage group. We want to apply radiation damage in the
second case but not in the first.
1 files modified
2 ■■■■■ changed files
technic/radiation.lua 2 ●●●●● patch | view | raw | blame | history
technic/radiation.lua
@@ -294,6 +294,8 @@
    end
    if ag.radiation then
        return 0.01 * ag.radiation
    elseif armor_enabled then
        return 0
    end
    if ag.fleshy then
        return math.sqrt(0.01 * ag.fleshy)