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
d08afe0a
Commit
d08afe0a
authored
Jun 06, 2024
by
Chen Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update PROCESSOR_SELECT_SUM
parent
3b873526
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
libgroup.cpp
libgroup.cpp
+1
-1
operations.cpp
operations.cpp
+2
-2
processor.cpp
processor.cpp
+1
-1
No files found.
libgroup.cpp
View file @
d08afe0a
...
@@ -513,7 +513,7 @@ int32 scriptlib::group_select_with_sum_equal(lua_State *L) {
...
@@ -513,7 +513,7 @@ int32 scriptlib::group_select_with_sum_equal(lua_State *L) {
interpreter
::
group2value
(
L
,
empty_group
);
interpreter
::
group2value
(
L
,
empty_group
);
return
1
;
return
1
;
}
}
pduel
->
game_field
->
add_process
(
PROCESSOR_SELECT_SUM
,
0
,
0
,
0
,
acc
,
playerid
+
(
min
<<
16
)
+
(
max
<<
24
)
);
pduel
->
game_field
->
add_process
(
PROCESSOR_SELECT_SUM
,
0
,
0
,
0
,
acc
,
playerid
,
min
,
max
);
return
lua_yieldk
(
L
,
0
,
(
lua_KContext
)
pduel
,
[](
lua_State
*
L
,
int32
status
,
lua_KContext
ctx
)
{
return
lua_yieldk
(
L
,
0
,
(
lua_KContext
)
pduel
,
[](
lua_State
*
L
,
int32
status
,
lua_KContext
ctx
)
{
duel
*
pduel
=
(
duel
*
)
ctx
;
duel
*
pduel
=
(
duel
*
)
ctx
;
group
*
pgroup
=
pduel
->
new_group
();
group
*
pgroup
=
pduel
->
new_group
();
...
...
operations.cpp
View file @
d08afe0a
...
@@ -5589,7 +5589,7 @@ int32 field::select_synchro_material(int16 step, uint8 playerid, card* pcard, in
...
@@ -5589,7 +5589,7 @@ int32 field::select_synchro_material(int16 step, uint8 playerid, card* pcard, in
pduel
->
write_buffer8
(
HINT_SELECTMSG
);
pduel
->
write_buffer8
(
HINT_SELECTMSG
);
pduel
->
write_buffer8
(
playerid
);
pduel
->
write_buffer8
(
playerid
);
pduel
->
write_buffer32
(
512
);
pduel
->
write_buffer32
(
512
);
add_process
(
PROCESSOR_SELECT_SUM
,
0
,
0
,
0
,
lv
,
playerid
+
(
min
<<
16
)
+
(
max
<<
24
)
);
add_process
(
PROCESSOR_SELECT_SUM
,
0
,
0
,
0
,
lv
,
playerid
,
min
,
max
);
return
FALSE
;
return
FALSE
;
}
}
case
8
:
{
case
8
:
{
...
@@ -5644,7 +5644,7 @@ int32 field::select_synchro_material(int16 step, uint8 playerid, card* pcard, in
...
@@ -5644,7 +5644,7 @@ int32 field::select_synchro_material(int16 step, uint8 playerid, card* pcard, in
pduel
->
write_buffer8
(
HINT_SELECTMSG
);
pduel
->
write_buffer8
(
HINT_SELECTMSG
);
pduel
->
write_buffer8
(
playerid
);
pduel
->
write_buffer8
(
playerid
);
pduel
->
write_buffer32
(
512
);
pduel
->
write_buffer32
(
512
);
add_process
(
PROCESSOR_SELECT_SUM
,
0
,
0
,
0
,
lv
,
playerid
+
(
min
<<
16
)
+
(
max
<<
24
)
);
add_process
(
PROCESSOR_SELECT_SUM
,
0
,
0
,
0
,
lv
,
playerid
,
min
,
max
);
core
.
units
.
begin
()
->
step
=
7
;
core
.
units
.
begin
()
->
step
=
7
;
return
FALSE
;
return
FALSE
;
}
}
...
...
processor.cpp
View file @
d08afe0a
...
@@ -175,7 +175,7 @@ uint32 field::process() {
...
@@ -175,7 +175,7 @@ uint32 field::process() {
}
}
}
}
case
PROCESSOR_SELECT_SUM
:
{
case
PROCESSOR_SELECT_SUM
:
{
if
(
select_with_sum_limit
(
it
->
step
,
it
->
arg2
&
0xffff
,
it
->
arg1
,
(
it
->
arg2
>>
16
)
&
0xff
,
(
it
->
arg2
>>
24
)
&
0xff
))
{
if
(
select_with_sum_limit
(
it
->
step
,
it
->
arg2
,
it
->
arg1
,
it
->
arg3
,
it
->
arg4
))
{
core
.
units
.
pop_front
();
core
.
units
.
pop_front
();
return
pduel
->
message_buffer
.
size
();
return
pduel
->
message_buffer
.
size
();
}
else
{
}
else
{
...
...
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