模块:ItemInfo:修订间差异

添加120字节 、​ 2024年6月8日 (星期六)
无编辑摘要
(测试)
无编辑摘要
第23行: 第23行:
             return p.loadItemInfoByIndex(game, '葛拉斯诺晶体', id - 225 + 1)
             return p.loadItemInfoByIndex(game, '葛拉斯诺晶体', id - 225 + 1)
         end
         end
        return nil, '获取数据失败,无效物品ID: ' .. id
     elseif game == 'AT2' then
     elseif game == 'AT2' then
     elseif game == 'AT3' then
     elseif game == 'AT3' then
     end
     end
     return {name = "获取数据失败,检查ID值"}
     return nil, '获取数据失败,所指定的游戏不存在'
end
end


第105行: 第106行:


function p.DebugGetGrathnodeCrystal()
function p.DebugGetGrathnodeCrystal()
     return mw.dumpObject(p.loadItemById(255))
     local data, err = p.loadItemById('AT1', 255)
    return err .. mw.allToString(data)
end
end


return p
return p
1,075

个编辑