模块:敌舰2:修订间差异
来自舰R百科
更多操作
无编辑摘要 |
无编辑摘要 |
||
| (未显示同一用户的3个中间版本) | |||
| 第28行: | 第28行: | ||
speedType['驱逐'] = 2 | speedType['驱逐'] = 2 | ||
speedType['补给'] = 2 | speedType['补给'] = 2 | ||
speedType[' | speedType['导潜'] = 3 | ||
speedType['潜艇'] = 3 | speedType['潜艇'] = 3 | ||
speedType['炮潜'] = 3 | speedType['炮潜'] = 3 | ||
| 第56行: | 第56行: | ||
local node = frame.args[1] | local node = frame.args[1] | ||
local label = frame.args[2] | local label = frame.args[2] | ||
if label == nil or label == '' then label = node:sub( | if label == nil or label == '' then label = node:sub(-1,-1) end | ||
local shipNum = frame.args[3] | local shipNum = frame.args[3] | ||
if shipNum == nil then shipNum = 6 end | if shipNum == nil then shipNum = 6 end | ||
| 第102行: | 第102行: | ||
if speedCnt[1] == 0 and speedCnt[2] == 0 then | if speedCnt[1] == 0 and speedCnt[2] == 0 then | ||
s = speed[3] / speedCnt[3] | s = speed[3] / speedCnt[3] | ||
s = tonumber(string.format("%.1f", s)) | |||
rec = '(' .. lv .. ')' | rec = '(' .. lv .. ')' | ||
bg2 = 'style="background-color:#fcf3cf;"|' | bg2 = 'style="background-color:#fcf3cf;"|' | ||