Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOMobile
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
fallenstardust
YGOMobile
Commits
0c2e34e2
Commit
0c2e34e2
authored
Jan 23, 2020
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sync ocgcore
parent
04817648
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
8 deletions
+5
-8
Classes/ocgcore/common.h
Classes/ocgcore/common.h
+1
-1
Classes/ocgcore/field.h
Classes/ocgcore/field.h
+1
-1
Classes/ocgcore/playerop.cpp
Classes/ocgcore/playerop.cpp
+2
-5
Classes/ocgcore/processor.cpp
Classes/ocgcore/processor.cpp
+1
-1
No files found.
Classes/ocgcore/common.h
View file @
0c2e34e2
...
...
@@ -247,7 +247,7 @@ struct card_sort {
#define MSG_SELECT_PLACE 18
#define MSG_SELECT_POSITION 19
#define MSG_SELECT_TRIBUTE 20
#define MSG_SORT_CHAIN 21
//
#define MSG_SORT_CHAIN 21
#define MSG_SELECT_COUNTER 22
#define MSG_SELECT_SUM 23
#define MSG_SELECT_DISFIELD 24
...
...
Classes/ocgcore/field.h
View file @
0c2e34e2
...
...
@@ -610,7 +610,7 @@ public:
int32
select_tribute
(
uint16
step
,
uint8
playerid
,
uint8
cancelable
,
uint8
min
,
uint8
max
);
int32
select_counter
(
uint16
step
,
uint8
playerid
,
uint16
countertype
,
uint16
count
,
uint8
s
,
uint8
o
);
int32
select_with_sum_limit
(
int16
step
,
uint8
playerid
,
int32
acc
,
int32
min
,
int32
max
);
int32
sort_card
(
int16
step
,
uint8
playerid
,
uint8
is_chain
);
int32
sort_card
(
int16
step
,
uint8
playerid
);
int32
announce_race
(
int16
step
,
uint8
playerid
,
int32
count
,
int32
available
);
int32
announce_attribute
(
int16
step
,
uint8
playerid
,
int32
count
,
int32
available
);
int32
announce_card
(
int16
step
,
uint8
playerid
);
...
...
Classes/ocgcore/playerop.cpp
View file @
0c2e34e2
...
...
@@ -708,7 +708,7 @@ int32 field::select_with_sum_limit(int16 step, uint8 playerid, int32 acc, int32
}
return
TRUE
;
}
int32
field
::
sort_card
(
int16
step
,
uint8
playerid
,
uint8
is_chain
)
{
int32
field
::
sort_card
(
int16
step
,
uint8
playerid
)
{
if
(
step
==
0
)
{
returns
.
bvalue
[
0
]
=
0
;
if
((
playerid
==
1
)
&&
(
core
.
duel_options
&
DUEL_SIMPLE_AI
))
{
...
...
@@ -717,9 +717,6 @@ int32 field::sort_card(int16 step, uint8 playerid, uint8 is_chain) {
}
if
(
core
.
select_cards
.
empty
())
return
TRUE
;
if
(
is_chain
)
pduel
->
write_buffer8
(
MSG_SORT_CHAIN
);
else
pduel
->
write_buffer8
(
MSG_SORT_CARD
);
pduel
->
write_buffer8
(
playerid
);
pduel
->
write_buffer8
(
core
.
select_cards
.
size
());
...
...
Classes/ocgcore/processor.cpp
View file @
0c2e34e2
...
...
@@ -180,7 +180,7 @@ int32 field::process() {
}
}
case
PROCESSOR_SORT_CARD
:
{
if
(
sort_card
(
it
->
step
,
it
->
arg1
,
it
->
arg2
))
{
if
(
sort_card
(
it
->
step
,
it
->
arg1
))
{
core
.
units
.
pop_front
();
return
pduel
->
bufferlen
;
}
else
{
...
...
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