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
38c1c912
Commit
38c1c912
authored
Nov 18, 2017
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove rubbish functions
parent
b7f9a0a7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
51 deletions
+0
-51
ocgcore/libcard.cpp
ocgcore/libcard.cpp
+0
-28
ocgcore/libduel.cpp
ocgcore/libduel.cpp
+0
-20
ocgcore/scriptlib.h
ocgcore/scriptlib.h
+0
-3
No files found.
ocgcore/libcard.cpp
View file @
38c1c912
...
...
@@ -26,34 +26,6 @@ int32 scriptlib::card_is_ritual_type(lua_State *L) {
return
1
;
}
//222DIY functions
int32
scriptlib
::
card_get_affecting_effect
(
lua_State
*
L
)
{
check_param_count
(
L
,
2
);
check_param
(
L
,
PARAM_TYPE_CARD
,
1
);
card
*
pcard
=
*
(
card
**
)
lua_touserdata
(
L
,
1
);
uint32
code
=
lua_tointeger
(
L
,
2
);
effect
*
peffect
=
pcard
->
is_affected_by_effect
(
code
,
pcard
);
interpreter
::
effect2value
(
L
,
peffect
);
return
1
;
}
int32
scriptlib
::
card_filter_effect
(
lua_State
*
L
)
{
check_param_count
(
L
,
2
);
check_param
(
L
,
PARAM_TYPE_CARD
,
1
);
card
*
pcard
=
*
(
card
**
)
lua_touserdata
(
L
,
1
);
uint32
code
=
lua_tointeger
(
L
,
2
);
uint8
sort
=
TRUE
;
if
(
lua_gettop
(
L
)
>=
3
)
sort
=
lua_toboolean
(
L
,
3
);
effect_set
eset
;
pcard
->
filter_effect
(
code
,
&
eset
,
sort
);
if
(
eset
.
size
()
<=
0
)
return
0
;
int32
count
=
0
;
for
(
int32
i
=
0
;
i
<
eset
.
size
();
++
i
)
{
interpreter
::
effect2value
(
L
,
eset
[
i
]);
count
=
count
+
1
;
}
return
count
;
}
int32
scriptlib
::
card_set_entity_code
(
lua_State
*
L
)
{
check_param_count
(
L
,
2
);
check_param
(
L
,
PARAM_TYPE_CARD
,
1
);
...
...
ocgcore/libduel.cpp
View file @
38c1c912
...
...
@@ -51,26 +51,6 @@ int32 scriptlib::duel_get_master_rule(lua_State * L) {
lua_pushinteger
(
L
,
pduel
->
game_field
->
core
.
duel_rule
);
return
1
;
}
int32
scriptlib
::
duel_filter_player_effect
(
lua_State
*
L
)
{
check_param_count
(
L
,
2
);
duel
*
pduel
=
interpreter
::
get_duel_info
(
L
);
int32
playerid
=
lua_tointeger
(
L
,
1
);
if
(
playerid
!=
0
&&
playerid
!=
1
)
{
lua_pushnil
(
L
);
return
1
;
}
int32
code
=
lua_tointeger
(
L
,
2
);
effect_set
eset
;
pduel
->
game_field
->
filter_player_effect
(
playerid
,
code
,
&
eset
);
if
(
eset
.
size
()
<=
0
)
return
0
;
int32
count
=
0
;
for
(
int32
i
=
0
;
i
<
eset
.
size
();
++
i
)
{
interpreter
::
effect2value
(
L
,
eset
[
i
]);
count
=
count
+
1
;
}
return
count
;
}
int32
scriptlib
::
duel_read_card
(
lua_State
*
L
)
{
check_param_count
(
L
,
2
);
int32
code
=
lua_tointeger
(
L
,
1
);
...
...
ocgcore/scriptlib.h
View file @
38c1c912
...
...
@@ -19,16 +19,13 @@ public:
//millux
static
int32
card_is_ritual_type
(
lua_State
*
L
);
//222DIY
static
int32
card_get_affecting_effect
(
lua_State
*
L
);
static
int32
card_set_entity_code
(
lua_State
*
L
);
static
int32
card_filter_effect
(
lua_State
*
L
);
static
int32
card_set_card_data
(
lua_State
*
L
);
static
int32
effect_set_owner
(
lua_State
*
L
);
static
int32
effect_get_range
(
lua_State
*
L
);
static
int32
effect_get_count_limit
(
lua_State
*
L
);
static
int32
duel_select_field
(
lua_State
*
L
);
static
int32
duel_get_master_rule
(
lua_State
*
L
);
static
int32
duel_filter_player_effect
(
lua_State
*
L
);
static
int32
duel_read_card
(
lua_State
*
L
);
static
int32
duel_exile
(
lua_State
*
L
);
static
int32
duel_disable_action_check
(
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