模块:ItemInfo:修订间差异
跳转到导航
跳转到搜索
优化读取
(修正错误) |
(优化读取) |
||
第326行: | 第326行: | ||
function p.listArmorsInAt1() | function p.listArmorsInAt1() | ||
local html = mw.html.create('table'):addClass('wikitable') | local html = mw.html.create('table'):addClass('wikitable') | ||
local matIdx = mw.loadJsonData('数据:AT1/防具/索引') | |||
html:tag('tr') | html:tag('tr') | ||
第336行: | 第337行: | ||
local baseIndex = 19 | local baseIndex = 19 | ||
for i = 1, 29 do | for i = 1, 29 do | ||
local item = | local item = matIdx[i] | ||
local recipe = '-' | local recipe = '-' | ||
if item.base.synthesisable ~= '0' then | if item.base.synthesisable ~= '0' then | ||
第353行: | 第354行: | ||
function p.listWeaponsInAt1() | function p.listWeaponsInAt1() | ||
local html = mw.html.create('table'):addClass('wikitable') | local html = mw.html.create('table'):addClass('wikitable') | ||
local matIdx = mw.loadJsonData('数据:AT1/武器/索引') | |||
html:tag('tr') | html:tag('tr') | ||
第363行: | 第365行: | ||
local baseIndex = 190 | local baseIndex = 190 | ||
for i = 1, 35 do | for i = 1, 35 do | ||
local item = | local item = matIdx[i] | ||
local recipe = '-' | local recipe = '-' | ||
if item.base.synthesisable ~= '0' then | if item.base.synthesisable ~= '0' then | ||
第380行: | 第382行: | ||
function p.listAccessoriesInAt1() | function p.listAccessoriesInAt1() | ||
local html = mw.html.create('table'):addClass('wikitable') | local html = mw.html.create('table'):addClass('wikitable') | ||
local matIdx = mw.loadJsonData('数据:AT1/饰品/索引') | |||
html:tag('tr') | html:tag('tr') | ||
第390行: | 第393行: | ||
local baseIndex = -1 | local baseIndex = -1 | ||
for i = 1, 20 do | for i = 1, 20 do | ||
local item = | local item = matIdx[i] | ||
local recipe = '-' | local recipe = '-' | ||
if item.base.synthesisable ~= '0' then | if item.base.synthesisable ~= '0' then | ||
第407行: | 第410行: | ||
function p.listMaterialsInAt1() | function p.listMaterialsInAt1() | ||
local html = mw.html.create('table'):addClass('wikitable') | local html = mw.html.create('table'):addClass('wikitable') | ||
local matIdx = mw.loadJsonData('数据:AT1/材料物品/索引') | |||
html:tag('tr') | html:tag('tr') | ||
第417行: | 第421行: | ||
local baseIndex = 60 | local baseIndex = 60 | ||
for i = 1, 34 do | for i = 1, 34 do | ||
local item = | local item = matIdx[i] | ||
local recipe = '-' | local recipe = '-' | ||
if item.base.synthesisable ~= '0' then | if item.base.synthesisable ~= '0' then | ||
第434行: | 第438行: | ||
function p.listMelcMaterialsInAt1() | function p.listMelcMaterialsInAt1() | ||
local html = mw.html.create('table'):addClass('wikitable') | local html = mw.html.create('table'):addClass('wikitable') | ||
local matIdx = mw.loadJsonData('数据:AT1/合成材料/索引') | |||
html:tag('tr') | html:tag('tr') | ||
第444行: | 第449行: | ||
local baseIndex = 94 | local baseIndex = 94 | ||
for i = 1, 24 do | for i = 1, 24 do | ||
local item = | local item = matIdx[i] | ||
local recipe = '-' | local recipe = '-' | ||
if item.base.synthesisable ~= '0' then | if item.base.synthesisable ~= '0' then | ||
第461行: | 第466行: | ||
function p.listKeysInAt1() | function p.listKeysInAt1() | ||
local html = mw.html.create('table'):addClass('wikitable') | local html = mw.html.create('table'):addClass('wikitable') | ||
local matIdx = mw.loadJsonData('数据:AT1/重要/索引') | |||
html:tag('tr') | html:tag('tr') | ||
第466行: | 第472行: | ||
:tag('th'):wikitext('索引'):done() | :tag('th'):wikitext('索引'):done() | ||
:tag('th'):wikitext('名称'):done() | :tag('th'):wikitext('名称'):done() | ||
:tag('th'):wikitext('配方'):done() | :tag('th'):wikitext('配方'):done() | ||
local baseIndex = 48 | local baseIndex = 48 | ||
for i = 1, 12 do | for i = 1, 12 do | ||
local item = | local item = matIdx[i] | ||
local recipe = '-' | local recipe = '-' | ||
if item.base.synthesisable ~= '0' then | if item.base.synthesisable ~= '0' then | ||
第480行: | 第485行: | ||
:tag('td'):wikitext(tostring(i)):done() | :tag('td'):wikitext(tostring(i)):done() | ||
:tag('td'):wikitext('[[攻略:AT1/物品/' .. item.name .. '|' .. item.name .. ']]'):done() | :tag('td'):wikitext('[[攻略:AT1/物品/' .. item.name .. '|' .. item.name .. ']]'):done() | ||
:tag('td'):wikitext(recipe):done() | :tag('td'):wikitext(recipe):done() | ||
end | end | ||
第488行: | 第492行: | ||
function p.listUseInAt1() | function p.listUseInAt1() | ||
local html = mw.html.create('table'):addClass('wikitable') | local html = mw.html.create('table'):addClass('wikitable') | ||
local matIdx = mw.loadJsonData('数据:AT1/使用/索引') | |||
html:tag('tr') | html:tag('tr') | ||
第498行: | 第503行: | ||
local baseIndex = 118 | local baseIndex = 118 | ||
for i = 1, 72 do | for i = 1, 72 do | ||
local item = | local item = matIdx[i] | ||
local recipe = '-' | local recipe = '-' | ||
if item.base.synthesisable ~= '0' then | if item.base.synthesisable ~= '0' then |