From 98c63c83bde46213586d3585136918cb61ab1941 Mon Sep 17 00:00:00 2001 From: Sokomine Date: Sun, 19 Jun 2022 21:29:01 +0200 Subject: [PATCH] staff-based editing can now be enabled/disabled --- config.lua | 4 ++++ init.lua | 8 ++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/config.lua b/config.lua index 5a6bd10..09da124 100644 --- a/config.lua +++ b/config.lua @@ -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? diff --git a/init.lua b/init.lua index 044e269..381af94 100644 --- a/init.lua +++ b/init.lua @@ -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")