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
bab7d057
Commit
bab7d057
authored
Aug 02, 2023
by
Chen Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update effect::get_code_type()
parent
68bcbce0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
effect.cpp
effect.cpp
+1
-1
effect.h
effect.h
+1
-1
No files found.
effect.cpp
View file @
bab7d057
...
@@ -849,7 +849,7 @@ uint32 effect::get_active_type() {
...
@@ -849,7 +849,7 @@ uint32 effect::get_active_type() {
}
}
int32
effect
::
get_code_type
()
{
int32
effect
::
get_code_type
()
{
// start from the highest bit
// start from the highest bit
if
(
code
&
EVENT_CUSTOM
)
if
(
code
&
0xf0000000
)
return
CODE_CUSTOM
;
return
CODE_CUSTOM
;
else
if
(
code
&
0xf0000
)
else
if
(
code
&
0xf0000
)
return
CODE_COUNTER
;
return
CODE_COUNTER
;
...
...
effect.h
View file @
bab7d057
...
@@ -553,7 +553,7 @@ inline effect_flag operator|(effect_flag flag1, effect_flag flag2)
...
@@ -553,7 +553,7 @@ inline effect_flag operator|(effect_flag flag1, effect_flag flag2)
#define HEADER_FLAG_EFFECT 0x20000000
#define HEADER_FLAG_EFFECT 0x20000000
#define MAX_CARD_ID 0xfffffff
#define MAX_CARD_ID 0xfffffff
// The type of e
vent in
code
// The type of e
ffect
code
#define CODE_CUSTOM 1 // header + id (28 bits)
#define CODE_CUSTOM 1 // header + id (28 bits)
#define CODE_COUNTER 2 // header + counter_id (16 bits)
#define CODE_COUNTER 2 // header + counter_id (16 bits)
#define CODE_PHASE 3 // header + phase_id (12 bits)
#define CODE_PHASE 3 // header + phase_id (12 bits)
...
...
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