模块:台词:修订间差异
来自舰R百科
更多操作
创建页面,内容为“local ships = mw.loadData("模块:特殊数据").ships return function(frame) local shipName = frame.args[1] local dialogue = frame.args[2] local force...” |
无编辑摘要 |
||
| 第1行: | 第1行: | ||
local ships = mw.loadData("模块:特殊数据").ships | local ships = mw.loadData("模块:特殊数据").ships | ||
local function getDialogue(shipName, dialogue, force) | |||
if force ~= nil and force ~= '' then return force end | if force ~= nil and force ~= '' then return force end | ||
local ship = ships[shipName] | local ship = ships[shipName] | ||
| 第12行: | 第9行: | ||
return ret | return ret | ||
end | end | ||
local p = { } | |||
p['自荐'] = function(frame) return getDialogue(frame.args[1], '自荐', frame.args[2]) end | |||
p['获得'] = function(frame) return getDialogue(frame.args[1], '获得', frame.args[2]) end | |||
p['白天1'] = function(frame) return getDialogue(frame.args[1], '白天1', frame.args[2]) end | |||
p['白天2'] = function(frame) return getDialogue(frame.args[1], '白天2', frame.args[2]) end | |||
p['白天3'] = function(frame) return getDialogue(frame.args[1], '白天3', frame.args[2]) end | |||
p['夜间1'] = function(frame) return getDialogue(frame.args[1], '夜间1', frame.args[2]) end | |||
p['夜间2'] = function(frame) return getDialogue(frame.args[1], '夜间2', frame.args[2]) end | |||
p['夜间3'] = function(frame) return getDialogue(frame.args[1], '夜间3', frame.args[2]) end | |||
p['阵型'] = function(frame) return getDialogue(frame.args[1], '阵型', frame.args[2]) end | |||
p['攻击'] = function(frame) return getDialogue(frame.args[1], '攻击', frame.args[2]) end | |||
p['夜战'] = function(frame) return getDialogue(frame.args[1], '夜战', frame.args[2]) end | |||
p['中破'] = function(frame) return getDialogue(frame.args[1], '中破', frame.args[2]) end | |||
p['誓约'] = function(frame) return getDialogue(frame.args[1], '誓约', frame.args[2]) end | |||
return p | |||