打开/关闭菜单
1683
2.2万
6532
11.8万
舰R百科
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

舰R百科是靠无数志愿编辑者持续地建设更新完善的。编辑非常简单,无需代码知识,请勇于更新页面!
编辑入门 | 资助百科 | 留言讨论页 | 微博@舰R百科 | 百科编辑讨论Q群:366818861

模块:舰娘:修订间差异

舰R百科,玩家自由编辑的战舰少女R百科
Donnyjie留言 | 贡献
无编辑摘要
Donnyjie留言 | 贡献
无编辑摘要
第10行: 第10行:
p['查找船名'] = function(frame)
p['查找船名'] = function(frame)
     return byIndex[tonumber(frame.args[1])]
     return byIndex[tonumber(frame.args[1])]
end
p['统计'] = function(frame)
    local normal = 0
    local mod = 0
    local skin = 0
    for index, name in pairs(byIndex) do
        if type(index) == 'string'
            then skin = skin + 1
        else
            if index < 1000
                then normal = normal + 1
            else if index < 2000 then mod = mod + 1 end
            end
        end
    end
    if frame.args[1] == '普通' then return normal end
    if frame.args[1] == '改造' then return mod end
    if frame.args[1] == '换装' then return skin end
end
end