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
73f77238
Commit
73f77238
authored
May 08, 2024
by
mercury233
Committed by
GitHub
May 08, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update chain_operation_sort (#585)
parent
0e3d5d19
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
field.cpp
field.cpp
+9
-4
No files found.
field.cpp
View file @
73f77238
...
@@ -16,10 +16,15 @@
...
@@ -16,10 +16,15 @@
int32
field
::
field_used_count
[
32
]
=
{
0
,
1
,
1
,
2
,
1
,
2
,
2
,
3
,
1
,
2
,
2
,
3
,
2
,
3
,
3
,
4
,
1
,
2
,
2
,
3
,
2
,
3
,
3
,
4
,
2
,
3
,
3
,
4
,
3
,
4
,
4
,
5
};
int32
field
::
field_used_count
[
32
]
=
{
0
,
1
,
1
,
2
,
1
,
2
,
2
,
3
,
1
,
2
,
2
,
3
,
2
,
3
,
3
,
4
,
1
,
2
,
2
,
3
,
2
,
3
,
3
,
4
,
2
,
3
,
3
,
4
,
3
,
4
,
4
,
5
};
bool
chain
::
chain_operation_sort
(
const
chain
&
c1
,
const
chain
&
c2
)
{
bool
chain
::
chain_operation_sort
(
const
chain
&
c1
,
const
chain
&
c2
)
{
if
(
c1
.
triggering_effect
&&
c2
.
triggering_effect
&&
c1
.
triggering_effect
->
id
!=
c2
.
triggering_effect
->
id
)
auto
e1
=
c1
.
triggering_effect
;
return
c1
.
triggering_effect
->
id
<
c2
.
triggering_effect
->
id
;
auto
e2
=
c2
.
triggering_effect
;
else
if
(
e1
&&
e2
)
{
return
c1
.
chain_id
<
c2
.
chain_id
;
if
(
e1
->
handler
==
e2
->
handler
&&
e1
->
description
!=
e2
->
description
)
return
e1
->
description
<
e2
->
description
;
if
(
e1
->
id
!=
e2
->
id
)
return
e1
->
id
<
e2
->
id
;
}
return
c1
.
chain_id
<
c2
.
chain_id
;
}
}
void
chain
::
set_triggering_state
(
card
*
pcard
)
{
void
chain
::
set_triggering_state
(
card
*
pcard
)
{
triggering_controler
=
pcard
->
current
.
controler
;
triggering_controler
=
pcard
->
current
.
controler
;
...
...
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