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
4098ec72
Commit
4098ec72
authored
Feb 08, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
3e5eb3fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
2pick/pick.lua
2pick/pick.lua
+9
-4
No files found.
2pick/pick.lua
View file @
4098ec72
...
@@ -21,8 +21,7 @@ local extra_sp={
...
@@ -21,8 +21,7 @@ local extra_sp={
local
xyz_plain
=
{[
0
]
=
{},[
1
]
=
{}}
local
xyz_plain
=
{[
0
]
=
{},[
1
]
=
{}}
local
xyz_adv
=
{[
0
]
=
{},[
1
]
=
{}}
local
xyz_adv
=
{[
0
]
=
{},[
1
]
=
{}}
local
extra_fix
=
{
62709239
,
95169481
}
local
extra_fixed
=
{
62709239
,
95169481
}
local
extra_fixpool
=
{[
0
]
=
extra_fix
,[
1
]
=
extra_fix
}
function
Auxiliary
.
SplitData
(
inputstr
)
function
Auxiliary
.
SplitData
(
inputstr
)
local
t
=
{}
local
t
=
{}
...
@@ -94,7 +93,7 @@ function Auxiliary.SaveDeck()
...
@@ -94,7 +93,7 @@ function Auxiliary.SaveDeck()
Duel
.
SavePickDeck
(
p
,
g
)
Duel
.
SavePickDeck
(
p
,
g
)
end
end
end
end
function
Auxiliary
.
SinglePick
(
p
,
list
,
count
,
ex_list
,
ex_count
,
copy
,
lv_diff
)
function
Auxiliary
.
SinglePick
(
p
,
list
,
count
,
ex_list
,
ex_count
,
copy
,
lv_diff
,
fixed
)
if
not
Duel
.
IsPlayerNeedToPickDeck
(
p
)
then
return
end
if
not
Duel
.
IsPlayerNeedToPickDeck
(
p
)
then
return
end
local
g1
=
Group
.
CreateGroup
()
local
g1
=
Group
.
CreateGroup
()
local
g2
=
Group
.
CreateGroup
()
local
g2
=
Group
.
CreateGroup
()
...
@@ -134,6 +133,12 @@ function Auxiliary.SinglePick(p,list,count,ex_list,ex_count,copy,lv_diff)
...
@@ -134,6 +133,12 @@ function Auxiliary.SinglePick(p,list,count,ex_list,ex_count,copy,lv_diff)
end
end
end
end
end
end
if
fixed
then
for
_
,
code
in
ipairs
(
fixed
)
do
local
card
=
Duel
.
CreateToken
(
p
,
code
)
g
:
AddCard
(
card
)
end
end
Duel
.
SendtoDeck
(
g
,
nil
,
0
,
REASON_RULE
)
Duel
.
SendtoDeck
(
g
,
nil
,
0
,
REASON_RULE
)
end
end
local
sg
=
g1
:
Clone
()
local
sg
=
g1
:
Clone
()
...
@@ -205,7 +210,7 @@ function Auxiliary.StartPick(e)
...
@@ -205,7 +210,7 @@ function Auxiliary.StartPick(e)
if
i
==
1
then
if
i
==
1
then
Auxiliary
.
SinglePick
(
p
,
extra
,
4
,
nil
,
nil
,
false
)
Auxiliary
.
SinglePick
(
p
,
extra
,
4
,
nil
,
nil
,
false
)
else
else
Auxiliary
.
SinglePick
(
p
,
extra
,
2
,
extra_fixpool
,
2
,
false
)
Auxiliary
.
SinglePick
(
p
,
extra
,
2
,
nil
,
nil
,
false
,
false
,
extra_fixed
)
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