Module:ShipInfobox: Difference between revisions

Content deleted Content added
mNo edit summary
m Fixed addition
Line 148:
if HF.isempty(field.Cargo) then
if not HF.isempty(field.S1) then
output = output ..+ (tonumber(field.S1) * 2)
end
if not HF.isempty(field.S2) then
output = output ..+ (tonumber(field.S2) * 4)
end
if not HF.isempty(field.S3) then
output = output ..+ (tonumber(field.S3) * 8)
end
if not HF.isempty(field.S4) then
output = output ..+ (tonumber(field.S4) * 16)
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
if HF.isempty(output) then
output = "---"
end
return output