Aaron Suen dfa8615200 Revert "Remove descritption from injury/burn."
This reverts commit 4a13733e68903904e088fe21d86dec6d927ee7d8.

While I'm still not happy with the desciptions, we probably need
some sensible way to talk about these in chat, wikis, etc.
2020-03-25 08:58:31 -04:00

20 lines
533 B
Lua

-- LUALOCALS < ---------------------------------------------------------
local minetest, nodecore
= minetest, nodecore
-- LUALOCALS > ---------------------------------------------------------
local modname = minetest.get_current_modname()
local injured = modname .. ":injured"
nodecore.register_virtual_item(injured, {
description = "Injury",
inventory_image = modname .. "_injured.png"
})
nodecore.register_healthfx({
item = injured,
getqty = function(player)
return 1 - nodecore.getphealth(player) / 8
end
})