游戏王残局简化版

Annotation For 残局文料/残局改名.lua
Login

Annotation For 残局文料/残局改名.lua

Lines of 残局文料/残局改名.lua from check-in b2d67bda64 that are changed by the sequence of edits moving toward check-in 023be319b7:

                         1: package.path = [[.\lua_lib\?.lua;]] .. package.path
                         2: package.cpath = [[.\lua_lib\?.dll;]] .. package.cpath
                         3: local 字集码互转库 = require("u8_to_a")
                         4: local u8 = 字集码互转库.u8_to_a
                         5: local f = require(u8("常用库"))
                         6: local 简文件库 = require("lfs")
                         7: local 简数据库库 = require("lsqlite3")
                         8: local d_5 = {}
                         9: do
                        10:   --~ 卡对
b2d67bda64 2024-02-03   11:   function d_5.筛真效果卡的卡数(o1_5)
                        12:     
                        13:     end
                        14:   end
                        15: --~ 卡对排
b2d67bda64 2024-02-03   16: function d_5.筛真效果卡的卡数_一维(o1_8)
                        17:   local k1_8
                        18:   --~ 卡排
b2d67bda64 2024-02-03   19:   k1_8 = f.历排(o1_8, d_5.筛真效果卡的卡数)
                        20:   return #k1
                        21:   end
                        22: --~ 卡编排
                        23: function d_5.筛卡对_一维(o1_8)
                        24:   return f.历排(o1_8, d_5.筛卡对)
                        25:   end
                        26: --~ 卡编
                        27: function d_5.筛卡对(o1_8)
                        28:   for o1_5 in 数据库:nrows("select * from datas where id = " .. o1_8) do
                        29:     return o1_5
                        30:     end
                        31:   end
                        32: --~ 文
                        33: function d_5.局筛卡编(o1)
                        34:   local k1_9
                        35:   --~ 卡编排
                        36:   k1_9 = f.历文(o1, string.gmatch, "[^\n]+")
                        37:   k1_9 = f.历排(k1_9, f.全筛前缀, "Debug.AddCard")
                        38:   return f.历排(k1_9, string.match, "[0-9]+")
                        39:   end
                        40: --~ 文
                        41: function d_5.局筛则数(o1)
                        42:   local k1
                        43:   local k1_9
                        44:   --~ 则数排
                        45:   k1_9 = f.历文(o1, string.gmatch, "[^\n]+")
                        46:   k1_9 = f.历排(k1_9, f.全筛前缀, "Debug.ReloadFieldBegin")
                        47:   --~ 则数
                        48:   k1 = string.match(k1_9[1], "[0-9]")
                        49:   return k1 or 3
                        50:   end
                        51: --~ 目对
                        52: function d_5.残局改名(o1)
                        53:   local k1_9, k2_9, k3_9, k4_9, k5_9
                        54:   --~ 文件排
                        55:   k1_9 = f.历文(o1.文件目, 简文件库.dir)
                        56:   k1_9 = f.历排(k1_9, f.全筛后缀, ".lua")
                        57:   for o2 = 1, #k1_9 do
                        58:     k1_9[o2] = f.加前缀(k1_9[o2], o1.文件目)
                        59:     k1_9[o2] = f.读文件(k1_9[o2])
                        60:     k1_9[o2] = string.gsub(k1_9[o2], "%-%-" .. "%[(=*)%[" .. ".-" .. "%]%1%]", "")
                        61:     k1_9[o2] = string.gsub(k1_9[o2], "%-%-" .. "[^\n]*", "")
                        62:     end
                        63:   --~ 则数排
                        64:   k2_9 = f.历排(k1_9, d_5.局筛则数)
                        65:   --~ 各文件的卡编排
                        66:   k3_9 = f.历排(k1_9, d_5.局筛卡编)
                        67:   _G.数据库 = 简数据库库.open(o1.数据库路)
                        68:   --~ 各文件的卡对排
                        69:   k4_9 = f.历排(k3_9, d_5.筛卡对_一维)
b2d67bda64 2024-02-03   70:   --~ 真效果卡的卡数排
b2d67bda64 2024-02-03   71:   k5_9 = f.历排(k4_9, d_5.筛真效果卡的卡数_一维)
                        72:   end
                        73: d_5.目对 = {
                        74:   ["文件目"] = "../single/"
                        75:   , ["数据库路"] = [[D:\install\YGOPro\cards.cdb]]
                        76:   }
                        77: for o1, o2 in pairs(d_5.目对) do
                        78:   d_5.目对[o1] = f.操类(o2, "string", u8)
                        79:   end
                        80: d_5.残局改名(d_5.目对)