move some local values

This commit is contained in:
Li0n 2022-02-25 23:46:39 +01:00
parent 2709bd0041
commit 3b409de2fa
1 changed files with 4 additions and 6 deletions

View File

@ -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,
})