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
d3a9bf14
Commit
d3a9bf14
authored
Mar 28, 2017
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
duel rule for puzzle
parent
bd1b0397
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
field.cpp
field.cpp
+1
-0
libdebug.cpp
libdebug.cpp
+7
-0
ocgapi.cpp
ocgapi.cpp
+1
-1
No files found.
field.cpp
View file @
d3a9bf14
...
@@ -83,6 +83,7 @@ field::field(duel* pduel) {
...
@@ -83,6 +83,7 @@ field::field(duel* pduel) {
core
.
limit_xyz_maxc
=
0
;
core
.
limit_xyz_maxc
=
0
;
core
.
last_control_changed_id
=
0
;
core
.
last_control_changed_id
=
0
;
core
.
duel_options
=
0
;
core
.
duel_options
=
0
;
core
.
duel_rule
=
0
;
core
.
attacker
=
0
;
core
.
attacker
=
0
;
core
.
attack_target
=
0
;
core
.
attack_target
=
0
;
core
.
attack_rollback
=
FALSE
;
core
.
attack_rollback
=
FALSE
;
...
...
libdebug.cpp
View file @
d3a9bf14
...
@@ -144,8 +144,15 @@ int32 scriptlib::debug_reload_field_begin(lua_State *L) {
...
@@ -144,8 +144,15 @@ int32 scriptlib::debug_reload_field_begin(lua_State *L) {
check_param_count
(
L
,
1
);
check_param_count
(
L
,
1
);
duel
*
pduel
=
interpreter
::
get_duel_info
(
L
);
duel
*
pduel
=
interpreter
::
get_duel_info
(
L
);
uint32
flag
=
lua_tointeger
(
L
,
1
);
uint32
flag
=
lua_tointeger
(
L
,
1
);
int32
rule
=
lua_tointeger
(
L
,
2
);
pduel
->
clear
();
pduel
->
clear
();
pduel
->
game_field
->
core
.
duel_options
=
flag
;
pduel
->
game_field
->
core
.
duel_options
=
flag
;
if
(
rule
)
pduel
->
game_field
->
core
.
duel_rule
=
rule
;
else
if
(
flag
&
DUEL_OBSOLETE_RULING
)
pduel
->
game_field
->
core
.
duel_rule
=
1
;
else
pduel
->
game_field
->
core
.
duel_rule
=
3
;
return
0
;
return
0
;
}
}
int32
scriptlib
::
debug_reload_field_end
(
lua_State
*
L
)
{
int32
scriptlib
::
debug_reload_field_end
(
lua_State
*
L
)
{
...
...
ocgapi.cpp
View file @
d3a9bf14
...
@@ -76,7 +76,7 @@ extern "C" DECL_DLLEXPORT void start_duel(ptr pduel, int options) {
...
@@ -76,7 +76,7 @@ extern "C" DECL_DLLEXPORT void start_duel(ptr pduel, int options) {
pd
->
game_field
->
core
.
duel_rule
=
duel_rule
;
pd
->
game_field
->
core
.
duel_rule
=
duel_rule
;
else
if
(
options
&
DUEL_OBSOLETE_RULING
)
//provide backward compatibility with replay
else
if
(
options
&
DUEL_OBSOLETE_RULING
)
//provide backward compatibility with replay
pd
->
game_field
->
core
.
duel_rule
=
1
;
pd
->
game_field
->
core
.
duel_rule
=
1
;
else
else
if
(
!
pd
->
game_field
->
core
.
duel_rule
)
pd
->
game_field
->
core
.
duel_rule
=
3
;
pd
->
game_field
->
core
.
duel_rule
=
3
;
pd
->
game_field
->
core
.
shuffle_hand_check
[
0
]
=
FALSE
;
pd
->
game_field
->
core
.
shuffle_hand_check
[
0
]
=
FALSE
;
pd
->
game_field
->
core
.
shuffle_hand_check
[
1
]
=
FALSE
;
pd
->
game_field
->
core
.
shuffle_hand_check
[
1
]
=
FALSE
;
...
...
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