|
|
|
|
@ -514,8 +514,15 @@ function TSMAPI:ParseCustomPrice(priceString, badPriceSource)
|
|
|
|
|
return nil, err |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
customPriceCache[priceString] = func |
|
|
|
|
return func |
|
|
|
|
local function safeFunc(itemString) |
|
|
|
|
local success, value = pcall(func, itemString) |
|
|
|
|
if success then |
|
|
|
|
return value |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
customPriceCache[priceString] = safeFunc |
|
|
|
|
return safeFunc |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
function TSMAPI:GetCustomPriceSourceValue(itemString, key) |
|
|
|
|
|