mirror of
https://github.com/minetest-mods/technic.git
synced 2024-12-22 13:52:31 +01:00
Restored weak shielding
This commit is contained in:
parent
1810f417d2
commit
51be33deea
@ -264,7 +264,7 @@ local function calculate_base_damage(node_pos, object_pos, strength)
|
|||||||
for ray_pos in technic.trace_node_ray(node_pos,
|
for ray_pos in technic.trace_node_ray(node_pos,
|
||||||
vector.direction(node_pos, object_pos), dist) do
|
vector.direction(node_pos, object_pos), dist) do
|
||||||
local shield_name = minetest.get_node(ray_pos).name
|
local shield_name = minetest.get_node(ray_pos).name
|
||||||
shielding = shielding + node_radiation_resistance(shield_name) * 0.1
|
shielding = shielding + node_radiation_resistance(shield_name) * 0.025
|
||||||
end
|
end
|
||||||
|
|
||||||
local dmg = (strength * strength) /
|
local dmg = (strength * strength) /
|
||||||
|
Loading…
Reference in New Issue
Block a user