Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-rush-duel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
5
Issues
5
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
List
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-rush-duel
Commits
41867810
Commit
41867810
authored
Dec 28, 2024
by
未闻皂名
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024/12/28 可选的融合召唤、仪式召唤添加取消按钮
parent
5c83a7c6
Pipeline
#32130
passed with stages
in 7 minutes and 27 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
6 deletions
+34
-6
script/RDFusion.lua
script/RDFusion.lua
+17
-3
script/RDRitual.lua
script/RDRitual.lua
+17
-3
No files found.
script/RDFusion.lua
View file @
41867810
...
...
@@ -375,14 +375,24 @@ function RushDuel.GetFusionSummonData(e, tp, matfilter, spfilter, exfilter, s_ra
return
fusionable
,
list
,
chkf
,
gc
end
-- 融合召唤 - 进行融合召唤
function
RushDuel
.
ExecuteFusionSummon
(
e
,
tp
,
list
,
chkf
,
gc
,
mat_move
)
function
RushDuel
.
ExecuteFusionSummon
(
e
,
tp
,
list
,
chkf
,
gc
,
mat_move
,
cancelable
)
local
sg
=
Group
.
CreateGroup
()
for
_
,
data
in
ipairs
(
list
)
do
sg
:
Merge
(
data
[
3
])
end
::
cancel
::
local
fc
=
nil
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
fc
=
sg
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
if
cancelable
then
local
g
=
RushDuel
.
SelectGroup
(
tp
,
sg
,
1
,
1
)
if
not
g
then
return
nil
else
fc
=
g
:
GetFirst
()
end
else
fc
=
sg
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
end
local
options
=
{}
for
_
,
data
in
ipairs
(
list
)
do
local
ce
,
sg
=
data
[
1
],
data
[
3
]
...
...
@@ -498,11 +508,15 @@ function RushDuel.CanFusionSummon(desc, matfilter, spfilter, exfilter, s_range,
RushDuel
.
FusionExtraChecker
=
RushDuel
.
FusionCheckLocation
(
e
,
self_leave
,
mat_check
)
local
fusionable
,
list
,
chkf
,
gc
=
RushDuel
.
GetFusionSummonData
(
e
,
tp
,
matfilter
,
spfilter
,
exfilter
,
s_range
,
o_range
,
include
,
leave
,
nil
,
e
)
local
fc
=
nil
::
cancel
::
if
fusionable
and
Duel
.
SelectYesNo
(
tp
,
desc
)
then
if
break_effect
then
Duel
.
BreakEffect
()
end
fc
=
RushDuel
.
ExecuteFusionSummon
(
e
,
tp
,
list
,
chkf
,
gc
,
mat_move
)
fc
=
RushDuel
.
ExecuteFusionSummon
(
e
,
tp
,
list
,
chkf
,
gc
,
mat_move
,
true
)
if
not
fc
then
goto
cancel
end
end
RushDuel
.
FusionExtraChecker
=
nil
return
fc
...
...
script/RDRitual.lua
View file @
41867810
...
...
@@ -177,14 +177,24 @@ function RushDuel.GetRitualSummonData(e, tp, type, matfilter, spfilter, exfilter
return
ritualable
,
list
,
chkf
,
gc
end
-- 仪式召唤 - 进行仪式召唤
function
RushDuel
.
ExecuteRitualSummon
(
e
,
tp
,
type
,
list
,
chkf
,
gc
,
mat_move
)
function
RushDuel
.
ExecuteRitualSummon
(
e
,
tp
,
type
,
list
,
chkf
,
gc
,
mat_move
,
cancelable
)
local
sg
=
Group
.
CreateGroup
()
for
_
,
data
in
ipairs
(
list
)
do
sg
:
Merge
(
data
[
3
])
end
::
cancel
::
local
rc
=
nil
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
rc
=
sg
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
if
cancelable
then
local
g
=
RushDuel
.
SelectGroup
(
tp
,
sg
,
1
,
1
)
if
not
g
then
return
nil
else
rc
=
g
:
GetFirst
()
end
else
rc
=
sg
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
end
local
options
=
{}
for
_
,
data
in
ipairs
(
list
)
do
local
ce
,
sg
=
data
[
1
],
data
[
3
]
...
...
@@ -303,11 +313,15 @@ function RushDuel.CanRitualSummon(desc, type, matfilter, spfilter, exfilter, s_r
RushDuel
.
RitualExtraChecker
=
RushDuel
.
RitualCheckLocation
(
e
,
self_leave
,
mat_check
)
local
ritualable
,
list
,
chkf
,
gc
=
RushDuel
.
GetRitualSummonData
(
e
,
tp
,
type
,
matfilter
,
spfilter
,
exfilter
,
s_range
,
o_range
,
include
,
leave
,
nil
,
e
)
local
rc
=
nil
::
cancel
::
if
ritualable
and
Duel
.
SelectYesNo
(
tp
,
desc
)
then
if
break_effect
then
Duel
.
BreakEffect
()
end
rc
=
RushDuel
.
ExecuteRitualSummon
(
e
,
tp
,
type
,
list
,
chkf
,
gc
,
mat_move
)
rc
=
RushDuel
.
ExecuteRitualSummon
(
e
,
tp
,
type
,
list
,
chkf
,
gc
,
mat_move
,
true
)
if
not
rc
then
goto
cancel
end
end
RushDuel
.
RitualExtraChecker
=
nil
return
rc
...
...
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