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
029a00f1
Commit
029a00f1
authored
Dec 08, 2023
by
Chen Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add CURRENT_RULE
parent
22f069c3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
3 deletions
+5
-3
common.h
common.h
+2
-0
field.h
field.h
+1
-1
libdebug.cpp
libdebug.cpp
+1
-1
ocgapi.cpp
ocgapi.cpp
+1
-1
No files found.
common.h
View file @
029a00f1
...
...
@@ -37,6 +37,8 @@ struct card_sort {
bool
operator
()(
void
*
const
&
c1
,
void
*
const
&
c2
)
const
;
};
#define CURRENT_RULE 5
//Locations
#define LOCATION_DECK 0x01 //
#define LOCATION_HAND 0x02 //
...
...
field.h
View file @
029a00f1
...
...
@@ -289,7 +289,7 @@ struct processor {
uint8
extra_summon
[
2
]{
FALSE
};
int32
spe_effect
[
2
]{
0
};
int32
duel_options
{
0
};
int32
duel_rule
{
5
};
//current rule: 5, Master Rule 2020
int32
duel_rule
{
CURRENT_RULE
};
//current rule: 5, Master Rule 2020
uint32
copy_reset
{
0
};
uint8
copy_reset_count
{
0
};
uint32
last_control_changed_id
{
0
};
...
...
libdebug.cpp
View file @
029a00f1
...
...
@@ -152,7 +152,7 @@ int32 scriptlib::debug_reload_field_begin(lua_State *L) {
else
if
(
flag
&
DUEL_OBSOLETE_RULING
)
pduel
->
game_field
->
core
.
duel_rule
=
1
;
else
pduel
->
game_field
->
core
.
duel_rule
=
5
;
pduel
->
game_field
->
core
.
duel_rule
=
CURRENT_RULE
;
return
0
;
}
int32
scriptlib
::
debug_reload_field_end
(
lua_State
*
L
)
{
...
...
ocgapi.cpp
View file @
029a00f1
...
...
@@ -72,7 +72,7 @@ extern "C" DECL_DLLEXPORT void start_duel(intptr_t pduel, int32 options) {
else
if
(
options
&
DUEL_OBSOLETE_RULING
)
//provide backward compatibility with replay
pd
->
game_field
->
core
.
duel_rule
=
1
;
else
if
(
!
pd
->
game_field
->
core
.
duel_rule
)
pd
->
game_field
->
core
.
duel_rule
=
5
;
pd
->
game_field
->
core
.
duel_rule
=
CURRENT_RULE
;
pd
->
game_field
->
core
.
shuffle_hand_check
[
0
]
=
FALSE
;
pd
->
game_field
->
core
.
shuffle_hand_check
[
1
]
=
FALSE
;
pd
->
game_field
->
core
.
shuffle_deck_check
[
0
]
=
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