Improved Greed donation machine descriptions

This commit is contained in:
Wofsauge committed 2024-01-12 23:50:35 +01:00
1 parent ee43fe6127
commit 20538d0434
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -1198,6 +1198,6 @@ if EID.enableDebug then
end
if REPENTOGON then
EID.descriptions[languageCode].custom["6.8.0"] = {"0", "Donation Machine", "{1} of {2} coins remaining until next achievement#{{Luck}} 2% chance for +1 Luck when donating#{{AngelRoom}} Donating 10 coins increases Angel Room chance"}
EID.descriptions[languageCode].custom["6.11.0"] = {"0", "Greed Donation Machine", "{{ColorGold}}{1} of {2}{{CR}} coins remaining until next achievement"}
EID.descriptions[languageCode].custom["6.8.0"] = {"0", "Donation Machine", "Next achievement at {1} coins, {2} coins remaining#{{Luck}} 2% chance for +1 Luck when donating#{{AngelRoom}} Donating 10 coins increases Angel Room chance"}
EID.descriptions[languageCode].custom["6.11.0"] = {"0", "Greed Donation Machine", "Next achievement at {1} coins, {2} coins remaining"}
end
+2 -2
View File
@@ -133,8 +133,8 @@ local function DonationMachineCallback(descObj)
break
end
end
descObj.Description = string.gsub(descObj.Description, "{1}", coinsNeeded - totalDonations)
descObj.Description = string.gsub(descObj.Description, "{2}", coinsNeeded)
descObj.Description = string.gsub(descObj.Description, "{1}", coinsNeeded)
descObj.Description = string.gsub(descObj.Description, "{2}", coinsNeeded - totalDonations)
descObj.Icon = EID.InlineIcons["DonationMachine"]
return descObj
end