move some local values
This commit is contained in:
parent
2709bd0041
commit
3b409de2fa
10
init.lua
10
init.lua
|
@ -12,9 +12,9 @@ local rumble_duration_max_standard = 5
|
||||||
-- move python program to a different directory
|
-- move python program to a different directory
|
||||||
-- chat mode: trigger from specific words written by either yourself (humiliation) or others (degradation)
|
-- chat mode: trigger from specific words written by either yourself (humiliation) or others (degradation)
|
||||||
|
|
||||||
local rumble_strength_max
|
local rumble_strength_max = rumble_strength_max_standard
|
||||||
local rumble_duration_max
|
local rumble_duration_max = rumble_duration_max_standard
|
||||||
local log
|
local log = log_and_chat
|
||||||
|
|
||||||
local log_only = function(text)
|
local log_only = function(text)
|
||||||
minetest.log("action", text)
|
minetest.log("action", text)
|
||||||
|
@ -31,9 +31,6 @@ end
|
||||||
-- step 1 (start)
|
-- step 1 (start)
|
||||||
minetest.register_on_mods_loaded(function()
|
minetest.register_on_mods_loaded(function()
|
||||||
minetest.display_chat_message("rumble mod loaded. May the rumble be with you!")
|
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)
|
end)
|
||||||
|
|
||||||
-- step 2 (take damage)
|
-- step 2 (take damage)
|
||||||
|
@ -83,6 +80,7 @@ minetest.register_chatcommand("settings", {
|
||||||
func = function()
|
func = function()
|
||||||
minetest.display_chat_message("max rumble strength: "..rumble_strength_max)
|
minetest.display_chat_message("max rumble strength: "..rumble_strength_max)
|
||||||
minetest.display_chat_message("max rumble duration: "..rumble_duration_max)
|
minetest.display_chat_message("max rumble duration: "..rumble_duration_max)
|
||||||
|
minetest.display_chat_message("current chat and log mode: "..tostring(log))
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue