Module:ShipInfobox: Difference between revisions
Content deleted Content added
m Fixed tostring to tonumber |
mNo edit summary |
||
Line 146:
function Infobox.MaxCargo ( field, vars )
local output = {}
if HF.isempty(field.
output = output .. (tonumber(field.
end
output = output .. (tonumber(field.S3) * 8)▼
output = output .. (tonumber(field.
end
output = output .. (tonumber(field.S6) * 64)▼
output = output .. (tonumber(field.
end
if not HF.isempty(field.S4) then
end
if not HF.isempty(field.S5) then
output = output .. (tonumber(field.S5) * 32)
end
if not HF.isempty(field.S6) then
▲ output = output .. (tonumber(field.S6) * 64)
end
if not HF.isempty(field.S7) then
output = output .. (tonumber(field.S7) * 128)
end
if not HF.isempty(field.S8) then
output = output .. (tonumber(field.S8) * 256)
end
return output
else
output = field.
end
field.Value = output
| |||