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

模块:特殊数据/舰娘:修订间差异

跳转到导航 跳转到搜索
删除370字节 、​ 2022年8月26日 (星期五)
撤销Donnyjie讨论)的版本73739
无编辑摘要
(撤销Donnyjie讨论)的版本73739)
标签撤销
第56行: 第56行:
for name, ship in pairs(data.ships) do
for name, ship in pairs(data.ships) do
     data.byIndex[ship.index] = name
     data.byIndex[ship.index] = name
end
data.count = { normal=0, mod=0, skin=0 }
for name, ship in pairs(data.ships) do
    if type(ship.index) == "string"
        then data.count.skin = data.count.skin + 1
    else
        if ship.index < 1000
            then data.count.normal = data.count.normal + 1
        else if ship.index < 2000 then data.count.mod = data.count.mod + 1 end
        end
    end
end
end


return data
return data
18,672

个编辑

导航菜单