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
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-core
Commits
c5f322b3
Commit
c5f322b3
authored
Aug 24, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:ZisIsNotZis/ygopro-core
parents
4340adc9
451025a9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
0 deletions
+7
-0
interpreter.cpp
interpreter.cpp
+1
-0
libduel.cpp
libduel.cpp
+5
-0
scriptlib.h
scriptlib.h
+1
-0
No files found.
interpreter.cpp
View file @
c5f322b3
...
...
@@ -558,6 +558,7 @@ static const struct luaL_Reg duellib[] = {
{
"SelectOption"
,
scriptlib
::
duel_select_option
},
{
"SelectSequence"
,
scriptlib
::
duel_select_sequence
},
{
"SelectPosition"
,
scriptlib
::
duel_select_position
},
{
"GetDisableField"
,
scriptlib
::
duel_get_disable_field
},
{
"SelectDisableField"
,
scriptlib
::
duel_select_disable_field
},
{
"AnnounceRace"
,
scriptlib
::
duel_announce_race
},
{
"AnnounceAttribute"
,
scriptlib
::
duel_announce_attribute
},
...
...
libduel.cpp
View file @
c5f322b3
...
...
@@ -3363,6 +3363,11 @@ int32 scriptlib::duel_select_position(lua_State * L) {
pduel
->
game_field
->
add_process
(
PROCESSOR_SELECT_POSITION_S
,
0
,
0
,
0
,
playerid
+
(
positions
<<
16
),
pcard
->
data
.
code
);
return
lua_yield
(
L
,
0
);
}
int32
scriptlib
::
duel_get_disable_field
(
lua_State
*
L
){
duel
*
pduel
=
interpreter
::
get_duel_info
(
L
);
lua_pushinteger
(
L
,
pduel
->
game_field
->
player
[
0
].
disabled_location
+
(
pduel
->
game_field
->
player
[
1
].
disabled_location
<<
16
));
return
1
;
}
int32
scriptlib
::
duel_select_disable_field
(
lua_State
*
L
)
{
check_action_permission
(
L
);
check_param_count
(
L
,
5
);
...
...
scriptlib.h
View file @
c5f322b3
...
...
@@ -540,6 +540,7 @@ public:
static
int32
duel_get_overlay_count
(
lua_State
*
L
);
static
int32
duel_check_remove_overlay_card
(
lua_State
*
L
);
static
int32
duel_remove_overlay_card
(
lua_State
*
L
);
static
int32
duel_get_disable_field
(
lua_State
*
L
);
static
int32
duel_hint
(
lua_State
*
L
);
static
int32
duel_hint_selection
(
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