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
b1f96ae6
Commit
b1f96ae6
authored
Dec 01, 2023
by
未闻皂名
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2023/12/1 添加多选一代价的条件
parent
cd9757f5
Pipeline
#24217
passed with stages
in 16 minutes and 10 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
89 additions
and
83 deletions
+89
-83
script/RDCondition.lua
script/RDCondition.lua
+5
-0
script/RDLegend.lua
script/RDLegend.lua
+84
-83
No files found.
script/RDCondition.lua
View file @
b1f96ae6
...
...
@@ -187,3 +187,8 @@ end
function
RushDuel
.
IsOperatedGroupExists
(
filter
,
count
,
expect
)
return
filter
==
nil
or
Duel
.
GetOperatedGroup
():
IsExists
(
filter
,
count
,
expect
)
end
-- 条件: 卡片组全部满足条件与数量
function
RushDuel
.
GroupAllCount
(
group
,
filter
,
count
,
...
)
return
group
:
GetCount
()
==
count
and
group
:
FilterCount
(
filter
,
nil
,
...
)
==
count
end
\ No newline at end of file
script/RDLegend.lua
View file @
b1f96ae6
...
...
@@ -23,7 +23,9 @@ RushDuel.LegendCodes = {
-- 初始化传说卡
function
RushDuel
.
InitLegend
()
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
0
,
0xff
,
0xff
,
nil
,
LEGEND_MONSTER
,
LEGEND_SPELL
,
LEGEND_TRAP
)
g
:
ForEach
(
function
(
c
)
g
:
ForEach
(
RushDuel
.
InitLegendCard
)
end
function
RushDuel
.
InitLegendCard
(
c
)
local
code
=
RushDuel
.
GetLegendCode
(
c
:
GetOriginalCode
())
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
@@ -34,7 +36,6 @@ function RushDuel.InitLegend()
c
:
RegisterEffect
(
e1
,
true
)
-- 修改卡牌数据 (删除同名卡:传说卡)
c
:
SetEntityCode
(
code
,
true
)
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