From 43acec290067f9aca534647d46ba1f13cfeb377a Mon Sep 17 00:00:00 2001 From: TechDudie <73961295+TechDudie@users.noreply.github.com> Date: Tue, 09 Feb 2021 19:03:55 +0100 Subject: [PATCH] Add Rubber Goo as replacement for the grinder (#578) --- technic/radiation.lua | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/technic/radiation.lua b/technic/radiation.lua index f0d7f61..4f511ab 100644 --- a/technic/radiation.lua +++ b/technic/radiation.lua @@ -244,7 +244,6 @@ need to be considered. --]] local abdomen_offset = 1 -local cache_scaled_shielding = {} local rad_dmg_cutoff = 0.2 local radiated_players = {} @@ -294,6 +293,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) @@ -309,7 +310,7 @@ end local function dmg_object(pos, object, strength) - local obj_pos = vector.add(object:getpos(), calculate_object_center(object)) + local obj_pos = vector.add(object:get_pos(), calculate_object_center(object)) local mul if armor_enabled or entity_damage then -- we need to check may the object be damaged even if armor is disabled @@ -513,4 +514,3 @@ end, }) end - -- Gitblit v1.8.0