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
61bf5a9b
Commit
61bf5a9b
authored
May 03, 2023
by
mercury233
Committed by
GitHub
May 03, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add RACE_ILLUSION, RACES_COUNT (#495)
parent
bf2339ce
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
common.h
common.h
+3
-0
playerop.cpp
playerop.cpp
+2
-2
No files found.
common.h
View file @
61bf5a9b
...
@@ -107,6 +107,8 @@ struct card_sort {
...
@@ -107,6 +107,8 @@ struct card_sort {
#define ATTRIBUTE_DEVINE 0x40 //
#define ATTRIBUTE_DEVINE 0x40 //
//Races
//Races
#define RACES_COUNT 26
#define RACE_ALL 0x3ffffff
#define RACE_WARRIOR 0x1 //
#define RACE_WARRIOR 0x1 //
#define RACE_SPELLCASTER 0x2 //
#define RACE_SPELLCASTER 0x2 //
#define RACE_FAIRY 0x4 //
#define RACE_FAIRY 0x4 //
...
@@ -132,6 +134,7 @@ struct card_sort {
...
@@ -132,6 +134,7 @@ struct card_sort {
#define RACE_CREATORGOD 0x400000 //
#define RACE_CREATORGOD 0x400000 //
#define RACE_WYRM 0x800000 //
#define RACE_WYRM 0x800000 //
#define RACE_CYBERSE 0x1000000 //
#define RACE_CYBERSE 0x1000000 //
#define RACE_ILLUSION 0x2000000 //
//Reason
//Reason
#define REASON_DESTROY 0x1 //
#define REASON_DESTROY 0x1 //
...
...
playerop.cpp
View file @
61bf5a9b
...
@@ -753,7 +753,7 @@ int32 field::sort_card(int16 step, uint8 playerid) {
...
@@ -753,7 +753,7 @@ int32 field::sort_card(int16 step, uint8 playerid) {
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
!=
0x2000000
;
ft
<<=
1
)
{
for
(
int32
ft
=
0x1
;
ft
<
(
1
<<
RACES_COUNT
)
;
ft
<<=
1
)
{
if
(
ft
&
available
)
if
(
ft
&
available
)
scount
++
;
scount
++
;
}
}
...
@@ -769,7 +769,7 @@ int32 field::announce_race(int16 step, uint8 playerid, int32 count, int32 availa
...
@@ -769,7 +769,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
!=
0x2000000
;
ft
<<=
1
)
{
for
(
int32
ft
=
0x1
;
ft
<
(
1
<<
RACES_COUNT
)
;
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