Use status effects for elixirs and cold demon slow.
This commit is contained in:
parent
b486af8627
commit
e9ae30dfc9
4 changed files with 37 additions and 16 deletions
|
@ -54,10 +54,7 @@ local function armor(user, factor)
|
|||
armor.fleshy = math.min(100, math.max(1, math.ceil(armor.fleshy * factor)))
|
||||
user:set_armor_groups(armor)
|
||||
minetest.chat_send_player(player_name, 'Your skin feels harder...')
|
||||
fun_caves.db.status[player_name].armor_elixir = {
|
||||
remove = minetest.get_gametime() + elixir_duration,
|
||||
factor = factor,
|
||||
}
|
||||
fun_caves.set_status(player_name, 'armor_elixir', elixir_duration, {factor = factor})
|
||||
end
|
||||
|
||||
local descs = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue