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
5d0bbcc3
Commit
5d0bbcc3
authored
Apr 30, 2016
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update select place for DUEL_SIMPLE_AI
parent
982039dd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
12 deletions
+35
-12
playerop.cpp
playerop.cpp
+35
-12
No files found.
playerop.cpp
View file @
5d0bbcc3
...
@@ -330,24 +330,47 @@ int32 field::select_place(uint16 step, uint8 playerid, uint32 flag, uint8 count)
...
@@ -330,24 +330,47 @@ int32 field::select_place(uint16 step, uint8 playerid, uint32 flag, uint8 count)
if
(
count
==
0
)
if
(
count
==
0
)
return
TRUE
;
return
TRUE
;
if
((
playerid
==
1
)
&&
(
core
.
duel_options
&
DUEL_SIMPLE_AI
))
{
if
((
playerid
==
1
)
&&
(
core
.
duel_options
&
DUEL_SIMPLE_AI
))
{
returns
.
bvalue
[
0
]
=
1
;
flag
=
~
flag
;
flag
=
~
flag
;
int32
filter
;
int32
pzone
=
0
;
if
(
flag
&
0x1f
)
{
if
(
flag
&
0x1f
)
{
returns
.
bvalue
[
0
]
=
1
;
returns
.
bvalue
[
1
]
=
LOCATION_MZONE
;
returns
.
bvalue
[
1
]
=
LOCATION_MZONE
;
if
(
flag
&
0x4
)
returns
.
bvalue
[
2
]
=
2
;
filter
=
flag
&
0x1f
;
else
if
(
flag
&
0x2
)
returns
.
bvalue
[
2
]
=
1
;
}
else
if
(
flag
&
0x1f00
)
{
else
if
(
flag
&
0x8
)
returns
.
bvalue
[
2
]
=
3
;
returns
.
bvalue
[
0
]
=
1
;
else
if
(
flag
&
0x1
)
returns
.
bvalue
[
2
]
=
0
;
returns
.
bvalue
[
1
]
=
LOCATION_SZONE
;
else
returns
.
bvalue
[
2
]
=
4
;
filter
=
(
flag
>>
8
)
&
0x1f
;
}
else
if
(
flag
&
0xc000
)
{
returns
.
bvalue
[
0
]
=
1
;
returns
.
bvalue
[
1
]
=
LOCATION_SZONE
;
filter
=
(
flag
>>
14
)
&
0x3
;
pzone
=
1
;
}
else
if
(
flag
&
0x1f0000
)
{
returns
.
bvalue
[
0
]
=
0
;
returns
.
bvalue
[
1
]
=
LOCATION_MZONE
;
filter
=
(
flag
>>
16
)
&
0x1f
;
}
else
if
(
flag
&
0x1f000000
)
{
returns
.
bvalue
[
0
]
=
0
;
returns
.
bvalue
[
1
]
=
LOCATION_SZONE
;
filter
=
(
flag
>>
24
)
&
0x1f
;
}
else
{
}
else
{
returns
.
bvalue
[
0
]
=
0
;
returns
.
bvalue
[
1
]
=
LOCATION_SZONE
;
returns
.
bvalue
[
1
]
=
LOCATION_SZONE
;
if
(
flag
&
0x400
)
returns
.
bvalue
[
2
]
=
2
;
filter
=
(
flag
>>
30
)
&
0x3
;
else
if
(
flag
&
0x200
)
returns
.
bvalue
[
2
]
=
1
;
pzone
=
1
;
else
if
(
flag
&
0x800
)
returns
.
bvalue
[
2
]
=
3
;
}
else
if
(
flag
&
0x100
)
returns
.
bvalue
[
2
]
=
0
;
if
(
!
pzone
)
{
else
returns
.
bvalue
[
2
]
=
4
;
if
(
filter
&
0x4
)
returns
.
bvalue
[
2
]
=
2
;
else
if
(
filter
&
0x2
)
returns
.
bvalue
[
2
]
=
1
;
else
if
(
filter
&
0x8
)
returns
.
bvalue
[
2
]
=
3
;
else
if
(
filter
&
0x1
)
returns
.
bvalue
[
2
]
=
0
;
else
if
(
filter
&
0x10
)
returns
.
bvalue
[
2
]
=
4
;
}
else
{
if
(
filter
&
0x1
)
returns
.
bvalue
[
2
]
=
6
;
else
if
(
filter
&
0x2
)
returns
.
bvalue
[
2
]
=
7
;
}
}
return
true
;
return
TRUE
;
}
}
if
(
core
.
units
.
begin
()
->
type
==
PROCESSOR_SELECT_PLACE
)
if
(
core
.
units
.
begin
()
->
type
==
PROCESSOR_SELECT_PLACE
)
pduel
->
write_buffer8
(
MSG_SELECT_PLACE
);
pduel
->
write_buffer8
(
MSG_SELECT_PLACE
);
...
...
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