Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
YGOPRO-520DIY
ygopro
Commits
f29d5d87
Commit
f29d5d87
authored
Aug 26, 2015
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extra bottom
parent
56921480
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
4 deletions
+22
-4
gframe/client_field.cpp
gframe/client_field.cpp
+12
-2
ocgcore/field.cpp
ocgcore/field.cpp
+10
-2
No files found.
gframe/client_field.cpp
View file @
f29d5d87
...
...
@@ -182,8 +182,18 @@ void ClientField::AddCard(ClientCard* pcard, int controler, int location, int se
break
;
}
case
LOCATION_EXTRA
:
{
if
(
sequence
!=
0
||
extra
[
controler
].
size
()
==
0
)
{
extra
[
controler
].
push_back
(
pcard
);
pcard
->
sequence
=
extra
[
controler
].
size
()
-
1
;
}
else
{
extra
[
controler
].
push_back
(
0
);
for
(
int
i
=
extra
[
controler
].
size
()
-
1
;
i
>
0
;
--
i
)
{
extra
[
controler
][
i
]
=
extra
[
controler
][
i
-
1
];
extra
[
controler
][
i
]
->
sequence
++
;
}
extra
[
controler
][
0
]
=
pcard
;
pcard
->
sequence
=
0
;
}
break
;
}
}
...
...
ocgcore/field.cpp
View file @
f29d5d87
...
...
@@ -148,6 +148,7 @@ void field::add_card(uint8 playerid, card* pcard, uint8 location, uint8 sequence
return
;
if
((
pcard
->
data
.
type
&
(
TYPE_FUSION
|
TYPE_SYNCHRO
|
TYPE_XYZ
))
&&
(
location
&
(
LOCATION_HAND
|
LOCATION_DECK
)))
{
location
=
LOCATION_EXTRA
;
sequence
=
1
;
pcard
->
operation_param
=
(
pcard
->
operation_param
&
0x00ffffff
)
|
(
POS_FACEDOWN_DEFENCE
<<
24
);
}
pcard
->
current
.
controler
=
playerid
;
...
...
@@ -193,8 +194,13 @@ void field::add_card(uint8 playerid, card* pcard, uint8 location, uint8 sequence
pcard
->
current
.
sequence
=
player
[
playerid
].
list_remove
.
size
()
-
1
;
break
;
case
LOCATION_EXTRA
:
if
(
sequence
==
1
)
{
player
[
playerid
].
list_extra
.
insert
(
player
[
playerid
].
list_extra
.
begin
(),
pcard
);
reset_sequence
(
playerid
,
LOCATION_EXTRA
);
}
else
{
player
[
playerid
].
list_extra
.
push_back
(
pcard
);
pcard
->
current
.
sequence
=
player
[
playerid
].
list_extra
.
size
()
-
1
;
}
break
;
}
pcard
->
apply_field_effect
();
...
...
@@ -260,6 +266,7 @@ void field::move_card(uint8 playerid, card* pcard, uint8 location, uint8 sequenc
uint8
presequence
=
pcard
->
current
.
sequence
;
if
((
pcard
->
data
.
type
&
(
TYPE_FUSION
|
TYPE_SYNCHRO
|
TYPE_XYZ
))
&&
(
location
&
(
LOCATION_HAND
|
LOCATION_DECK
)))
{
location
=
LOCATION_EXTRA
;
sequence
=
1
;
pcard
->
operation_param
=
(
pcard
->
operation_param
&
0x00ffffff
)
|
(
POS_FACEDOWN_DEFENCE
<<
24
);
}
if
(
pcard
->
current
.
location
)
{
...
...
@@ -367,6 +374,7 @@ void field::move_card(uint8 playerid, card* pcard, uint8 location, uint8 sequenc
&&
(((
pcard
->
current
.
location
==
LOCATION_MZONE
)
&&
!
pcard
->
is_status
(
STATUS_SUMMON_DISABLED
))
||
((
pcard
->
current
.
location
==
LOCATION_SZONE
)
&&
!
pcard
->
is_status
(
STATUS_ACTIVATE_DISABLED
))))
{
location
=
LOCATION_EXTRA
;
sequence
=
0
;
pcard
->
operation_param
=
(
pcard
->
operation_param
&
0x00ffffff
)
|
(
POS_FACEUP_DEFENCE
<<
24
);
}
remove_card
(
pcard
);
...
...
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