Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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
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
MyCard
ygopro-2pick
Commits
c353c350
Commit
c353c350
authored
Sep 01, 2015
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extra pendulum count for puzzle mode
parent
92176df0
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
0 deletions
+9
-0
gframe/duelclient.cpp
gframe/duelclient.cpp
+2
-0
gframe/single_mode.cpp
gframe/single_mode.cpp
+2
-0
ocgcore/field.cpp
ocgcore/field.cpp
+2
-0
ocgcore/field.h
ocgcore/field.h
+1
-0
ocgcore/libdebug.cpp
ocgcore/libdebug.cpp
+2
-0
No files found.
gframe/duelclient.cpp
View file @
c353c350
...
...
@@ -3105,6 +3105,8 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
mainGame
->
dField
.
AddCard
(
ccard
,
p
,
LOCATION_REMOVED
,
seq
);
mainGame
->
dField
.
GetCardLocation
(
ccard
,
&
ccard
->
curPos
,
&
ccard
->
curRot
,
true
);
}
val
=
BufferIO
::
ReadInt8
(
pbuf
);
mainGame
->
dField
.
extra_p_count
[
p
]
=
val
;
}
val
=
BufferIO
::
ReadInt8
(
pbuf
);
//chains
for
(
int
i
=
0
;
i
<
val
;
++
i
)
{
...
...
gframe/single_mode.cpp
View file @
c353c350
...
...
@@ -667,6 +667,8 @@ bool SingleMode::SinglePlayAnalyze(char* msg, unsigned int len) {
ClientCard
*
ccard
=
new
ClientCard
;
mainGame
->
dField
.
AddCard
(
ccard
,
p
,
LOCATION_EXTRA
,
seq
);
}
val
=
BufferIO
::
ReadInt8
(
pbuf
);
mainGame
->
dField
.
extra_p_count
[
p
]
=
val
;
}
BufferIO
::
ReadInt8
(
pbuf
);
//chain count, always 0
SinglePlayReload
();
...
...
ocgcore/field.cpp
View file @
c353c350
...
...
@@ -41,6 +41,7 @@ field::field(duel* pduel) {
player
[
i
].
draw_count
=
1
;
player
[
i
].
disabled_location
=
0
;
player
[
i
].
used_location
=
0
;
player
[
i
].
extra_p_count
=
0
;
player
[
i
].
list_mzone
.
reserve
(
5
);
player
[
i
].
list_szone
.
reserve
(
8
);
player
[
i
].
list_main
.
reserve
(
45
);
...
...
@@ -128,6 +129,7 @@ void field::reload_field_info() {
pduel
->
write_buffer8
(
player
[
playerid
].
list_grave
.
size
());
pduel
->
write_buffer8
(
player
[
playerid
].
list_remove
.
size
());
pduel
->
write_buffer8
(
player
[
playerid
].
list_extra
.
size
());
pduel
->
write_buffer8
(
player
[
playerid
].
extra_p_count
);
}
pduel
->
write_buffer8
(
core
.
current_chain
.
size
());
for
(
auto
chit
=
core
.
current_chain
.
begin
();
chit
!=
core
.
current_chain
.
end
();
++
chit
)
{
...
...
ocgcore/field.h
View file @
c353c350
...
...
@@ -71,6 +71,7 @@ struct player_info {
int32
draw_count
;
uint32
used_location
;
uint32
disabled_location
;
uint32
extra_p_count
;
card_vector
list_mzone
;
card_vector
list_szone
;
card_vector
list_main
;
...
...
ocgcore/libdebug.cpp
View file @
c353c350
...
...
@@ -45,6 +45,8 @@ int32 scriptlib::debug_add_card(lua_State *L) {
pcard
->
enable_field_effect
(
TRUE
);
pduel
->
game_field
->
adjust_instant
();
}
if
((
pcard
->
data
.
type
&
TYPE_PENDULUM
)
&&
(
location
==
LOCATION_EXTRA
)
&&
(
position
&
POS_FACEUP
))
pduel
->
game_field
->
player
[
playerid
].
extra_p_count
+=
1
;
if
(
proc
)
pcard
->
set_status
(
STATUS_PROC_COMPLETE
,
TRUE
);
interpreter
::
card2value
(
L
,
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