Sanguine Bond update

This commit is contained in:
Buurazu authored and GitHub committed 2022-11-10 22:14:40 -05:00
1 parent fc066fe8fb
commit 4866b19e1e
1 file changed
+8 -4
+8 -4
View File
@@ -742,10 +742,7 @@ if REPENTANCE then
EID:AddCallback(ModCallbacks.MC_POST_NEW_ROOM, EID.onNewRoomRep) EID:AddCallback(ModCallbacks.MC_POST_NEW_ROOM, EID.onNewRoomRep)
end end
-- On new room, save the status of any variables that need to be rewound upon Glowing Hourglass usage function EID:CheckCurrentRoomGridEntities()
function EID:onNewRoom()
EID.RecentlyTouchedItems = {}
EID.CurrentRoomGridEntities = {} EID.CurrentRoomGridEntities = {}
local room = game:GetRoom() local room = game:GetRoom()
for i = 1, room:GetGridSize(), 1 do for i = 1, room:GetGridSize(), 1 do
@@ -755,6 +752,13 @@ function EID:onNewRoom()
end end
end end
end end
-- On new room, save the status of any variables that need to be rewound upon Glowing Hourglass usage
function EID:onNewRoom()
EID.RecentlyTouchedItems = {}
EID:CheckCurrentRoomGridEntities()
end
EID:AddCallback(ModCallbacks.MC_POST_NEW_ROOM, EID.onNewRoom) EID:AddCallback(ModCallbacks.MC_POST_NEW_ROOM, EID.onNewRoom)
--------------------------------------------------------------------------- ---------------------------------------------------------------------------
---------------------------Handle Rendering-------------------------------- ---------------------------Handle Rendering--------------------------------