2020-07-07 00:46:36 +02:00
|
|
|
|
--[[
|
|
|
|
|
Fate of the Gods - Adds roleplay mechanics.
|
|
|
|
|
Copyright © 2020 Hamlet and contributors.
|
|
|
|
|
|
|
|
|
|
Licensed under the EUPL, Version 1.2 or – as soon they will be
|
|
|
|
|
approved by the European Commission – subsequent versions of the
|
|
|
|
|
EUPL (the "Licence");
|
|
|
|
|
You may not use this work except in compliance with the Licence.
|
|
|
|
|
You may obtain a copy of the Licence at:
|
|
|
|
|
|
|
|
|
|
https://joinup.ec.europa.eu/software/page/eupl
|
|
|
|
|
https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:32017D0863
|
|
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
|
|
|
software distributed under the Licence is distributed on an
|
|
|
|
|
"AS IS" basis,
|
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
|
|
|
implied.
|
|
|
|
|
See the Licence for the specific language governing permissions
|
|
|
|
|
and limitations under the Licence.
|
|
|
|
|
|
|
|
|
|
--]]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Global mod's namespace
|
|
|
|
|
fog = {}
|
|
|
|
|
|
2020-07-31 20:29:35 +02:00
|
|
|
|
-- Mod's database
|
|
|
|
|
fog.t_MOD_STORAGE = minetest.get_mod_storage()
|
2020-07-07 00:46:36 +02:00
|
|
|
|
|
|
|
|
|
-- Used for localization
|
|
|
|
|
fog.l10n = minetest.get_translator('fog')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
--
|
2020-07-31 20:29:35 +02:00
|
|
|
|
-- Procedures
|
2020-07-07 00:46:36 +02:00
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
-- Minetest logger
|
|
|
|
|
local pr_LogMessage = function()
|
|
|
|
|
|
|
|
|
|
-- Constant
|
|
|
|
|
local s_LOG_LEVEL = minetest.settings:get('debug_log_level')
|
|
|
|
|
|
|
|
|
|
-- Body
|
|
|
|
|
if (s_LOG_LEVEL == nil)
|
|
|
|
|
or (s_LOG_LEVEL == 'action')
|
|
|
|
|
or (s_LOG_LEVEL == 'info')
|
|
|
|
|
or (s_LOG_LEVEL == 'verbose')
|
|
|
|
|
then
|
2020-07-31 20:29:35 +02:00
|
|
|
|
minetest.log('action', '[Mod] Fate of The Gods [v0.1.0] loaded.')
|
2020-07-07 00:46:36 +02:00
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Subfiles loader
|
|
|
|
|
local pr_LoadSubFiles = function()
|
|
|
|
|
|
|
|
|
|
-- Constant
|
|
|
|
|
local s_MOD_PATH = minetest.get_modpath('fog')
|
|
|
|
|
|
|
|
|
|
-- Body
|
2020-07-31 20:29:35 +02:00
|
|
|
|
dofile(s_MOD_PATH .. '/core/settings.lua')
|
2020-07-07 00:46:36 +02:00
|
|
|
|
dofile(s_MOD_PATH .. '/core/functions.lua')
|
|
|
|
|
dofile(s_MOD_PATH .. '/core/procedures.lua')
|
2020-07-31 20:29:35 +02:00
|
|
|
|
dofile(s_MOD_PATH .. '/core/formspec.lua')
|
|
|
|
|
dofile(s_MOD_PATH .. '/core/overriders_axes.lua')
|
|
|
|
|
dofile(s_MOD_PATH .. '/core/overriders_picks.lua')
|
|
|
|
|
dofile(s_MOD_PATH .. '/core/overriders_shovels.lua')
|
|
|
|
|
dofile(s_MOD_PATH .. '/core/overriders_swords.lua')
|
2020-07-07 00:46:36 +02:00
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Main body
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
pr_LoadSubFiles()
|
|
|
|
|
pr_LogMessage()
|