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
1edb0dae
Commit
1edb0dae
authored
Dec 09, 2017
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change_pick_rule
parent
9b9f64ac
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
10 deletions
+17
-10
expansions/pick.lua
expansions/pick.lua
+17
-10
No files found.
expansions/pick.lua
View file @
1edb0dae
...
...
@@ -58,11 +58,11 @@ function Auxiliary.LoadDB()
end
end
end
function
Auxiliary
.
SinglePick
(
p
,
list
)
function
Auxiliary
.
SinglePick
(
p
,
list
,
count
)
local
g1
=
Group
.
CreateGroup
()
local
g2
=
Group
.
CreateGroup
()
for
_
,
g
in
ipairs
({
g1
,
g2
})
do
for
i
=
1
,
2
do
for
i
=
1
,
count
do
local
code
=
list
[
math.random
(
#
list
)]
g
:
AddCard
(
Duel
.
CreateToken
(
p
,
code
))
end
...
...
@@ -82,22 +82,29 @@ function Auxiliary.StartPick(e)
Duel
.
Exile
(
g
,
REASON_RULE
)
for
i
=
1
,
5
do
for
p
=
0
,
1
do
Auxiliary
.
SinglePick
(
p
,
extra
)
Auxiliary
.
SinglePick
(
p
,
extra
,
4
)
end
end
for
i
=
1
,
1
0
do
for
i
=
1
,
1
1
do
local
list
=
main
if
i
==
7
then
list
=
semi_limited
elseif
i
==
8
or
i
==
9
then
list
=
limited
elseif
i
==
10
then
list
=
forbidden
end
local
count
=
4
if
i
==
9
then
list
=
semi_limited
elseif
i
==
10
then
list
=
limited
count
=
3
elseif
i
==
11
then
list
=
forbidden
count
=
1
end
for
p
=
0
,
1
do
Auxiliary
.
SinglePick
(
p
,
list
)
Auxiliary
.
SinglePick
(
p
,
list
,
count
)
end
end
Duel
.
ShuffleDeck
(
0
)
Duel
.
ShuffleDeck
(
1
)
Duel
.
Draw
(
0
,
4
,
REASON_RULE
)
Duel
.
Draw
(
1
,
4
,
REASON_RULE
)
Duel
.
Draw
(
0
,
5
,
REASON_RULE
)
Duel
.
Draw
(
1
,
5
,
REASON_RULE
)
e
:
Reset
()
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