diff --git a/init.lua b/init.lua index 51127ba..ef2513b 100644 --- a/init.lua +++ b/init.lua @@ -12,9 +12,9 @@ local rumble_duration_max_standard = 5 -- move python program to a different directory -- chat mode: trigger from specific words written by either yourself (humiliation) or others (degradation) -local rumble_strength_max -local rumble_duration_max -local log +local rumble_strength_max = rumble_strength_max_standard +local rumble_duration_max = rumble_duration_max_standard +local log = log_and_chat local log_only = function(text) minetest.log("action", text) @@ -31,9 +31,6 @@ end -- step 1 (start) minetest.register_on_mods_loaded(function() minetest.display_chat_message("rumble mod loaded. May the rumble be with you!") - rumble_strength_max = rumble_strength_max_standard - rumble_duration_max = rumble_duration_max_standard - log = log_and_chat end) -- step 2 (take damage) @@ -83,6 +80,7 @@ minetest.register_chatcommand("settings", { func = function() minetest.display_chat_message("max rumble strength: "..rumble_strength_max) minetest.display_chat_message("max rumble duration: "..rumble_duration_max) + minetest.display_chat_message("current chat and log mode: "..tostring(log)) end, })