模块:敌舰2:修订间差异
跳转到导航
跳转到搜索
无编辑摘要
无编辑摘要 |
无编辑摘要 |
||
第97行: | 第97行: | ||
if speedCnt[2] ~= 0 then s2 = speed[2] / speedCnt[2] end | if speedCnt[2] ~= 0 then s2 = speed[2] / speedCnt[2] end | ||
local s = math.min(s1, s2) | local s = math.min(s1, s2) | ||
s = tonumber(string.format("%.1f", s)) | |||
if speedCnt[1] ~= 0 and speedCnt[2] ~= 0 then s = math.floor(s) end | |||
local bg2 = '' | local bg2 = '' | ||
if speedCnt[1] == 0 and speedCnt[2] == 0 then | if speedCnt[1] == 0 and speedCnt[2] == 0 then | ||
第105行: | 第107行: | ||
local air2 = air*1.5 | local air2 = air*1.5 | ||
local air3 = air*3 | local air3 = air*3 | ||
ret = ret .. '||' .. bg2 .. rec .. '||' .. formatFloat(air) .. '||' .. formatFloat(air2) .. '||'.. formatFloat(air3) .. '||' .. | ret = ret .. '||' .. bg2 .. rec .. '||' .. formatFloat(air) .. '||' .. formatFloat(air2) .. '||'.. formatFloat(air3) .. '||' .. s .. '\n' | ||
end | end | ||
return '|rowspan=' .. n .. '|' .. label .. '|' .. ret | return '|rowspan=' .. n .. '|' .. label .. '|' .. ret |