Immortal entities support

This commit is contained in:
number Zero 2016-04-10 21:48:04 +03:00 committed by ShadowNinja
parent b739ed6cb1
commit 73afc40d9c
1 changed files with 3 additions and 0 deletions

View File

@ -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