Editing Module:ItemDataGive feedback
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 430: | Line 430: | ||
if upgrades == nil then return nil end | if upgrades == nil then return nil end | ||
local | local prop_upgrades = upgrades[property] | ||
if | if prop_upgrades == nil then return nil end | ||
local | -- Convert upgrade values to strings | ||
local values = {} | |||
for _, v in ipairs(prop_upgrades) do | |||
table.insert(values, raw and strip_suffix(v) or tostring(v)) | |||
end | |||
local result = table.concat(values, ", ") | |||
if raw then | if raw then | ||