打开/关闭菜单
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

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

模块:数据:修订间差异

来自舰R百科
无编辑摘要
Donnyjie留言 | 贡献
无编辑摘要
 
(未显示1个用户的3个中间版本)
第1行: 第1行:
local tr = mw.loadData("模块:对照表")
local tr = mw.loadData("模块:对照表")
local data = mw.loadData("模块:特殊数据")
local equipts = mw.loadData("模块:特殊数据/装备").equipts
local equipts = data.equipts
local ships = mw.loadData("模块:特殊数据/舰娘").ships
local ships = data.ships
local byIndex = mw.loadData("模块:特殊数据/舰娘").byIndex
local byIndex = data.byIndex
local enemy = mw.loadData("模块:敌舰数据")
local enemy = mw.loadData("模块:敌舰数据")
local enemyShips = enemy.ships
local enemyShips = enemy.ships
第75行: 第74行:
     local shipName = frame.args[1]
     local shipName = frame.args[1]
     return replaceCountryName(ships[shipName]['简介'])
     return replaceCountryName(ships[shipName]['简介'])
end
p['改造'] = function(frame)
    local shipName = frame.args[1]
    local mod = ships[shipName].mod
    if mod == nil then mod = '' end
    return mod
end
end


第80行: 第86行:
     local shipName = frame.args[1]
     local shipName = frame.args[1]
     local dialogue = frame.args[2]
     local dialogue = frame.args[2]
    local force = frame.args[3]
    if force ~= nil and force ~= '' then return force end
     if shipName == '' then return '' end
     if shipName == '' then return '' end
     local ret = ships[shipName][dialogue]
     local ret = ships[shipName][dialogue]
第107行: 第115行:
typeCode['驱逐舰'] = 'dd'
typeCode['驱逐舰'] = 'dd'
typeCode['重炮潜艇'] = 'sc'
typeCode['重炮潜艇'] = 'sc'
typeCode['轻型航空母舰'] = 'ss'
typeCode['潜艇'] = 'ss'
typeCode['补给舰'] = 'ap'
typeCode['补给舰'] = 'ap'