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
5734eb11
Commit
5734eb11
authored
Feb 06, 2025
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use MSG_UPDATE_CARD for SetEntityCode
parent
2a688aeb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
card.cpp
card.cpp
+7
-5
common.h
common.h
+1
-1
No files found.
card.cpp
View file @
5734eb11
...
...
@@ -34,11 +34,13 @@ uint32_t card::set_entity_code(uint32_t entity_code, bool remove_alias) {
if (remove_alias && dat.alias)
dat.alias = 0;
data = dat;
pduel
->
write_buffer8
(
MSG_MOVE
);
pduel
->
write_buffer32
(
data
.
code
);
pduel
->
write_buffer32
(
get_info_location
());
pduel
->
write_buffer32
(
get_info_location
());
pduel
->
write_buffer32
(
0
);
pduel->write_buffer8(MSG_UPDATE_CARD);
pduel->write_buffer8(current.controler);
pduel->write_buffer8(current.location);
pduel->write_buffer8(current.sequence);
unsigned char query_buffer[0x1000];
auto query_len = get_infos(query_buffer, 0xe81fff, 0);
pduel->write_buffer(query_buffer, query_len);
return code;
}
uint32_t card::get_summon_info() {
...
...
common.h
View file @
5734eb11
...
...
@@ -256,7 +256,7 @@ inline bool check_playerid(int32_t playerid) {
//#define MSG_START 4
#define MSG_WIN 5
//#define MSG_UPDATE_DATA 6
//
#define MSG_UPDATE_CARD 7
#define MSG_UPDATE_CARD 7
//#define MSG_REQUEST_DECK 8
#define MSG_SELECT_BATTLECMD 10
#define MSG_SELECT_IDLECMD 11
...
...
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