Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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
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
MyCard
ygopro-2pick
Commits
353fec7c
Commit
353fec7c
authored
Jan 11, 2018
by
Momobako
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update_core
parent
54355d54
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
4 deletions
+12
-4
ocgcore/effect.cpp
ocgcore/effect.cpp
+1
-1
ocgcore/effect.h
ocgcore/effect.h
+2
-1
ocgcore/interpreter.cpp
ocgcore/interpreter.cpp
+1
-0
ocgcore/libeffect.cpp
ocgcore/libeffect.cpp
+8
-2
No files found.
ocgcore/effect.cpp
View file @
353fec7c
...
...
@@ -749,5 +749,5 @@ int32 effect::in_range(const chain& ch) {
void
effect
::
set_activate_location
()
{
card
*
phandler
=
get_handler
();
active_location
=
phandler
->
current
.
location
;
//
active_sequence = phandler->current.sequence;
active_sequence
=
phandler
->
current
.
sequence
;
}
ocgcore/effect.h
View file @
353fec7c
...
...
@@ -51,7 +51,8 @@ public:
uint32
hint_timing
[
2
];
uint32
card_type
;
uint32
active_type
;
uint32
active_location
;
uint16
active_location
;
uint16
active_sequence
;
card
*
active_handler
;
uint16
status
;
uint32
label
;
...
...
ocgcore/interpreter.cpp
View file @
353fec7c
...
...
@@ -315,6 +315,7 @@ static const struct luaL_Reg effectlib[] = {
{
"IsActivatable"
,
scriptlib
::
effect_is_activatable
},
{
"IsActivated"
,
scriptlib
::
effect_is_activated
},
{
"GetActivateLocation"
,
scriptlib
::
effect_get_activate_location
},
{
"GetActivateSequence"
,
scriptlib
::
effect_get_activate_sequence
},
{
NULL
,
NULL
}
};
...
...
ocgcore/libeffect.cpp
View file @
353fec7c
...
...
@@ -516,11 +516,17 @@ int32 scriptlib::effect_is_activated(lua_State * L) {
lua_pushboolean
(
L
,
(
peffect
->
type
&
0x7f0
));
return
1
;
}
int32
scriptlib
::
effect_get_activate_location
(
lua_State
*
L
)
{
check_param_count
(
L
,
1
);
check_param
(
L
,
PARAM_TYPE_EFFECT
,
1
);
effect
*
peffect
=
*
(
effect
**
)
lua_touserdata
(
L
,
1
);
lua_pushinteger
(
L
,
peffect
->
active_location
);
return
1
;
}
\ No newline at end of file
}
int32
scriptlib
::
effect_get_activate_sequence
(
lua_State
*
L
)
{
check_param_count
(
L
,
1
);
check_param
(
L
,
PARAM_TYPE_EFFECT
,
1
);
effect
*
peffect
=
*
(
effect
**
)
lua_touserdata
(
L
,
1
);
lua_pushinteger
(
L
,
peffect
->
active_sequence
);
return
1
;
}
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