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
0dd1db53
Commit
0dd1db53
authored
Feb 18, 2017
by
nekrozar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
42418b3e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
card.h
card.h
+4
-3
playerop.cpp
playerop.cpp
+4
-4
No files found.
card.h
View file @
0dd1db53
...
@@ -231,7 +231,7 @@ public:
...
@@ -231,7 +231,7 @@ public:
void
set_material
(
card_set
*
materials
);
void
set_material
(
card_set
*
materials
);
void
add_card_target
(
card
*
pcard
);
void
add_card_target
(
card
*
pcard
);
void
cancel_card_target
(
card
*
pcard
);
void
cancel_card_target
(
card
*
pcard
);
void
filter_effect
(
int32
code
,
effect_set
*
eset
,
uint8
sort
=
TRUE
);
void
filter_effect
(
int32
code
,
effect_set
*
eset
,
uint8
sort
=
TRUE
);
void
filter_single_effect
(
int32
code
,
effect_set
*
eset
,
uint8
sort
=
TRUE
);
void
filter_single_effect
(
int32
code
,
effect_set
*
eset
,
uint8
sort
=
TRUE
);
void
filter_single_continuous_effect
(
int32
code
,
effect_set
*
eset
,
uint8
sort
=
TRUE
);
void
filter_single_continuous_effect
(
int32
code
,
effect_set
*
eset
,
uint8
sort
=
TRUE
);
...
@@ -247,7 +247,7 @@ public:
...
@@ -247,7 +247,7 @@ public:
int32
fusion_check
(
group
*
fusion_m
,
card
*
cg
,
uint32
chkf
);
int32
fusion_check
(
group
*
fusion_m
,
card
*
cg
,
uint32
chkf
);
void
fusion_select
(
uint8
playerid
,
group
*
fusion_m
,
card
*
cg
,
uint32
chkf
);
void
fusion_select
(
uint8
playerid
,
group
*
fusion_m
,
card
*
cg
,
uint32
chkf
);
int32
check_fusion_substitute
(
card
*
fcard
);
int32
check_fusion_substitute
(
card
*
fcard
);
int32
check_unique_code
(
card
*
pcard
);
int32
check_unique_code
(
card
*
pcard
);
void
get_unique_target
(
card_set
*
cset
,
int32
controler
);
void
get_unique_target
(
card_set
*
cset
,
int32
controler
);
int32
is_summonable_card
();
int32
is_summonable_card
();
...
@@ -375,7 +375,8 @@ public:
...
@@ -375,7 +375,8 @@ public:
#define RACE_PSYCHO 0x100000 //
#define RACE_PSYCHO 0x100000 //
#define RACE_DEVINE 0x200000 //
#define RACE_DEVINE 0x200000 //
#define RACE_CREATORGOD 0x400000 //
#define RACE_CREATORGOD 0x400000 //
#define RACE_PHANTOMDRAGON 0x800000 //
#define RACE_WYRM 0x800000 //
#define RACE_CYBERS 0x1000000 //
//Reason
//Reason
#define REASON_DESTROY 0x1 //
#define REASON_DESTROY 0x1 //
#define REASON_RELEASE 0x2 //
#define REASON_RELEASE 0x2 //
...
...
playerop.cpp
View file @
0dd1db53
...
@@ -390,8 +390,8 @@ int32 field::select_place(uint16 step, uint8 playerid, uint32 flag, uint8 count)
...
@@ -390,8 +390,8 @@ int32 field::select_place(uint16 step, uint8 playerid, uint32 flag, uint8 count)
p
=
returns
.
bvalue
[
pt
];
p
=
returns
.
bvalue
[
pt
];
l
=
returns
.
bvalue
[
pt
+
1
];
l
=
returns
.
bvalue
[
pt
+
1
];
s
=
returns
.
bvalue
[
pt
+
2
];
s
=
returns
.
bvalue
[
pt
+
2
];
if
((
p
!=
0
&&
p
!=
1
)
if
((
p
!=
0
&&
p
!=
1
)
||
((
l
!=
LOCATION_MZONE
)
&&
(
l
!=
LOCATION_SZONE
))
||
((
l
!=
LOCATION_MZONE
)
&&
(
l
!=
LOCATION_SZONE
))
||
((
0x1u
<<
s
)
&
(
flag
>>
(((
p
==
playerid
)
?
0
:
16
)
+
((
l
==
LOCATION_MZONE
)
?
0
:
8
)))))
{
||
((
0x1u
<<
s
)
&
(
flag
>>
(((
p
==
playerid
)
?
0
:
16
)
+
((
l
==
LOCATION_MZONE
)
?
0
:
8
)))))
{
pduel
->
write_buffer8
(
MSG_RETRY
);
pduel
->
write_buffer8
(
MSG_RETRY
);
return
FALSE
;
return
FALSE
;
...
@@ -715,7 +715,7 @@ int32 field::sort_card(int16 step, uint8 playerid, uint8 is_chain) {
...
@@ -715,7 +715,7 @@ int32 field::sort_card(int16 step, uint8 playerid, uint8 is_chain) {
int32
field
::
announce_race
(
int16
step
,
uint8
playerid
,
int32
count
,
int32
available
)
{
int32
field
::
announce_race
(
int16
step
,
uint8
playerid
,
int32
count
,
int32
available
)
{
if
(
step
==
0
)
{
if
(
step
==
0
)
{
int32
scount
=
0
;
int32
scount
=
0
;
for
(
int32
ft
=
0x1
;
ft
!=
0x
1
000000
;
ft
<<=
1
)
{
for
(
int32
ft
=
0x1
;
ft
!=
0x
2
000000
;
ft
<<=
1
)
{
if
(
ft
&
available
)
if
(
ft
&
available
)
scount
++
;
scount
++
;
}
}
...
@@ -731,7 +731,7 @@ int32 field::announce_race(int16 step, uint8 playerid, int32 count, int32 availa
...
@@ -731,7 +731,7 @@ int32 field::announce_race(int16 step, uint8 playerid, int32 count, int32 availa
}
else
{
}
else
{
int32
rc
=
returns
.
ivalue
[
0
];
int32
rc
=
returns
.
ivalue
[
0
];
int32
sel
=
0
;
int32
sel
=
0
;
for
(
int32
ft
=
0x1
;
ft
!=
0x
1
000000
;
ft
<<=
1
)
{
for
(
int32
ft
=
0x1
;
ft
!=
0x
2
000000
;
ft
<<=
1
)
{
if
(
!
(
ft
&
rc
))
continue
;
if
(
!
(
ft
&
rc
))
continue
;
if
(
!
(
ft
&
available
))
{
if
(
!
(
ft
&
available
))
{
pduel
->
write_buffer8
(
MSG_RETRY
);
pduel
->
write_buffer8
(
MSG_RETRY
);
...
...
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