游戏王残局简化版

Diff
Login

Diff

Differences From Artifact [be28ccce5f]:

To Artifact [6e42b050e5]:


35
36
37
38
39
40
41
42

43
44
45
46



47
48
49
50
51
52
53
54
55
56
57
58
59
60
61

62
63
64
65
66




67
68
69
70
71
72
73
74
75
76
77
78
79
80

81
82
83


84
85

86
87
88
89
90
91
92
93
94

95
96
97


98
99

100
101
102
103
104
105
106
35
36
37
38
39
40
41

42
43



44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60

61
62




63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79

80
81


82
83
84

85
86
87
88
89
90
91
92
93

94
95


96
97
98

99
100
101
102
103
104
105
106







-
+

-
-
-
+
+
+














-
+

-
-
-
-
+
+
+
+













-
+

-
-
+
+

-
+








-
+

-
-
+
+

-
+







  k1 = "[^\n]+"
  --~ 卡编所在函式
  k2 = "Debug%.AddCard.+"
  --~ 卡编
  k3 = "[0-9]+"
  --~ 文
  function d.局筛卡编(o1)
    local k1_0
    local h1_0
    --~ 卡编排
    k1_0 = 历文库.历文(o1, string.gmatch, k1)
    k1_0 = 历排库.历排(k1_0, string.match, k2)
    return 历排库.历排(k1_0, string.match, k3)
    h1_0 = 历文库.历文(o1, string.gmatch, k1)
    h1_0 = 历排库.历排(h1_0, string.match, k2)
    return 历排库.历排(h1_0, string.match, k3)
    end
  end
do
  local k1, k2, k3, k4
  --~ 非空单行,且无换行符
  k1 = "[^\n]+"
  --~ 玩家讯所在函式
  k2 = "Debug%.SetPlayerInfo.+"
  --~ 玩家编号
  k3 = "[0-9]+"
  --~ 玩家血量
  k4 = "[0-9]+"
  --~ 文
  function d.局筛血(o1)
    local k1_0
    local h1_0
    --~ 血排
    k1_0 = 历文库.历文(o1, string.gmatch, k1)
    k1_0 = 历排库.历排(k1_0, string.match, k2)
    k1_0 = 历排库.历排(k1_0, string.gsub, k3, "", 1)
    return 历排库.历排(k1_0, string.match, k4)
    h1_0 = 历文库.历文(o1, string.gmatch, k1)
    h1_0 = 历排库.历排(h1_0, string.match, k2)
    h1_0 = 历排库.历排(h1_0, string.gsub, k3, "", 1)
    return 历排库.历排(h1_0, string.match, k4)
    end
  end
do
  local k1, k2, k3
  --~ 非空单行,且无换行符
  k1 = "[^\n]+"
  --~ 残局讯所在函式
  k2 = 文库.连("Debug", "%.", "ReloadFieldBegin", ".+")
  --~ 则数
  k3 = "[0-9]"
  --~ 文
  function d.局筛则数(o1)
    local k4
    local k1_0
    local h1_0
    --~ 则数排
    k1_0 = 历文库.历文(o1, string.gmatch, k1)
    k1_0 = 历排库.历排(k1_0, string.match, k2)
    h1_0 = 历文库.历文(o1, string.gmatch, k1)
    h1_0 = 历排库.历排(h1_0, string.match, k2)
    --~ 则数
    k4 = string.match(k1_0[1], k3)
    k4 = string.match(h1_0[1], k3)
    assert(k4, o1)
    return k4 or 5
    end
  end
--~ 卡对排
--~ 血排
function d.荐名(o1_0, o2_0)
  local k1, k2, k3
  local k1_0
  local h1_0
  --~ 攻击力排
  k1_0 = 历排库.历排(o1_0, 筛卡库.筛怪兽卡)
  k1_0 = 历排库.历排(k1_0, 筛卡库.筛攻击力)
  h1_0 = 历排库.历排(o1_0, 筛卡库.筛怪兽卡)
  h1_0 = 历排库.历排(h1_0, 筛卡库.筛攻击力)
  --~ 总攻
  k1 = 排算库.总和(k1_0)
  k1 = 排算库.总和(h1_0)
  --~ 总血
  k2 = 排算库.总和(o2_0)
  --~ 荐名
  k3 = 基算库.除法(k1, k2)
  k3 = 数库.指数次(k3, 2)
  if 数库.是否错值(k3) then
    return 0
118
119
120
121
122
123
124
125

126
127
128
129


130
131

132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150

151
152

153
154

155
156
157
158
159
160
161
162

163
164

165
166
167
168
169
170
171
172
173
174
175
176
118
119
120
121
122
123
124

