Add strength elixirs.
This commit is contained in:
parent
dd81a5777a
commit
b6e66def05
10 changed files with 98 additions and 11 deletions
12
init.lua
12
init.lua
|
@ -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")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue