Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygo-agent
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
Biluo Shen
ygo-agent
Commits
9ce899f3
Commit
9ce899f3
authored
May 04, 2024
by
sbl1996@126.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Force action in multi select when only 1 comb
parent
66ebb5af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
ygoenv/ygoenv/ygopro/ygopro.h
ygoenv/ygoenv/ygopro/ygopro.h
+21
-1
No files found.
ygoenv/ygoenv/ygopro/ygopro.h
View file @
9ce899f3
...
...
@@ -2149,8 +2149,9 @@ private:
fmt
::
println
(
"MS: idx: {}, mode: {}, min: {}, max: {}, must: {}, specs: {}, combs: {}"
,
ms_idx_
,
ms_mode_
,
ms_min_
,
ms_max_
,
ms_must_
,
ms_specs_
,
ms_combs_
);
fmt
::
println
(
"Spec: {}, Spec2index:"
,
spec
);
for
(
auto
&
[
k
,
v
]
:
spec2index
)
{
fmt
::
print
ln
(
"{}: {}
"
,
k
,
v
);
fmt
::
print
(
"{}: {},
"
,
k
,
v
);
}
fmt
::
print
(
"
\n
"
);
// throw std::runtime_error("Spec not found: " + spec);
idx
=
1
;
}
else
{
...
...
@@ -3863,6 +3864,15 @@ private:
}
}
if
((
min
==
max
)
&&
(
max
==
specs
.
size
()))
{
resp_buf_
[
0
]
=
specs
.
size
();
for
(
int
i
=
0
;
i
<
specs
.
size
();
++
i
)
{
resp_buf_
[
i
+
1
]
=
i
;
}
YGO_SetResponseb
(
pduel_
,
resp_buf_
);
return
;
}
init_multi_select
(
min
,
max
,
0
,
specs
);
to_play_
=
player
;
...
...
@@ -3934,6 +3944,16 @@ private:
// combs = combinations_with_weight(release_params, min);
}
if
(
max
==
specs
.
size
())
{
// tribute all
resp_buf_
[
0
]
=
specs
.
size
();
for
(
int
i
=
0
;
i
<
specs
.
size
();
++
i
)
{
resp_buf_
[
i
+
1
]
=
i
;
}
YGO_SetResponseb
(
pduel_
,
resp_buf_
);
return
;
}
init_multi_select
(
min
,
max
,
0
,
specs
);
to_play_
=
player
;
...
...
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