From fc0c4e3b6bf0608d4fdeae272177819f5088ce24 Mon Sep 17 00:00:00 2001 From: Wofsauge Date: Mon, 29 Sep 2025 21:59:27 +0200 Subject: [PATCH] Repentogon: Fixed error caused by Necronomicon transformation not existing --- features/eid_repentogon.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/features/eid_repentogon.lua b/features/eid_repentogon.lua index 25501139..3b98c5bc 100644 --- a/features/eid_repentogon.lua +++ b/features/eid_repentogon.lua @@ -1,6 +1,20 @@ if not REPENTOGON then return end + +-- Backwards compatibility for Repentogon on older isaac versions-- + +-- Remove Necromancer transformation, as it doesnt exist in Version 1.9.7.12 +-- The following removes the data from EID, to prevent errors +EID.TransformationData[tostring(EID.TRANSFORMATION.NECROMANCER)] = nil +EID.TRANSFORMATION["NECROMANCER"] = nil +-- remove Necromancer transformations from items that grant them +EID.EntityTransformations["5.100.35"] = "12" -- The Necronomicon: Bookworm, Necromancer +EID.EntityTransformations["5.100.262"] = nil -- Missing Page 2: Necromancer +EID.EntityTransformations["5.350.48"] = nil -- A Missing Page: Necromancer + + + ---@diagnostic disable: duplicate-set-field local game = Game() local maxVanillaItemID = CollectibleType.NUM_COLLECTIBLES -- sanity backup