staff-based editing can now be enabled/disabled

This commit is contained in:
Sokomine 2022-06-19 21:29:01 +02:00
parent 6be2883b6a
commit 98c63c83bd
2 changed files with 10 additions and 2 deletions

View File

@ -9,6 +9,10 @@
--
-- So please use a seperate config mod!
-- enable/disable the original staff-based editing
-- Note: The staffs can only edit part of what the NPC can do. They can even break the NPC.
-- Set this only if you need to force-mute an NPC or something like that.
yl_speak_up.enable_staff_based_editing = true
-- Do the NPCs talk right after they spawned?

View File

@ -97,7 +97,9 @@ dofile(modpath .. "fs_manage_variables.lua")
-- handle variables for quests for player-owned NPC
dofile(modpath .. "quest_api.lua")
-- editing the npc with the staff:
dofile(modpath .. "staff_based_editing.lua")
if(yl_speak_up.enable_staff_based_editing) then
dofile(modpath .. "staff_based_editing.lua")
end
-- setting skin, wielded item etc.
dofile(modpath .. "fs_fashion.lua")
-- properties for NPC without specific dialogs that want to make use of
@ -108,7 +110,9 @@ dofile(modpath .. "functions.lua")
-- a way of determining a node position
dofile(modpath .. "register_node_punch.lua")
-- the staffs (requires npc_master priv)
dofile(modpath .. "tools.lua")
if(yl_speak_up.enable_staff_based_editing) then
dofile(modpath .. "tools.lua")
end
-- the actual mobs, using mobs_redo
dofile(modpath .. "mobs.lua")
--dofile(modpath .. "debug.lua")