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
37eabe3e
Commit
37eabe3e
authored
Oct 21, 2015
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit
parent
5589807f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
field.cpp
field.cpp
+4
-1
operations.cpp
operations.cpp
+3
-1
No files found.
field.cpp
View file @
37eabe3e
...
@@ -143,7 +143,8 @@ void field::reload_field_info() {
...
@@ -143,7 +143,8 @@ void field::reload_field_info() {
pduel
->
write_buffer32
(
peffect
->
description
);
pduel
->
write_buffer32
(
peffect
->
description
);
}
}
}
}
// Debug.AddCard() will call this function directly
// check Fusion/S/X monster redirection by the rule
void
field
::
add_card
(
uint8
playerid
,
card
*
pcard
,
uint8
location
,
uint8
sequence
)
{
void
field
::
add_card
(
uint8
playerid
,
card
*
pcard
,
uint8
location
,
uint8
sequence
)
{
if
(
pcard
->
current
.
location
!=
0
)
if
(
pcard
->
current
.
location
!=
0
)
return
;
return
;
...
@@ -260,6 +261,8 @@ void field::remove_card(card* pcard) {
...
@@ -260,6 +261,8 @@ void field::remove_card(card* pcard) {
pcard
->
current
.
location
=
0
;
pcard
->
current
.
location
=
0
;
pcard
->
current
.
sequence
=
0
;
pcard
->
current
.
sequence
=
0
;
}
}
// check Fusion/S/X monster redirection by the rule
// it will call remove_card(), add_card()
void
field
::
move_card
(
uint8
playerid
,
card
*
pcard
,
uint8
location
,
uint8
sequence
)
{
void
field
::
move_card
(
uint8
playerid
,
card
*
pcard
,
uint8
location
,
uint8
sequence
)
{
if
(
!
is_location_useable
(
playerid
,
location
,
sequence
))
if
(
!
is_location_useable
(
playerid
,
location
,
sequence
))
return
;
return
;
...
...
operations.cpp
View file @
37eabe3e
...
@@ -2998,6 +2998,8 @@ int32 field::send_to(uint16 step, group * targets, card * target) {
...
@@ -2998,6 +2998,8 @@ int32 field::send_to(uint16 step, group * targets, card * target) {
return
TRUE
;
return
TRUE
;
}
}
// PROCESSOR_SENDTO goes here
// PROCESSOR_SENDTO goes here
// step 1: call PROCESSOR_SENDTO_STEP
// step 6: move cards
int32
field
::
send_to
(
uint16
step
,
group
*
targets
,
effect
*
reason_effect
,
uint32
reason
,
uint8
reason_player
)
{
int32
field
::
send_to
(
uint16
step
,
group
*
targets
,
effect
*
reason_effect
,
uint32
reason
,
uint8
reason_player
)
{
struct
exargs
{
struct
exargs
{
group
*
targets
;
group
*
targets
;
...
@@ -3255,7 +3257,7 @@ int32 field::send_to(uint16 step, group * targets, effect * reason_effect, uint3
...
@@ -3255,7 +3257,7 @@ int32 field::send_to(uint16 step, group * targets, effect * reason_effect, uint3
}
else
if
(
dest
==
LOCATION_REMOVED
)
{
}
else
if
(
dest
==
LOCATION_REMOVED
)
{
core
.
hint_timing
[
pcard
->
current
.
controler
]
|=
TIMING_REMOVE
;
core
.
hint_timing
[
pcard
->
current
.
controler
]
|=
TIMING_REMOVE
;
}
}
//
move card
//
call move_card()
if
(
pcard
->
current
.
controler
!=
playerid
||
pcard
->
current
.
location
!=
dest
)
{
if
(
pcard
->
current
.
controler
!=
playerid
||
pcard
->
current
.
location
!=
dest
)
{
pduel
->
write_buffer8
(
MSG_MOVE
);
pduel
->
write_buffer8
(
MSG_MOVE
);
pduel
->
write_buffer32
(
pcard
->
data
.
code
);
pduel
->
write_buffer32
(
pcard
->
data
.
code
);
...
...
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