Added EID:ReplaceVariableStr() to make text variable replacements easier
This commit is contained in:
1 parent
2fda4452c5
commit
76a3b18179
5 files changed
+19
-13
No files matched your search
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user