Added EID:ReplaceVariableStr() to make text variable replacements easier

This commit is contained in:
Wofsauge committed 2024-06-03 22:57:38 +02:00
1 parent 2fda4452c5
commit 76a3b18179
5 files changed
+19 -13

No files matched your search

+2 -2
View File
@@ -184,8 +184,8 @@ local function DonationMachineCallback(descObj)
end
end
descObj.Description = string.gsub(descObj.Description, "{1}", coinsNeeded)
descObj.Description = string.gsub(descObj.Description, "{2}", coinsNeeded - totalDonations)
descObj.Description = EID:ReplaceVariableStr(descObj.Description, 1, coinsNeeded)
descObj.Description = EID:ReplaceVariableStr(descObj.Description, 2, coinsNeeded - totalDonations)
descObj.Icon = EID.InlineIcons["DonationMachine"]
return descObj
end