Add strength elixirs.

This commit is contained in:
Duane 2016-07-13 05:31:54 -05:00
parent dd81a5777a
commit b6e66def05
10 changed files with 98 additions and 11 deletions

View file

@ -148,6 +148,18 @@ function fun_caves.set_status(player_name, status, time, param)
end
end
function fun_caves.remove_status(player_name, status)
local player = minetest.get_player_by_name(player_name)
local def = fun_caves.registered_status[status]
if player and def then
if def.terminate then
fun_caves.db.status[player_name][status] = def.terminate(player)
else
fun_caves.db.status[player_name][status] = nil
end
end
end
--dofile(fun_caves.path .. "/recipe_list.lua")