Resolves change requests

This commit is contained in:
SweetSea-ButImNotSweet
2024-01-08 11:33:01 +07:00
parent dc8488ff61
commit 536174220d
6 changed files with 57 additions and 82 deletions

View File

@@ -203,15 +203,15 @@ local function _executeMod(P)
if GAME.mod[i]>0 then
local M=MODOPT[i]
if applyStatus=='always' then
if M.funcA1 then
M.funcA1(P,M.list and M.list[GAME.mod[i]])
elseif M.funcA then
table.insert(GAME.modCodeList[P.id],function() M.func(P,M.list and M.list[GAME.mod[i]]) end)
if M.funcOnce then
M.funcOnce(P,M.list and M.list[GAME.mod[i]])
elseif M.funcRepe then
table.insert(GAME.modCodeList[P.id],function() M.funcInit(P,M.list and M.list[GAME.mod[i]]) end)
else
M.func(P,M.list and M.list[GAME.mod[i]])
M.funcInit(P,M.list and M.list[GAME.mod[i]])
end
else -- Already checked pre or post before calling _executeMod()
M.func(P,M.list and M.list[GAME.mod[i]])
M.funcInit(P,M.list and M.list[GAME.mod[i]])
end
end
end