From e04d55561fe8c6df730eb9e1c3183ee14c08eba1 Mon Sep 17 00:00:00 2001 From: raymoo Date: Sat, 23 Jan 2016 15:22:05 -0800 Subject: [PATCH] More debug effectness --- test_effects.lua | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/test_effects.lua b/test_effects.lua index 44f14b1..10ecc96 100644 --- a/test_effects.lua +++ b/test_effects.lua @@ -30,11 +30,23 @@ monoidal_effects.register_type("monoidal_effects:half_speed", values = { ["monoidal_effects:speed"] = 0.5 }, }) +monoidal_effects.register_type("monoidal_effects:three_speed", + { disp_name = "3x Speed", + tags = {test = true}, + monoids = {["monoidal_effects:speed"] = true}, + cancel_on_death = true, + values = { ["monoidal_effects:speed"] = 3 }, +}) minetest.register_on_joinplayer(function(player) monoidal_effects.apply_effect("monoidal_effects:half_speed", - 10, + 4, + player:get_player_name() + ) + + monoidal_effects.apply_effect("monoidal_effects:three_speed", + 2, player:get_player_name() ) end)