diff --git a/init.lua b/init.lua index c815c69..250ed04 100644 --- a/init.lua +++ b/init.lua @@ -38,6 +38,8 @@ yl_speak_up.fs_version = {} -- used for storing custom functions only this server may have yl_speak_up.custom_server_functions = {} +-- may store a table of registered mobs in the future; currently not really used +yl_speak_up.mob_table = {} -- Some files may or may not exist on the server - they contain adjustments -- local to the server. @@ -192,6 +194,11 @@ yl_speak_up.reload = function(modpath, log_entry) -- creating and maintaining quests dofile(modpath .. "fs_quest_gui.lua") + -- some general functions that are useful for mobs_redo + -- (react to right-click, nametag color etc.) + -- only gets loaded if mobs_redo (mobs) exists as mod + dofile(yl_speak_up.modpath .. "interface_mobs_api.lua") + -- initialize and load all registered generic dialogs yl_speak_up.load_generic_dialogs() diff --git a/yl_local_server_do_once_on_startup.lua b/yl_local_server_do_once_on_startup.lua index 9802103..ae7a0bd 100644 --- a/yl_local_server_do_once_on_startup.lua +++ b/yl_local_server_do_once_on_startup.lua @@ -5,10 +5,6 @@ -- mobs registered as yl_speak_up-mobs (based on mobs_redo) if(true) then - -- react to right-click etc. - dofile(yl_speak_up.modpath .. "interface_mobs_api.lua") -- the actual mobs, using mobs_redo dofile(yl_speak_up.modpath .. "mobs.lua") - -- may store a table of registered mobs in the future; currently not really used - yl_speak_up.mob_table = yl_speak_up.init_mob_table() or {} end