mt-mods / technic

Technic mod for Minetest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

enable_entity_radiation_damage seems to be ignored when using mobs_redo

dontfwiththestream opened this issue · comments

I have a server with technic plus, mobs_redo, mobs_animals/mobs_water and i made a trap for mobs where they fall into a pit of 0.0% uranium blocks. I have not changed the defaults for this setting (enable_entity_radiation_damage), which is default to true. The entities are not being dealt damage whatsoever

Mobs using mobs_redo have the immortal armor group by default, so they are immune to radiation damage: https://github.com/minetest-mirrors/mobs_redo/blob/ce47b81da56bba7618f1ab62ede0daaca1b88ced/api.lua#L3267-L3274

local ag = object.get_armor_groups and object:get_armor_groups()
if not ag then
return 0
end
if ag.immortal then
return 0
end

Ah, thank you. It was my misunderstanding then

in context that doesnt make sense, the sea turtles in mobs_water are set to 250, not immortal

The armor = <number> only sets the value of the fleshy armor group, see the link to the code in my previous comment.