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
45a7edfe
Commit
45a7edfe
authored
Dec 22, 2017
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/moecube/ygopro-2pick
parents
6e4ed055
0dc19093
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
2pick/pick.lua
2pick/pick.lua
+20
-1
No files found.
2pick/pick.lua
View file @
45a7edfe
...
@@ -4,6 +4,10 @@ io=require("io")
...
@@ -4,6 +4,10 @@ io=require("io")
local
main
=
{}
local
main
=
{}
local
extra
=
{}
local
extra
=
{}
local
main_monster
=
{}
local
main_spell
=
{}
local
main_trap
=
{}
local
forbidden_check
=
{}
local
forbidden_check
=
{}
local
limited_check
=
{}
local
limited_check
=
{}
local
semi_limited_check
=
{}
local
semi_limited_check
=
{}
...
@@ -47,6 +51,13 @@ function Auxiliary.LoadDB()
...
@@ -47,6 +51,13 @@ function Auxiliary.LoadDB()
if
(
cat
&
TYPE_FUSION
+
TYPE_SYNCHRO
+
TYPE_XYZ
+
TYPE_LINK
)
>
0
then
if
(
cat
&
TYPE_FUSION
+
TYPE_SYNCHRO
+
TYPE_XYZ
+
TYPE_LINK
)
>
0
then
table.insert
(
extra
,
code
)
table.insert
(
extra
,
code
)
elseif
(
cat
&
TYPE_TOKEN
)
==
0
then
elseif
(
cat
&
TYPE_TOKEN
)
==
0
then
if
(
cat
&
TYPE_MONSTER
)
>
0
then
table.insert
(
main_monster
,
code
)
elseif
(
cat
&
TYPE_SPELL
)
>
0
then
table.insert
(
main_spell
,
code
)
elseif
(
cat
&
TYPE_TRAP
)
>
0
then
table.insert
(
main_trap
,
code
)
end
table.insert
(
main
,
code
)
table.insert
(
main
,
code
)
if
forbidden_check
[
code
]
then
if
forbidden_check
[
code
]
then
table.insert
(
forbidden
,
code
)
table.insert
(
forbidden
,
code
)
...
@@ -94,8 +105,16 @@ function Auxiliary.StartPick(e)
...
@@ -94,8 +105,16 @@ function Auxiliary.StartPick(e)
list=forbidden
list=forbidden
count=1
count=1
end]]
end]]
local
list
=
main_monster
if
i
==
7
or
i
==
8
then
list
=
main_spell
elseif
i
==
9
or
i
==
10
then
list
=
main_trap
end
for
p
=
0
,
1
do
for
p
=
0
,
1
do
Auxiliary
.
SinglePick
(
p
,
main
,
4
)
Auxiliary
.
SinglePick
(
p
,
list
,
4
)
--Auxiliary.SinglePick(p,main,4)
end
end
end
end
for
i
=
1
,
5
do
for
i
=
1
,
5
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