From 958e1d402d6ac88e2322922348f2dc2d7581372b Mon Sep 17 00:00:00 2001 From: number Zero Date: Sun, 10 Apr 2016 21:48:04 +0300 Subject: [PATCH] Immortal entities support --- technic/radiation.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/technic/radiation.lua b/technic/radiation.lua index ce3cb80..bbe1eec 100644 --- a/technic/radiation.lua +++ b/technic/radiation.lua @@ -282,6 +282,9 @@ local function calculate_damage_multiplier(object) if not ag then return 0 end + if ag.immortal then + return 0 + end if ag.radiation then return 0.01 * ag.radiation end