mirror of
https://github.com/minetest-mods/technic.git
synced 2025-11-05 18:05:31 +01:00
Immortal entities support
This commit is contained in:
@@ -282,6 +282,9 @@ local function calculate_damage_multiplier(object)
|
|||||||
if not ag then
|
if not ag then
|
||||||
return 0
|
return 0
|
||||||
end
|
end
|
||||||
|
if ag.immortal then
|
||||||
|
return 0
|
||||||
|
end
|
||||||
if ag.radiation then
|
if ag.radiation then
|
||||||
return 0.01 * ag.radiation
|
return 0.01 * ag.radiation
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user