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
12f93a21
Commit
12f93a21
authored
Nov 14, 2024
by
Chen Bill
Committed by
GitHub
Nov 14, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scriptlib: rename to is_effect_has_property (#659)
effect::code is not a bit field.
parent
4047c1a7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
libeffect.cpp
libeffect.cpp
+4
-7
scriptlib.h
scriptlib.h
+1
-1
No files found.
libeffect.cpp
View file @
12f93a21
...
...
@@ -42,7 +42,7 @@ int32 scriptlib::get_effect_property(lua_State* L, effect_member type) {
lua_pushinteger
(
L
,
value
);
return
1
;
}
int32
scriptlib
::
is_effect_property
(
lua_State
*
L
,
effect_member
type
)
{
int32
scriptlib
::
is_effect_
has_
property
(
lua_State
*
L
,
effect_member
type
)
{
check_param_count
(
L
,
2
);
check_param
(
L
,
PARAM_TYPE_EFFECT
,
1
);
effect
*
peffect
=
*
(
effect
**
)
lua_touserdata
(
L
,
1
);
...
...
@@ -52,9 +52,6 @@ int32 scriptlib::is_effect_property(lua_State* L, effect_member type) {
case
MEMBER_CATEGORY
:
value
=
peffect
->
category
;
break
;
case
MEMBER_CODE
:
value
=
peffect
->
code
;
break
;
case
MEMBER_RANGE
:
value
=
peffect
->
range
;
break
;
...
...
@@ -519,13 +516,13 @@ int32 scriptlib::effect_is_has_property(lua_State *L) {
return
1
;
}
int32
scriptlib
::
effect_is_has_category
(
lua_State
*
L
)
{
return
is_effect_property
(
L
,
MEMBER_CATEGORY
);
return
is_effect_
has_
property
(
L
,
MEMBER_CATEGORY
);
}
int32
scriptlib
::
effect_is_has_type
(
lua_State
*
L
)
{
return
is_effect_property
(
L
,
MEMBER_TYPE
);
return
is_effect_
has_
property
(
L
,
MEMBER_TYPE
);
}
int32
scriptlib
::
effect_is_has_range
(
lua_State
*
L
)
{
return
is_effect_property
(
L
,
MEMBER_RANGE
);
return
is_effect_
has_
property
(
L
,
MEMBER_RANGE
);
}
int32
scriptlib
::
effect_is_activatable
(
lua_State
*
L
)
{
check_param_count
(
L
,
2
);
...
...
scriptlib.h
View file @
12f93a21
...
...
@@ -310,7 +310,7 @@ public:
//Effect functions
static
int32
get_effect_property
(
lua_State
*
L
,
effect_member
type
);
static
int32
is_effect_property
(
lua_State
*
L
,
effect_member
type
);
static
int32
is_effect_
has_
property
(
lua_State
*
L
,
effect_member
type
);
static
int32
effect_new
(
lua_State
*
L
);
static
int32
effect_newex
(
lua_State
*
L
);
static
int32
effect_clone
(
lua_State
*
L
);
...
...
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