Better name for GameExit callback function
This commit is contained in:
1 parent
0a487f9646
commit
c733b49e57
1 file changed
+2
-2
@@ -1703,7 +1703,7 @@ end
|
||||
EID:AddCallback(ModCallbacks.MC_POST_GAME_STARTED, EID.OnGameStart)
|
||||
|
||||
--Saving Moddata--
|
||||
function EID:SaveTheGame()
|
||||
function EID:OnGameExit()
|
||||
if REPENTANCE then
|
||||
EID.Config["BagContent"] = EID.BoC.BagItems or {}
|
||||
EID.Config["BagFloorContent"] = EID.BoC.RoomQueries or {}
|
||||
@@ -1730,7 +1730,7 @@ function EID:SaveTheGame()
|
||||
EID.itemUnlockStates[CollectibleType.COLLECTIBLE_CUBE_OF_MEAT] = nil
|
||||
EID.itemUnlockStates[CollectibleType.COLLECTIBLE_BOOK_OF_REVELATIONS or CollectibleType.COLLECTIBLE_BOOK_REVELATIONS] = nil
|
||||
end
|
||||
EID:AddCallback(ModCallbacks.MC_PRE_GAME_EXIT, EID.SaveTheGame)
|
||||
EID:AddCallback(ModCallbacks.MC_PRE_GAME_EXIT, EID.OnGameExit)
|
||||
|
||||
if EID.enableDebug then
|
||||
require("eid_debugging")
|
||||
|
||||
Reference in new issue
Block a user