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
6c714745
Commit
6c714745
authored
Feb 15, 2018
by
wind2009
Committed by
GitHub
Feb 15, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new pick rule
parent
26d7007e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
2pick/pick.lua
2pick/pick.lua
+11
-1
No files found.
2pick/pick.lua
View file @
6c714745
...
...
@@ -11,6 +11,8 @@ local main_trap={[0]={},[1]={}}
local
main_plain
=
{[
0
]
=
{},[
1
]
=
{}}
local
main_adv
=
{[
0
]
=
{},[
1
]
=
{}}
local
main_new
=
{[
0
]
=
{},[
1
]
=
{}}
local
extra_sp
=
{
[
TYPE_FUSION
]
=
{[
0
]
=
{},[
1
]
=
{}},
[
TYPE_SYNCHRO
]
=
{[
0
]
=
{},[
1
]
=
{}},
...
...
@@ -40,6 +42,7 @@ function Auxiliary.LoadDB(p,pool)
for
line
in
file
:
lines
()
do
local
data
=
Auxiliary
.
SplitData
(
line
)
local
code
=
data
[
1
]
local
ot
=
data
[
2
]
local
cat
=
data
[
5
]
local
lv
=
data
[
8
]
&
0xff
if
(
cat
&
TYPE_FUSION
+
TYPE_SYNCHRO
+
TYPE_XYZ
+
TYPE_LINK
)
>
0
then
...
...
@@ -57,6 +60,9 @@ function Auxiliary.LoadDB(p,pool)
end
end
elseif
(
cat
&
TYPE_TOKEN
)
==
0
then
if
(
ot
==
4
)
then
table.insert
(
main_new
[
p
],
code
)
end
if
(
cat
&
TYPE_MONSTER
)
>
0
then
table.insert
(
main_monster
[
p
],
code
)
if
lv
>
4
then
...
...
@@ -173,7 +179,11 @@ function Auxiliary.StartPick(e)
local
count
=
4
local
ex_list
=
nil
local
ex_count
=
nil
if
i
<
3
then
if
i
==
1
then
count
=
3
ex_list
=
main_new
ex_count
=
1
elseif
i
<
4
then
count
=
3
ex_list
=
main_adv
ex_count
=
1
...
...
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