Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
ygopro-2pick
Commits
57f2fc39
Commit
57f2fc39
authored
Mar 27, 2019
by
wind2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add combo pick
parent
4b7c0f39
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
127 additions
and
1 deletion
+127
-1
2pick/combo.lua
2pick/combo.lua
+118
-0
2pick/pick.lua
2pick/pick.lua
+9
-1
No files found.
2pick/combo.lua
0 → 100644
View file @
57f2fc39
combo_pack
=
{}
combo_pack
.
pack
=
{{
26420373
,
53932291
,
96708940
,
27660735
},
{
63821877
,
90432163
,
36426778
,
36247316
},
{
96622984
,
53819028
,
52792430
,
22138839
},
{
68819554
,
67696066
,
31292357
,
71578874
},
{
65848811
,
34143852
,
53466826
,
1833916
},
{
68535320
,
95929069
,
21414674
,
13317419
},
{
57103969
,
57103969
,
6353603
,
3534077
},
{
66413481
,
57554544
,
23015896
,
61441708
},
{
31443476
,
5087128
,
53266486
,
48355999
},
{
13093792
,
13093792
,
45809008
,
45809008
},
{
2783661
,
89631139
,
88241506
,
6853254
},
{
17201174
,
64319467
,
90303176
,
95231062
},
{
8875971
,
38331564
,
91110378
,
64726269
},
{
45078193
,
3019642
,
77723643
,
94919024
},
{
20747792
,
34318086
,
82627406
,
7198399
},
{
5361647
,
13313278
,
61679541
,
32750341
},
{
923596
,
72370114
,
92693205
,
93747864
},
{
14824019
,
89739383
,
23314220
,
97997309
},
{
54250060
,
29687169
,
81263643
,
56681873
},
{
45041488
,
14309486
,
49680980
,
66816282
},
{
44139064
,
80559548
,
85034450
,
71218746
},
{
10802915
,
81035362
,
28423537
,
66540884
},
{
87979586
,
23558733
,
26118970
,
12213463
},
{
66574418
,
53485634
,
30079770
,
18491580
},
{
26185991
,
14457896
,
41456841
,
77840540
},
{
91812341
,
45803070
,
29401950
,
69599136
},
{
54484652
,
6628343
,
32013448
,
45948430
},
{
35035481
,
38761908
,
61420130
,
98414735
},
{
10000080
,
10000010
,
10000090
,
63356631
},
{
51916032
,
9418534
,
77585513
,
77585513
},
{
26302522
,
40634253
,
70050374
,
88671720
},
{
44052074
,
37694547
,
81269231
,
10509340
},
{
81275020
,
27660735
,
59640711
,
16947147
},
{
36687247
,
1315120
,
293542
,
48633301
},
{
30230789
,
24621460
,
3846170
,
6276588
},
{
29838323
,
55326322
,
66938505
,
20050865
},
{
93377803
,
83746708
,
6178850
,
52105192
},
{
44095762
,
62279055
,
38411870
,
61740673
},
{
69884162
,
69884162
,
33846209
,
37412656
},
{
85103922
,
12444060
,
12697630
,
29223325
},
{
81843628
,
72892473
,
74519184
,
56119752
},
{
91623717
,
18252559
,
27053506
,
36468556
},
{
47346845
,
47346845
,
47346845
,
48049769
},
{
9126351
,
9126351
,
46239604
,
1357146
},
{
81105204
,
58820853
,
2009101
,
53567095
},
{
42940404
,
42940404
,
5556499
,
39284521
},
{
15180041
,
41175645
,
44968459
,
37267041
},
{
24218047
,
25795273
,
88724332
,
84845628
},
{
95027497
,
95027497
,
90200789
,
99212922
},
{
55010259
,
29021114
,
645087
,
40975574
},
{
65247798
,
92246806
,
28630501
,
25244515
},
{
91449144
,
65277087
,
54455435
,
91662792
},
{
78868776
,
41470137
,
5975022
,
92373006
},
{
21496848
,
29888389
,
47106439
,
46159582
},
{
39695323
,
56105047
,
62476815
,
2948263
},
{
82962242
,
34294855
,
88728507
,
88728507
},
{
36046926
,
36046926
,
99641328
,
99641328
},
{
2273734
,
75878039
,
38667773
,
22617205
},
{
92536468
,
72181263
,
11609969
,
46372010
},
{
12152769
,
12152769
,
88279736
,
66707058
},
{
58569561
,
22174866
,
16759958
,
5050644
},
{
52840267
,
87990236
,
14517422
,
87112784
},
{
24073068
,
97688360
,
54088068
,
62376646
},
{
91299846
,
65017789
,
80577258
,
16849715
},
{
38916526
,
66740005
,
93850652
,
91405870
},
{
7445307
,
62306203
,
86401517
,
34767865
},
{
48372950
,
11755663
,
56980148
,
90173539
},
{
26302107
,
70711847
,
99745551
,
43694650
},
{
91668401
,
39618799
,
11398951
,
39996157
},
{
56308388
,
56308388
,
82496097
,
19891131
},
{
21522601
,
21744288
,
57916305
,
83301414
},
{
66570171
,
65357623
,
4064256
,
91742238
},
{
10441498
,
47435107
,
52860176
,
95492061
},
{
36378044
,
36378044
,
49511705
,
49511705
},
{
71344451
,
71344451
,
71344451
,
96677818
},
{
89631139
,
89631139
,
89631139
,
29432790
},
{
17266660
,
21074344
,
94689635
,
40177746
},
{
39246582
,
3841833
,
72413000
,
70245411
},
{
93717133
,
35950025
,
46659709
,
98555327
},
{
20056760
,
29834183
,
66451379
,
2759860
},
{
24861088
,
15941690
,
51435705
,
26345570
},
{
49823708
,
3428069
,
38601126
,
2602411
},
{
80701178
,
53303460
,
96915510
,
86758915
},
{
56649609
,
1197847
,
2819435
,
61397885
},
{
43694481
,
75064463
,
56585883
,
75782277
},
{
52900000
,
25415052
,
38844957
,
73055622
},
{
18175965
,
34022290
,
81954378
,
5758500
},
{
46647144
,
83477829
,
27918365
,
21254443
},
{
62950604
,
98358303
,
25343017
,
99070951
},
{
52589809
,
35058857
,
6901008
,
40159926
},
{
63977008
,
9742784
,
96363153
,
34492631
},
{
52467217
,
92826944
,
17259470
,
49959355
},
{
23297235
,
91554542
,
66378485
,
74845897
},
{
56839613
,
60549248
,
60549248
,
83446909
},
{
46290741
,
18318842
,
28929131
,
55326322
},
{
79491903
,
43426903
,
43002864
,
42303365
},
{
14878871
,
69764158
,
31383545
,
90508760
},
{
82293134
,
60316373
,
87255382
,
61314842
},
{
96802306
,
67273917
,
24019092
,
24131534
},
{
67120578
,
26082117
,
387282
,
90673413
}
}
function
combo_pack
.
packcheck
()
for
_
,
pack
in
ipairs
(
combo_pack
.
pack
)
do
local
g
=
Group
.
CreateGroup
()
for
_
,
code
in
ipairs
(
pack
)
do
local
card
=
Duel
.
CreateToken
(
0
,
code
)
g
:
AddCard
(
card
)
end
Duel
.
SendtoDeck
(
g
,
nil
,
0
,
REASON_RULE
)
Duel
.
ConfirmCards
(
0
,
g
)
Duel
.
Exile
(
g
,
REASON_RULE
)
end
end
return
combo_pack
\ No newline at end of file
2pick/pick.lua
View file @
57f2fc39
...
...
@@ -26,6 +26,7 @@ local xyz_plain={[0]={},[1]={}}
local
xyz_adv
=
{[
0
]
=
{},[
1
]
=
{}}
local
extra_fixed
=
{
62709239
,
95169481
}
local
combo_pack
=
require
(
"./2pick/combo"
)
function
Auxiliary
.
SplitData
(
inputstr
)
local
t
=
{}
...
...
@@ -291,7 +292,7 @@ function Auxiliary.StartPick(e)
end
end
]]
--
for
i
=
1
,
6
do
for
i
=
1
,
5
do
local
lists
=
{[
1
]
=
main_monster
,[
3
]
=
main_spell
,[
4
]
=
main_trap
}
local
lists_count
=
{[
1
]
=
4
,[
3
]
=
2
,[
4
]
=
2
}
if
i
==
1
or
i
==
2
then
...
...
@@ -304,6 +305,13 @@ function Auxiliary.StartPick(e)
Auxiliary
.
ArbitraryPick
(
p
,
4
,
lists
,
lists_count
)
end
end
-- combo pick
if
not
Auxiliary
.
SinglePick
(
0
,
main
,
0
,
nil
,
nil
,
false
,
false
,
nil
,
combo_pack
.
pack
,
true
)
then
Auxiliary
.
SinglePick
(
0
,
main
,
0
,
nil
,
nil
,
false
,
false
,
nil
,
combo_pack
.
pack
)
end
Auxiliary
.
SinglePick
(
1
,
main
,
0
,
nil
,
nil
,
false
,
false
,
nil
,
combo_pack
.
pack
)
for
tp
,
list
in
pairs
(
extra_sp
)
do
if
tp
~=
TYPE_FUSION
then
for
p
=
0
,
1
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment