Make "local dmf =" the top line of every file

This commit is contained in:
Aussiemon 2023-01-18 11:21:45 -07:00
parent ef17beee8b
commit 178aa48f80
6 changed files with 11 additions and 6 deletions

View file

@ -1,7 +1,8 @@
local dmf = get_mod("DMF")
--[[ --[[
Notify players of enabled mutators via chat and tab menu Notify players of enabled mutators via chat and tab menu
--]] --]]
local dmf = get_mod("DMF")
-- ##################################################################################################################### -- #####################################################################################################################
-- ##### Local functions ############################################################################################### -- ##### Local functions ###############################################################################################

View file

@ -1,7 +1,8 @@
local dmf = get_mod("DMF")
--[[ --[[
Manages everything related to mutators: loading order, enabling/disabling process, giving extra rewards etc. Manages everything related to mutators: loading order, enabling/disabling process, giving extra rewards etc.
--]] --]]
local dmf = get_mod("DMF")
-- Global backup of original print() method -- Global backup of original print() method
local print = __print local print = __print

View file

@ -1,7 +1,8 @@
local dmf = get_mod("DMF")
--[[ --[[
Add additional reward to end game results Add additional reward to end game results
--]] --]]
local dmf = get_mod("DMF")
-- Amounts of additional rewards to be added at level completion -- Amounts of additional rewards to be added at level completion
local _num_reward = { local _num_reward = {

View file

@ -1,3 +1,5 @@
local dmf = get_mod("DMF")
--[[ --[[
Settings manager. Settings manager.
* Operates settings within the mod namespace (you can define settings with the same name for different mods) * Operates settings within the mod namespace (you can define settings with the same name for different mods)
@ -5,7 +7,6 @@
* All settings are saved to the settings-file when game state changes, when options menu is closed, and on reload * All settings are saved to the settings-file when game state changes, when options menu is closed, and on reload
* Serializable settings types: number, string, boolean, table (array-like and map-like, but not mixed) * Serializable settings types: number, string, boolean, table (array-like and map-like, but not mixed)
--]] --]]
local dmf = get_mod("DMF")
local _mods_settings = Application.user_setting("mods_settings") or {} local _mods_settings = Application.user_setting("mods_settings") or {}

View file

@ -1,4 +1,4 @@
local dmf = get_mod("DMF") -- @TODO: remove it? local dmf = get_mod("DMF")
-- Local backup of the io library -- Local backup of the io library
local _io = dmf:persistent_table("_io") local _io = dmf:persistent_table("_io")

View file

@ -1,9 +1,10 @@
local dmf = get_mod("DMF")
--[[ --[[
* chat commands * chat commands
* chat history * chat history
* ctrl + c, ctrl + v * ctrl + c, ctrl + v
]] ]]
local dmf = get_mod("DMF")
local _chat_opened = false local _chat_opened = false