游戏王残局简化版

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

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

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

                         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: --~ 卡编排
                        10: function d_5.筛卡对_一维(o1_8)
                        11:   return f.历排(o1_8, d_5.筛卡对)
                        12:   end
                        13: --~ 卡编
                        14: function d_5.筛卡对(o1_8)
                        15:   for o1_5 in 数据库:nrows("select * from datas where id = " .. o1_8) do
                        16:     return o1_5
                        17:     end
                        18:   end
                        19: --~ 文
                        20: function d_5.局筛卡编(o1)
                        21:   local k1_9
                        22:   --~ 卡编排
                        23:   k1_9 = f.历文(o1, string.gmatch, "[^\n]+")
                        24:   k1_9 = f.历排(k1_9, f.全筛前缀, "Debug.AddCard")
                        25:   return f.历排(k1_9, string.match, "[0-9]+")
                        26:   end
                        27: --~ 文
                        28: function d_5.局筛则数(o1)
                        29:   local k1
                        30:   local k1_9
                        31:   --~ 则数排
                        32:   k1_9 = f.历文(o1, string.gmatch, "[^\n]+")
                        33:   k1_9 = f.历排(k1_9, f.全筛前缀, "Debug.ReloadFieldBegin")
                        34:   --~ 则数
                        35:   k1 = string.match(k1_9[1], "[0-9]")
                        36:   return k1 or 3
                        37:   end
                        38: --~ 目对
                        39: function d_5.残局改名(o1)
                        40:   local k1_9, k2_9, k3_9, k4_9, k5_9
                        41:   --~ 文件排
                        42:   k1_9 = f.历文(o1.文件目, 简文件库.dir)
                        43:   k1_9 = f.历排(k1_9, f.全筛后缀, ".lua")
                        44:   for o2 = 1, #k1_9 do
                        45:     k1_9[o2] = f.加前缀(k1_9[o2], o1.文件目)
                        46:     k1_9[o2] = f.读文件(k1_9[o2])
                        47:     k1_9[o2] = string.gsub(k1_9[o2], "%-%-" .. "%[(=*)%[" .. ".-" .. "%]%1%]", "")
                        48:     k1_9[o2] = string.gsub(k1_9[o2], "%-%-" .. "[^\n]*", "")
                        49:     end
                        50:   --~ 则数排
                        51:   k2_9 = f.历排(k1_9, d_5.局筛则数)
                        52:   --~ 各文件的卡编排
                        53:   k3_9 = f.历排(k1_9, d_5.局筛卡编)
                        54:   _G.数据库 = 简数据库库.open(o1.数据库路)
                        55:   --~ 各文件的卡对排
                        56:   k4_9 = f.历排(k3_9, d_5.筛卡对_一维)
a8787a258d 2024-02-03   57:   k5_9 = f.历排(k4_9, d_5.筛有效果的卡数)
                        58:   end
                        59: d_5.目对 = {
                        60:   ["文件目"] = "../single/"
                        61:   , ["数据库路"] = [[D:\install\YGOPro\cards.cdb]]
                        62:   }
                        63: for o1, o2 in pairs(d_5.目对) do
                        64:   d_5.目对[o1] = f.操类(o2, "string", u8)
                        65:   end
                        66: d_5.残局改名(d_5.目对)