无编辑摘要
(创建页面,内容为“local equipts = mw.loadData("模块:特殊数据2").equipts local tr = mw.loadData("模块:对照表") local p = { } p['稀有度'] = function(frame) return eq...”) |
无编辑摘要 |
||
第3行: | 第3行: | ||
local p = { } | local p = { } | ||
p['属性'] = function(frame) | |||
local equip = equipts[frame.args[2]] | |||
local default = frame.args[3] | |||
if default == nil then default = '' end | |||
if equip == nil then return default end | |||
local ret = ship[frame.args[1]] | |||
if ret == nil then return default end | |||
return ret | |||
end | |||
p['稀有度'] = function(frame) | p['稀有度'] = function(frame) |