Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
YGOPRO-520DIY
ygopro
Commits
ce3d1169
Commit
ce3d1169
authored
Apr 15, 2015
by
salix5
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1261 from DailyShana/patch-3
get original pendulum scale
parents
c2459915
93bca633
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
0 deletions
+24
-0
ocgcore/interpreter.cpp
ocgcore/interpreter.cpp
+2
-0
ocgcore/libcard.cpp
ocgcore/libcard.cpp
+20
-0
ocgcore/scriptlib.h
ocgcore/scriptlib.h
+2
-0
No files found.
ocgcore/interpreter.cpp
View file @
ce3d1169
...
...
@@ -29,7 +29,9 @@ static const struct luaL_Reg cardlib[] = {
{
"GetOriginalRank"
,
scriptlib
::
card_get_origin_rank
},
{
"IsXyzLevel"
,
scriptlib
::
card_is_xyz_level
},
{
"GetLeftScale"
,
scriptlib
::
card_get_lscale
},
{
"GetOriginalLeftScale"
,
scriptlib
::
card_get_origin_lscale
},
{
"GetRightScale"
,
scriptlib
::
card_get_rscale
},
{
"GetOriginalRightScale"
,
scriptlib
::
card_get_origin_rscale
},
{
"GetAttribute"
,
scriptlib
::
card_get_attribute
},
{
"GetOriginalAttribute"
,
scriptlib
::
card_get_origin_attribute
},
{
"GetRace"
,
scriptlib
::
card_get_race
},
...
...
ocgcore/libcard.cpp
View file @
ce3d1169
...
...
@@ -128,6 +128,16 @@ int32 scriptlib::card_get_lscale(lua_State *L) {
lua_pushinteger
(
L
,
pcard
->
get_lscale
());
return
1
;
}
int32
scriptlib
::
card_get_origin_lscale
(
lua_State
*
L
)
{
check_param_count
(
L
,
1
);
check_param
(
L
,
PARAM_TYPE_CARD
,
1
);
card
*
pcard
=
*
(
card
**
)
lua_touserdata
(
L
,
1
);
if
(
pcard
->
status
&
STATUS_NO_LEVEL
)
lua_pushinteger
(
L
,
0
);
else
lua_pushinteger
(
L
,
pcard
->
data
.
lscale
);
return
1
;
}
int32
scriptlib
::
card_get_rscale
(
lua_State
*
L
)
{
check_param_count
(
L
,
1
);
check_param
(
L
,
PARAM_TYPE_CARD
,
1
);
...
...
@@ -135,6 +145,16 @@ int32 scriptlib::card_get_rscale(lua_State *L) {
lua_pushinteger
(
L
,
pcard
->
get_rscale
());
return
1
;
}
int32
scriptlib
::
card_get_origin_rscale
(
lua_State
*
L
)
{
check_param_count
(
L
,
1
);
check_param
(
L
,
PARAM_TYPE_CARD
,
1
);
card
*
pcard
=
*
(
card
**
)
lua_touserdata
(
L
,
1
);
if
(
pcard
->
status
&
STATUS_NO_LEVEL
)
lua_pushinteger
(
L
,
0
);
else
lua_pushinteger
(
L
,
pcard
->
data
.
rscale
);
return
1
;
}
int32
scriptlib
::
card_get_attribute
(
lua_State
*
L
)
{
check_param_count
(
L
,
1
);
check_param
(
L
,
PARAM_TYPE_CARD
,
1
);
...
...
ocgcore/scriptlib.h
View file @
ce3d1169
...
...
@@ -31,7 +31,9 @@ public:
static
int32
card_get_origin_rank
(
lua_State
*
L
);
static
int32
card_is_xyz_level
(
lua_State
*
L
);
static
int32
card_get_lscale
(
lua_State
*
L
);
static
int32
card_get_origin_lscale
(
lua_State
*
L
);
static
int32
card_get_rscale
(
lua_State
*
L
);
static
int32
card_get_origin_rscale
(
lua_State
*
L
);
static
int32
card_get_attribute
(
lua_State
*
L
);
static
int32
card_get_origin_attribute
(
lua_State
*
L
);
static
int32
card_get_race
(
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