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
e9edc2c0
Commit
e9edc2c0
authored
Jun 25, 2024
by
Chen Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add effect::get_integer_value
parent
01016149
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
effect.cpp
effect.cpp
+3
-0
effect.h
effect.h
+1
-0
No files found.
effect.cpp
View file @
e9edc2c0
...
...
@@ -738,6 +738,9 @@ void effect::get_value(effect* peffect, uint32 extraargs, std::vector<int32>* re
result
->
push_back
((
int32
)
value
);
}
}
int32
effect
::
get_integer_value
()
{
return
is_flag
(
EFFECT_FLAG_FUNC_VALUE
)
?
0
:
value
;
}
int32
effect
::
check_value_condition
(
uint32
extraargs
)
{
if
(
is_flag
(
EFFECT_FLAG_FUNC_VALUE
))
{
pduel
->
lua
->
add_param
(
this
,
PARAM_TYPE_EFFECT
,
TRUE
);
...
...
effect.h
View file @
e9edc2c0
...
...
@@ -97,6 +97,7 @@ public:
void
get_value
(
uint32
extraargs
,
std
::
vector
<
int32
>*
result
);
void
get_value
(
card
*
pcard
,
uint32
extraargs
,
std
::
vector
<
int32
>*
result
);
void
get_value
(
effect
*
peffect
,
uint32
extraargs
,
std
::
vector
<
int32
>*
result
);
int32
get_integer_value
();
int32
check_value_condition
(
uint32
extraargs
=
0
);
void
*
get_label_object
();
int32
get_speed
();
...
...
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