Module:ItemData: Difference between revisionsGive feedback
Jump to navigation
Jump to search
added raw variable for get_prop, get_property_upgrades to get data without suffixes |
No edit summary |
||
| Line 400: | Line 400: | ||
if upgrades == nil then return nil end | if upgrades == nil then return nil end | ||
local | local value = upgrades[property] | ||
if | if value == nil then return nil end | ||
local result = raw and strip_suffix(value) or tostring(value) | |||
local | |||
if raw then | if raw then | ||