Use status effects for elixirs and cold demon slow.

This commit is contained in:
Duane 2016-06-30 18:48:51 -05:00
parent b486af8627
commit e9ae30dfc9
4 changed files with 37 additions and 16 deletions

View file

@ -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 = {