Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-core
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
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
nanahira
ygopro-core
Commits
3b507f45
Commit
3b507f45
authored
May 02, 2024
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add unique id as value
parent
49c5cfdd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
processor.cpp
processor.cpp
+24
-0
No files found.
processor.cpp
View file @
3b507f45
...
@@ -4154,6 +4154,30 @@ int32 field::add_chain(uint16 step) {
...
@@ -4154,6 +4154,30 @@ int32 field::add_chain(uint16 step) {
if
(
clit
.
required_handorset_effects
.
size
()
==
1
)
{
if
(
clit
.
required_handorset_effects
.
size
()
==
1
)
{
returns
.
ivalue
[
0
]
=
0
;
returns
.
ivalue
[
0
]
=
0
;
return
FALSE
;
return
FALSE
;
}
else
{
// check if there's only one type of ceffects
auto
peffect
=
clit
.
triggering_effect
;
auto
playerid
=
clit
.
triggering_player
;
int32
ceffect_unique_id
=
0
;
for
(
int32
i
=
0
;
i
<
clit
.
required_handorset_effects
.
size
();
++
i
)
{
pduel
->
lua
->
add_param
(
peffect
,
PARAM_TYPE_EFFECT
);
pduel
->
lua
->
add_param
(
playerid
,
PARAM_TYPE_INT
);
auto
id
=
clit
.
required_handorset_effects
[
i
]
->
get_value
(
2
);
if
(
id
)
{
if
(
!
ceffect_unique_id
)
{
ceffect_unique_id
=
id
;
}
else
if
(
ceffect_unique_id
!=
id
)
{
// there are more than one types, so we can't skip
ceffect_unique_id
=
0
;
break
;
}
}
}
if
(
ceffect_unique_id
)
{
// all ceffects are the same type, so skip asking
returns
.
ivalue
[
0
]
=
0
;
return
FALSE
;
}
}
}
core
.
select_options
.
clear
();
core
.
select_options
.
clear
();
for
(
int32
i
=
0
;
i
<
clit
.
required_handorset_effects
.
size
();
++
i
)
{
for
(
int32
i
=
0
;
i
<
clit
.
required_handorset_effects
.
size
();
++
i
)
{
...
...
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