Is it possible to superload the data/quests files?
Ex. The brotherhood-of-alchemists.lua file defines competition function as:
Code: Select all
competition = function(self, player, other_alchemist_nums)
...
end
Following the wiki doesn't seem to work
(placed in superload/data/quests/brotherhood-of-alchemists.lua)
Code: Select all
local _M = loadPrevious(...)
local base_competition = _M.competition
function _M:competition(player, other_alchemist_nums)
...
end
return _M
Code: Select all
_M.competition = function(self, player, other_alchemist_nums)
Code: Select all
competition = function(self, player, other_alchemist_nums)
I looked at the base functions of other superloaded mods but the functions are all declared like
Code: Select all
function _M:onQuit()