125
126
127


128
129
130

131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149

150
151

152
153

154
155
156
157
158
159
160
161

162
163

164
165
166
167
168
169
170
171
172
173
174
175
176







-
+


-
-
+
+

-
+


















-
+

-
+

-
+







-
+

-
+












  if k1 == o1 then
  else
    写文件库.写文件(o3, k1)
    end
  end
--~ 目对
function d.残局改名(o1_0)
  local k1_0, k2_0, k3_0, k4_0, k5_0, k6_0, k7_0, k8_0, k9_0
  local h1_0, k2_0, k3_0, k4_0, k5_0, k6_0, k7_0, k8_0, k9_0
  local k10_0, k11_0, k12_0
  --~ 文件名排
  k1_0 = 历文库.历文(o1_0.文件目, 文件系库.dir)
  k1_0 = 历排库.历排(k1_0, 后缀库.全筛后缀, ".lua")
  h1_0 = 历文库.历文(o1_0.文件目, 文件系库.dir)
  h1_0 = 历排库.历排(h1_0, 后缀库.全筛后缀, ".lua")
  --~ 文件排
  k2_0 = 历排库.历排(k1_0, 后缀库.全筛后缀, ".lua")
  k2_0 = 历排库.历排(h1_0, 后缀库.全筛后缀, ".lua")
  k2_0 = 历排库.历排(k2_0, 前缀库.加前缀, o1_0.文件目)
  k2_0 = 历排库.历排(k2_0, 读文件库.读文件)
  k2_0 = 历排库.历排(k2_0, 删注库.删注)
  --~ 则数排
  k3_0 = 历排库.历排(k2_0, d.局筛则数)
  --~ 各文件的卡编排
  k4_0 = 历排库.历排(k2_0, d.局筛卡编)
  --~ 各文件的卡对排
  k5_0 = 历排库.历排(k4_0, d.取卡对_一维)
  --~ 有效果卡的卡对排
  k6_0 = 历排库.历排(k5_0, d.筛有效果卡)
  --~ 有效果卡的张数排
  k7_0 = 历排库.历排(k6_0, table.maxn)
  --~ 血排
  k11_0 = 历排库.历排(k2_0, d.局筛血)
  --~ 荐名排
  k8_0 = 历排库.历二排(k6_0, k11_0, d.荐名)
  --~ 新名排
  k9_0 = 历排库.历排(k1_0, string.gsub, 字集库.u8_to_a(文库.连(" ", ".+")), "")
  k9_0 = 历排库.历排(h1_0, string.gsub, 字集库.u8_to_a(文库.连(" ", ".+")), "")
  --~ 编号排
  k10_0 = 历排库.历排(k1_0, string.gsub, 字集库.u8_to_a(文库.连(" ", ".+")), "")
  k10_0 = 历排库.历排(h1_0, string.gsub, 字集库.u8_to_a(文库.连(" ", ".+")), "")
  k9_0 = 历排库.历排(k9_0, string.gsub, 文库.连("%.", "lua", "$"), "")
  for o1 = 1, #k1_0 do
  for o1 = 1, #h1_0 do
    k9_0[o1] = 文库.连(字集库.a_to_u8(o1_0.文件目), 字集库.a_to_u8(k9_0[o1]), " ", k3_0[o1], "_", 数库.几位整数(k7_0[o1], 2))
    if k8_0[o1] == 0 then
      k9_0[o1] = 文库.连(k9_0[o1], ".", "lua")
    else
      k9_0[o1] = 文库.连(k9_0[o1], "_", k8_0[o1], ".", "lua")
      end
    end
  k1_0 = 历排库.历排(k1_0, 前缀库.加前缀, o1_0.文件目)
  h1_0 = 历排库.历排(h1_0, 前缀库.加前缀, o1_0.文件目)
  k9_0 = 历排库.历排(k9_0, 字集库.u8_to_a)
  历排库.历二排(k1_0, k9_0, os.rename)
  历排库.历二排(h1_0, k9_0, os.rename)
  k10_0 = 历排库.历排(k10_0, 字集库.a_to_u8)
  --~ 文排
  k12_0 = 历排库.历排(k9_0, 读文件库.读文件)
  历排库.历三排(k12_0, k10_0, k9_0, d.察编号)
  end
d.目对 = {
  ["文件目"] = "../single/"
  , ["卡档路"] = [[D:\install\YGOPro\cards.cdb]]
  }
d.目对 = 历对库.历值(d.目对, 基类库.操类, "string", 字集库.u8_to_a)
卡档库.启卡档(d.目对.卡档路)
d.残局改名(d.目对)