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
e7bf145e
Commit
e7bf145e
authored
Apr 26, 2018
by
wind2009
Committed by
GitHub
Apr 26, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lua merge
parent
88261571
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
2pick/pick.lua
2pick/pick.lua
+8
-4
No files found.
2pick/pick.lua
View file @
e7bf145e
...
@@ -4,6 +4,8 @@ io=require("io")
...
@@ -4,6 +4,8 @@ io=require("io")
local
main
=
{[
0
]
=
{},[
1
]
=
{}}
local
main
=
{[
0
]
=
{},[
1
]
=
{}}
local
extra
=
{[
0
]
=
{},[
1
]
=
{}}
local
extra
=
{[
0
]
=
{},[
1
]
=
{}}
local
main_nonadv
=
{[
0
]
=
{},[
1
]
=
{}}
local
main_monster
=
{[
0
]
=
{},[
1
]
=
{}}
local
main_monster
=
{[
0
]
=
{},[
1
]
=
{}}
local
main_spell
=
{[
0
]
=
{},[
1
]
=
{}}
local
main_spell
=
{[
0
]
=
{},[
1
]
=
{}}
local
main_trap
=
{[
0
]
=
{},[
1
]
=
{}}
local
main_trap
=
{[
0
]
=
{},[
1
]
=
{}}
...
@@ -70,11 +72,14 @@ function Auxiliary.LoadDB(p,pool)
...
@@ -70,11 +72,14 @@ function Auxiliary.LoadDB(p,pool)
if
lv
>
4
then
if
lv
>
4
then
table.insert
(
main_adv
[
p
],
code
)
table.insert
(
main_adv
[
p
],
code
)
else
else
table.insert
(
main_plain
[
p
],
code
)
table.insert
(
main_plain
[
p
],
code
)
table.insert
(
main_nonadv
[
p
],
code
)
end
end
elseif
(
cat
&
TYPE_SPELL
)
>
0
then
elseif
(
cat
&
TYPE_SPELL
)
>
0
then
table.insert
(
main_nonadv
[
p
],
code
)
table.insert
(
main_spell
[
p
],
code
)
table.insert
(
main_spell
[
p
],
code
)
elseif
(
cat
&
TYPE_TRAP
)
>
0
then
elseif
(
cat
&
TYPE_TRAP
)
>
0
then
table.insert
(
main_nonadv
[
p
],
code
)
table.insert
(
main_trap
[
p
],
code
)
table.insert
(
main_trap
[
p
],
code
)
end
end
table.insert
(
main
[
p
],
code
)
table.insert
(
main
[
p
],
code
)
...
@@ -149,11 +154,9 @@ function Auxiliary.SinglePick(p,list,count,ex_list,ex_count,copy,lv_diff,fixed)
...
@@ -149,11 +154,9 @@ function Auxiliary.SinglePick(p,list,count,ex_list,ex_count,copy,lv_diff,fixed)
end
end
Duel
.
SendtoDeck
(
g
,
nil
,
0
,
REASON_RULE
)
Duel
.
SendtoDeck
(
g
,
nil
,
0
,
REASON_RULE
)
end
end
local
sg
=
g1
:
Clone
()
sg
:
Merge
(
g2
)
Duel
.
ResetTimeLimit
(
p
,
70
)
Duel
.
ResetTimeLimit
(
p
,
70
)
Duel
.
Hint
(
HINT_SELECTMSG
,
p
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
p
,
HINTMSG_TODECK
)
local
sc
=
sg
:
Select
(
p
,
1
,
1
,
nil
):
GetFirst
(
)
local
sc
=
g1
:
SelectUnselect
(
g2
,
p
,
false
,
false
,
#
g1
,
#
g2
)
local
tg
=
g1
:
IsContains
(
sc
)
and
g1
or
g2
local
tg
=
g1
:
IsContains
(
sc
)
and
g1
or
g2
local
rg
=
g1
:
IsContains
(
sc
)
and
g2
or
g1
local
rg
=
g1
:
IsContains
(
sc
)
and
g2
or
g1
if
sc
:
IsLocation
(
LOCATION_DECK
)
then
if
sc
:
IsLocation
(
LOCATION_DECK
)
then
...
@@ -182,6 +185,7 @@ function Auxiliary.StartPick(e)
...
@@ -182,6 +185,7 @@ function Auxiliary.StartPick(e)
local
ex_list
=
nil
local
ex_list
=
nil
local
ex_count
=
nil
local
ex_count
=
nil
if
i
==
1
then
if
i
==
1
then
list
=
main_nonadv
count
=
2
count
=
2
ex_list
=
main_plain
ex_list
=
main_plain
ex_count
=
2
ex_count
=
2
...
...
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