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
3c1db2fc
Commit
3c1db2fc
authored
Feb 18, 2017
by
lllyasviel
Committed by
GitHub
Feb 18, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #77 from nekrozar/patch-2
add race Cybers
parents
df28a5b8
0dd1db53
Changes
2
Show 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 @
3c1db2fc
...
...
@@ -376,7 +376,8 @@ public:
#define RACE_PSYCHO 0x100000 //
#define RACE_DEVINE 0x200000 //
#define RACE_CREATORGOD 0x400000 //
#define RACE_PHANTOMDRAGON 0x800000 //
#define RACE_WYRM 0x800000 //
#define RACE_CYBERS 0x1000000 //
//Reason
#define REASON_DESTROY 0x1 //
#define REASON_RELEASE 0x2 //
...
...
playerop.cpp
View file @
3c1db2fc
...
...
@@ -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
)
{
if
(
step
==
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
)
scount
++
;
}
...
...
@@ -731,7 +731,7 @@ int32 field::announce_race(int16 step, uint8 playerid, int32 count, int32 availa
}
else
{
int32
rc
=
returns
.
ivalue
[
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
&
available
))
{
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