curCounter can be loaded from descObj.ObjSubType

This commit is contained in:
Buurazu authored and GitHub committed 2022-03-23 21:50:14 -04:00
1 parent 85c8d431c7
commit 860954a8f9
1 file changed
+1 -2
+1 -2
View File
@@ -207,8 +207,7 @@ end
-- Handle Sacrifice room payout
local function SacrificeRoomCallback(descObj)
local curRoomIndex = game:GetLevel():GetCurrentRoomIndex()
local curCounter = EID.sacrificeCounter[curRoomIndex] or 1
local curCounter = descObj.ObjSubType or 1
descObj.Name = descObj.Name.." ("..curCounter.."/12)"
if curCounter <= 2 then
if game:GetLevel():GetAbsoluteStage() > 1 then