Module:Abilities/utils: Difference between revisionsGive feedback
Jump to navigation
Jump to search
m fixing incorrect module reference and missing dictionary module reference for get_notes_source_page_name |
Fixed issue with one of Viper's upgrade values being a string |
||
| Line 36: | Line 36: | ||
value = tonumber(value:sub(1, -2)) | value = tonumber(value:sub(1, -2)) | ||
postfix = 'm' | postfix = 'm' | ||
end | |||
-- If string ends with 's', then set the postfix to 's' and remove it | |||
if commonutils.string_endswith(tostring(value), 's') then | |||
value = tonumber(value:sub(1, -2)) | |||
postfix = 's' | |||
end | end | ||