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
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-core
Commits
6a708742
Commit
6a708742
authored
Dec 29, 2016
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
field::select_counter()
Now a player can remove 2^16-1=65535 counters from each card.
parent
36b7354f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
operations.cpp
operations.cpp
+2
-2
playerop.cpp
playerop.cpp
+2
-2
No files found.
operations.cpp
View file @
6a708742
...
...
@@ -710,8 +710,8 @@ int32 field::remove_counter(uint16 step, uint32 reason, card* pcard, uint8 rplay
}
case
2
:
{
for
(
uint32
i
=
0
;
i
<
core
.
select_cards
.
size
();
++
i
)
if
(
returns
.
b
value
[
i
]
>
0
)
core
.
select_cards
[
i
]
->
remove_counter
(
countertype
,
returns
.
b
value
[
i
]);
if
(
returns
.
s
value
[
i
]
>
0
)
core
.
select_cards
[
i
]
->
remove_counter
(
countertype
,
returns
.
s
value
[
i
]);
return
FALSE
;
}
case
3
:
{
...
...
playerop.cpp
View file @
6a708742
...
...
@@ -547,11 +547,11 @@ int32 field::select_counter(uint16 step, uint8 playerid, uint16 countertype, uin
}
else
{
uint16
ct
=
0
;
for
(
uint32
i
=
0
;
i
<
core
.
select_cards
.
size
();
++
i
)
{
if
(
core
.
select_cards
[
i
]
->
get_counter
(
countertype
)
<
returns
.
b
value
[
i
])
{
if
(
core
.
select_cards
[
i
]
->
get_counter
(
countertype
)
<
returns
.
s
value
[
i
])
{
pduel
->
write_buffer8
(
MSG_RETRY
);
return
FALSE
;
}
ct
+=
returns
.
b
value
[
i
];
ct
+=
returns
.
s
value
[
i
];
}
if
(
ct
!=
count
)
{
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