Overview
Comment: | 好 |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
7641d52a05c511613e7529c84ec0a71d |
User & Date: | 顽雨沉风 on 2024-02-12 14:52:42 |
Other Links: | manifest | tags |
Context
2024-02-12
| ||
14:53 | 好 check-in: 8c1e3abceb user: 顽雨沉风 tags: trunk | |
14:52 | 好 check-in: 7641d52a05 user: 顽雨沉风 tags: trunk | |
14:41 | 好 check-in: f347cac7fe user: 顽雨沉风 tags: trunk | |
Changes
Added 残局文料/游戏王_则拟器_原版_卡档.lua version [a267460be6].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | local 档库 = require("lsqlite3") local 字集库 = require("u8_to_a") local 对库 = require(字集库.u8_to_a("算机_程语_月_基类_表_对")) local d = {} local 卡档 --~ 卡编 function d.取卡对(o1) local k1_0, k2_0 --~ 卡文对 k1_0 = d.取卡文(o1) --~ 卡数据对 k2_0 = d.取卡数据(o1) return 对库.连两对(k1_0, k2_0) end --~ 卡编 function d.取卡文(o1) for o1_4 in 卡档:nrows(文库.连("select * from texts where id = ", o1)) do return o1_4 end end --~ 卡编 function d.取卡数据(o1) for o1_4 in 卡档:nrows(文库.连("select * from datas where id = ", o1)) do return o1_4 end end --~ 卡档路 function d.启卡档(o1) 卡档 = 档库.open(o1) end return d |
Modified 残局文料/游戏王_则拟器_原版_残局_局名_改名.lua from [7d1ed992f3] to [c179906a1a].
1 2 3 4 | package.path = [[.\lua_lib\?.lua;]] .. package.path package.cpath = [[.\lua_lib\?.dll;]] .. package.cpath local 字集库 = require("u8_to_a") local 文件系库 = require("lfs") | < | | < < < < < < < < < < < < < < < < < < < < < | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | package.path = [[.\lua_lib\?.lua;]] .. package.path package.cpath = [[.\lua_lib\?.dll;]] .. package.cpath local 字集库 = require("u8_to_a") local 文件系库 = require("lfs") local 基算库 = require(字集库.u8_to_a("算机_程语_月_基类_数_基算")) local 前缀库 = require(字集库.u8_to_a("算机_程语_月_基类_文_前缀")) local 文库 = require(字集库.u8_to_a("算机_程语_月_基类_文")) local 后缀库 = require(字集库.u8_to_a("算机_程语_月_基类_文_后缀")) local 历排库 = require(字集库.u8_to_a("算机_程语_月_基类_能_传能_历_基类_表_排_取全")) local 历对库 = require(字集库.u8_to_a("算机_程语_月_基类_能_传能_历_基类_表_对_取全")) local 历文库 = require(字集库.u8_to_a("算机_程语_月_基类_能_传能_历_基类_文_取全")) local 数库 = require(字集库.u8_to_a("算机_程语_月_基类_数")) local 基类库 = require(字集库.u8_to_a("算机_程语_月_基类_能_传能_基类")) local 筛卡库 = require(字集库.u8_to_a("游戏王_则拟器_原版_残局_卡_全筛")) local 卡档库 = require(字集库.u8_to_a("游戏王_则拟器_原版_卡档")) local 排算库 = require(字集库.u8_to_a("算机_程语_月_基类_表_排_基类_数")) local 读文件库 = require(字集库.u8_to_a("算机_基统_窗群_文件系_小文件_读")) local 写文件库 = require(字集库.u8_to_a("算机_基统_窗群_文件系_小文件_写")) local string = string local os = os local table = table local d = {} local 卡档 --~ 卡对排 function d.筛有效果卡(o1_0) return 历排库.历排(o1_0, 筛卡库.筛有效果卡) end --~ 卡编排 function d.取卡对_一维(o1_0) return 历排库.历排(o1_0, 卡档库.取卡对) end --~ 文 function d.局筛卡编(o1) local k1_0 --~ 卡编排 k1_0 = 历文库.历文(o1, string.gmatch, "[^\n]+") k1_0 = 历排库.历排(k1_0, string.match, "Debug%.AddCard.+") |
︙ | ︙ | |||
162 163 164 165 166 167 168 | 历排库.历三排(k12_0, k10_0, k9_0, d.察编号) end d.目对 = { ["文件目"] = "../single/" , ["卡档路"] = [[D:\install\YGOPro\cards.cdb]] } d.目对 = 历对库.历值(d.目对, 基类库.操类, "string", 字集库.u8_to_a) | | | 140 141 142 143 144 145 146 147 148 | 历排库.历三排(k12_0, k10_0, k9_0, d.察编号) end d.目对 = { ["文件目"] = "../single/" , ["卡档路"] = [[D:\install\YGOPro\cards.cdb]] } d.目对 = 历对库.历值(d.目对, 基类库.操类, "string", 字集库.u8_to_a) 卡档库.启卡档(d.目对.卡档路) d.残局改名(d.目对) |