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

删除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,679

个编辑