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
3135a105
Commit
3135a105
authored
Nov 22, 2024
by
Chen Bill
Committed by
GitHub
Nov 22, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
effect: use uint64 flag (#669)
parent
939b4127
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
effect.h
effect.h
+6
-6
libeffect.cpp
libeffect.cpp
+2
-2
No files found.
effect.h
View file @
3135a105
...
...
@@ -20,8 +20,8 @@ class effect;
struct
tevent
;
struct
effect_set
;
struct
effect_set_v
;
enum
effect_flag
:
uint
32
;
enum
effect_flag2
:
uint
32
;
enum
effect_flag
:
uint
64
;
enum
effect_flag2
:
uint
64
;
class
effect
{
public:
...
...
@@ -32,7 +32,6 @@ public:
uint8
effect_owner
{
PLAYER_NONE
};
uint32
description
{
0
};
uint32
code
{
0
};
uint32
flag
[
2
]{};
uint32
id
{
0
};
uint32
type
{
0
};
uint16
copy_id
{
0
};
...
...
@@ -41,17 +40,18 @@ public:
uint16
o_range
{
0
};
uint8
count_limit
{
0
};
uint8
count_limit_max
{
0
};
uint16
status
{
0
};
int32
reset_count
{
0
};
uint32
reset_flag
{
0
};
uint32
count_code
{
0
};
uint64
category
{
0
};
uint64
flag
[
2
]{};
uint32
hint_timing
[
2
]{};
uint32
card_type
{
0
};
uint32
active_type
{
0
};
uint16
active_location
{
0
};
uint16
active_sequence
{
0
};
card
*
active_handler
{
nullptr
};
uint16
status
{
0
};
std
::
vector
<
lua_Integer
>
label
;
int32
label_object
{
0
};
int32
condition
{
0
};
...
...
@@ -178,7 +178,7 @@ constexpr uint32 EFFECT_TYPES_TRIGGER_LIKE = EFFECT_TYPE_ACTIVATE | EFFECT_TYPE_
constexpr
uint32
EFFECT_TYPES_CHAIN_LINK
=
EFFECT_TYPES_TRIGGER_LIKE
|
EFFECT_TYPE_FLIP
|
EFFECT_TYPE_IGNITION
;
//========== Flags ==========
enum
effect_flag
:
uint
32
{
enum
effect_flag
:
uint
64
{
EFFECT_FLAG_INITIAL
=
0x0001
,
EFFECT_FLAG_FUNC_VALUE
=
0x0002
,
EFFECT_FLAG_COUNT_LIMIT
=
0x0004
,
...
...
@@ -212,7 +212,7 @@ enum effect_flag : uint32 {
// EFFECT_FLAG_CVAL_CHECK = 0x40000000,
EFFECT_FLAG_IMMEDIATELY_APPLY
=
0x80000000
,
};
enum
effect_flag2
:
uint
32
{
enum
effect_flag2
:
uint
64
{
EFFECT_FLAG2_REPEAT_UPDATE
=
0x0001
,
EFFECT_FLAG2_COF
=
0x0002
,
EFFECT_FLAG2_WICKED
=
0x0004
,
...
...
libeffect.cpp
View file @
3135a105
...
...
@@ -506,8 +506,8 @@ int32 scriptlib::effect_is_has_property(lua_State *L) {
check_param_count
(
L
,
2
);
check_param
(
L
,
PARAM_TYPE_EFFECT
,
1
);
effect
*
peffect
=
*
(
effect
**
)
lua_touserdata
(
L
,
1
);
uint
32
tflag1
=
(
uint32
)
lua_tointeger
(
L
,
2
);
uint
32
tflag2
=
(
uint32
)
lua_tointeger
(
L
,
3
);
uint
64
tflag1
=
lua_tointeger
(
L
,
2
);
uint
64
tflag2
=
lua_tointeger
(
L
,
3
);
if
(
peffect
&&
(
!
tflag1
||
(
peffect
->
flag
[
0
]
&
tflag1
))
&&
(
!
tflag2
||
(
peffect
->
flag
[
1
]
&
tflag2
)))
lua_pushboolean
(
L
,
1
);
else
...
...
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