further cleanup for YL

This commit is contained in:
Sokomine 2023-07-08 20:52:01 +02:00
parent 0cb49e5289
commit 0a7a06e050
2 changed files with 7 additions and 4 deletions

View File

@ -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()

View File

@ -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