diff --git a/init.lua b/init.lua index 5d37805..a736e3a 100644 --- a/init.lua +++ b/init.lua @@ -80,11 +80,13 @@ function wine.add_eatable(item, hp) if def then local grps = def.groups or {} + local txt = " (" ; if hp > 0 then txt = txt .. "+" end + txt = txt .. hp .. " HP)" grps.eatable = hp ; grps.flammable = 2 if mod_tt_base == nil then - def.description = def.description .. " (♥" .. hp .. ")" + def.description = def.description .. txt end minetest.override_item(item, {description = def.description, groups = grps})