Description tweaks

This commit is contained in:
kittenchilly committed 2022-04-27 13:33:48 -05:00
1 parent dc078000ab
commit 2b6d5712be
3 files changed
+70 -66

No files matched your search

+14 -11
View File
@@ -1229,17 +1229,20 @@ function EID:AreAchievementsAllowed()
return true
end
function EID:IsDeathCertificateRoom()
local level = game:GetLevel()
local roomData = level:GetCurrentRoomDesc().Data
if roomData then
if roomData.StageID == 35 then -- Home ID
if roomData.SubType == 33 or roomData.SubType == 34 then -- Death Certificate room subtypes
return true
end
end
end
return false
-- Returns the dimension ID the player is currently in.
-- 0: Normal Dimension
-- 1: Secondary dimension, used by Downpour mirror dimension and Mines escape sequence
-- 2: Death Certificate dimension
function EID:GetDimension(level)
local roomIndex = level:GetCurrentRoomIndex()
for i = 0, 2 do
if GetPtrHash(level:GetRoomByIdx(roomIndex, i)) == GetPtrHash(level:GetRoomByIdx(roomIndex, -1)) then
return i
end
end
return nil
end
-- Converts a given table into a string containing the crafting icons of the table