From a8ee6c042ce5dd1d43fe59cde9028b93dc42f1a1 Mon Sep 17 00:00:00 2001 From: kittenchilly Date: Mon, 5 May 2025 13:33:06 -0500 Subject: [PATCH] Fix RGON donation machine achievement display if at exactly 999 coins (#843) * Fix RGON donation machine achievement display if at exactly 999 coins * Update eid_repentogon.lua --- features/eid_repentogon.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/features/eid_repentogon.lua b/features/eid_repentogon.lua index 16e8f0c2..6a46203c 100644 --- a/features/eid_repentogon.lua +++ b/features/eid_repentogon.lua @@ -133,9 +133,10 @@ function EID:hasDescription(entity) local isGreed = entity.Variant == 11 local eventCounter = isGreed and EventCounter.GREED_DONATION_MACHINE_COUNTER or EventCounter.DONATION_MACHINE_COUNTER + local maxDonations = isGreed and 1000 or 999 local totalDonations = Isaac.GetPersistentGameData():GetEventCounter(eventCounter) - return EID.Config["RGON_DonationMachineDescriptions"] and totalDonations < 1000 + return EID.Config["RGON_DonationMachineDescriptions"] and totalDonations < maxDonations end return oldReturnVal end @@ -164,7 +165,7 @@ local requirementsGreedDonationMachine = { { 439, Achievement.EVE_HOLDS_RAZOR_BLADE }, { 500, Achievement.GREEDIER }, { 666, Achievement.STORE_KEY }, - { 879, Achievement.THE_LOST_HOLDS_HOLY_MANTLE }, + { 879, Achievement.LOST_HOLDS_HOLY_MANTLE }, { 999, Achievement.GENEROSITY }, { 1000, Achievement.KEEPER } }