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
b501c1ef
Commit
b501c1ef
authored
Sep 10, 2022
by
Aephiex
Committed by
GitHub
Sep 10, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused Duel.GetEnvironment (#470)
parent
f875d51e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
25 deletions
+0
-25
libduel.cpp
libduel.cpp
+0
-24
scriptlib.h
scriptlib.h
+0
-1
No files found.
libduel.cpp
View file @
b501c1ef
...
@@ -1132,29 +1132,6 @@ int32 scriptlib::duel_check_timing(lua_State *L) {
...
@@ -1132,29 +1132,6 @@ int32 scriptlib::duel_check_timing(lua_State *L) {
lua_pushboolean(L, (pduel->game_field->core.hint_timing[0]&tm) || (pduel->game_field->core.hint_timing[1]&tm));
lua_pushboolean(L, (pduel->game_field->core.hint_timing[0]&tm) || (pduel->game_field->core.hint_timing[1]&tm));
return 1;
return 1;
}
}
int32
scriptlib
::
duel_get_environment
(
lua_State
*
L
)
{
duel
*
pduel
=
interpreter
::
get_duel_info
(
L
);
effect_set
eset
;
card
*
pcard
=
pduel
->
game_field
->
player
[
0
].
list_szone
[
5
];
int32
code
=
0
;
int32
p
=
2
;
if
(
pcard
==
0
||
pcard
->
is_position
(
POS_FACEDOWN
)
||
!
pcard
->
get_status
(
STATUS_EFFECT_ENABLED
))
pcard
=
pduel
->
game_field
->
player
[
1
].
list_szone
[
5
];
if
(
pcard
==
0
||
pcard
->
is_position
(
POS_FACEDOWN
)
||
!
pcard
->
get_status
(
STATUS_EFFECT_ENABLED
))
{
pduel
->
game_field
->
filter_field_effect
(
EFFECT_CHANGE_ENVIRONMENT
,
&
eset
);
if
(
eset
.
size
())
{
effect
*
peffect
=
eset
.
get_last
();
code
=
peffect
->
get_value
();
p
=
peffect
->
get_handler_player
();
}
}
else
{
code
=
pcard
->
get_code
();
p
=
pcard
->
current
.
controler
;
}
lua_pushinteger
(
L
,
code
);
lua_pushinteger
(
L
,
p
);
return
2
;
}
int32 scriptlib::duel_is_environment(lua_State *L) {
int32 scriptlib::duel_is_environment(lua_State *L) {
check_param_count(L, 1);
check_param_count(L, 1);
uint32 code = (uint32)lua_tointeger(L, 1);
uint32 code = (uint32)lua_tointeger(L, 1);
...
@@ -4648,7 +4625,6 @@ static const struct luaL_Reg duellib[] = {
...
@@ -4648,7 +4625,6 @@ static const struct luaL_Reg duellib[] = {
{ "RaiseEvent", scriptlib::duel_raise_event },
{ "RaiseEvent", scriptlib::duel_raise_event },
{ "RaiseSingleEvent", scriptlib::duel_raise_single_event },
{ "RaiseSingleEvent", scriptlib::duel_raise_single_event },
{ "CheckTiming", scriptlib::duel_check_timing },
{ "CheckTiming", scriptlib::duel_check_timing },
{
"GetEnvironment"
,
scriptlib
::
duel_get_environment
},
{ "IsEnvironment", scriptlib::duel_is_environment },
{ "IsEnvironment", scriptlib::duel_is_environment },
{ "Win", scriptlib::duel_win },
{ "Win", scriptlib::duel_win },
{ "Draw", scriptlib::duel_draw },
{ "Draw", scriptlib::duel_draw },
...
...
scriptlib.h
View file @
b501c1ef
...
@@ -428,7 +428,6 @@ public:
...
@@ -428,7 +428,6 @@ public:
static
int32
duel_raise_event
(
lua_State
*
L
);
static
int32
duel_raise_event
(
lua_State
*
L
);
static
int32
duel_raise_single_event
(
lua_State
*
L
);
static
int32
duel_raise_single_event
(
lua_State
*
L
);
static
int32
duel_check_timing
(
lua_State
*
L
);
static
int32
duel_check_timing
(
lua_State
*
L
);
static
int32
duel_get_environment
(
lua_State
*
L
);
static
int32
duel_is_environment
(
lua_State
*
L
);
static
int32
duel_is_environment
(
lua_State
*
L
);
static
int32
duel_win
(
lua_State
*
L
);
static
int32
duel_win
(
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