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
6c019050
Commit
6c019050
authored
Feb 08, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update xyz pick
parent
c7b8764b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
2pick/pick.lua
2pick/pick.lua
+15
-1
No files found.
2pick/pick.lua
View file @
6c019050
...
@@ -18,6 +18,9 @@ local extra_sp={
...
@@ -18,6 +18,9 @@ local extra_sp={
[
TYPE_LINK
]
=
{[
0
]
=
{},[
1
]
=
{}},
[
TYPE_LINK
]
=
{[
0
]
=
{},[
1
]
=
{}},
}
}
local
xyz_plain
=
{[
0
]
=
{},[
1
]
=
{}}
local
xyz_adv
=
{[
0
]
=
{},[
1
]
=
{}}
function
Auxiliary
.
SplitData
(
inputstr
)
function
Auxiliary
.
SplitData
(
inputstr
)
local
t
=
{}
local
t
=
{}
for
str
in
string.gmatch
(
inputstr
,
"([^|]+)"
)
do
for
str
in
string.gmatch
(
inputstr
,
"([^|]+)"
)
do
...
@@ -44,6 +47,13 @@ function Auxiliary.LoadDB(p,pool)
...
@@ -44,6 +47,13 @@ function Auxiliary.LoadDB(p,pool)
table.insert
(
list
[
p
],
code
)
table.insert
(
list
[
p
],
code
)
end
end
end
end
if
(
cat
&
TYPE_XYZ
)
>
0
then
if
lv
>
4
then
table.insert
(
xyz_adv
[
p
],
code
)
else
table.insert
(
xyz_plain
[
p
],
code
)
end
end
elseif
(
cat
&
TYPE_TOKEN
)
==
0
then
elseif
(
cat
&
TYPE_TOKEN
)
==
0
then
if
(
cat
&
TYPE_MONSTER
)
>
0
then
if
(
cat
&
TYPE_MONSTER
)
>
0
then
table.insert
(
main_monster
[
p
],
code
)
table.insert
(
main_monster
[
p
],
code
)
...
@@ -176,7 +186,11 @@ function Auxiliary.StartPick(e)
...
@@ -176,7 +186,11 @@ function Auxiliary.StartPick(e)
for
tp
,
list
in
pairs
(
extra_sp
)
do
for
tp
,
list
in
pairs
(
extra_sp
)
do
if
tp
~=
TYPE_FUSION
then
if
tp
~=
TYPE_FUSION
then
for
p
=
0
,
1
do
for
p
=
0
,
1
do
Auxiliary
.
SinglePick
(
p
,
list
,
4
,
nil
,
nil
,
false
)
if
tp
==
TYPE_XYZ
then
Auxiliary
.
SinglePick
(
p
,
xyz_plain
,
3
,
xyz_adv
,
1
,
false
)
else
Auxiliary
.
SinglePick
(
p
,
list
,
4
,
nil
,
nil
,
false
)
end
end
end
end
end
end
end
...
...
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