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
a517fad9
Commit
a517fad9
authored
Jan 09, 2024
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
card_state: setcode use uint16_t
parent
af4efd81
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
card.cpp
card.cpp
+2
-2
card.h
card.h
+1
-1
operations.cpp
operations.cpp
+1
-1
No files found.
card.cpp
View file @
a517fad9
...
@@ -2544,7 +2544,7 @@ void card::set_special_summon_status(effect* peffect) {
...
@@ -2544,7 +2544,7 @@ void card::set_special_summon_status(effect* peffect) {
effect_set
eset
;
effect_set
eset
;
pcard
->
filter_effect
(
EFFECT_ADD_SETCODE
,
&
eset
);
pcard
->
filter_effect
(
EFFECT_ADD_SETCODE
,
&
eset
);
for
(
int32
i
=
0
;
i
<
eset
.
size
();
++
i
)
{
for
(
int32
i
=
0
;
i
<
eset
.
size
();
++
i
)
{
spsummon
.
setcode
.
push_back
((
uint32
)
eset
[
i
]
->
get_value
(
pcard
));
spsummon
.
setcode
.
push_back
((
uint32
)
eset
[
i
]
->
get_value
(
pcard
)
&
0xffff
);
}
}
spsummon
.
reason_effect
=
peffect
;
spsummon
.
reason_effect
=
peffect
;
spsummon
.
reason_player
=
peffect
->
get_handler_player
();
spsummon
.
reason_player
=
peffect
->
get_handler_player
();
...
@@ -2563,7 +2563,7 @@ void card::set_special_summon_status(effect* peffect) {
...
@@ -2563,7 +2563,7 @@ void card::set_special_summon_status(effect* peffect) {
effect_set
eset
;
effect_set
eset
;
pcard
->
filter_effect
(
EFFECT_ADD_SETCODE
,
&
eset
);
pcard
->
filter_effect
(
EFFECT_ADD_SETCODE
,
&
eset
);
for
(
int32
i
=
0
;
i
<
eset
.
size
();
++
i
)
{
for
(
int32
i
=
0
;
i
<
eset
.
size
();
++
i
)
{
spsummon
.
setcode
.
push_back
((
uint32
)
eset
[
i
]
->
get_value
(
pcard
));
spsummon
.
setcode
.
push_back
((
uint32
)
eset
[
i
]
->
get_value
(
pcard
)
&
0xffff
);
}
}
spsummon
.
reason_effect
=
cait
->
triggering_effect
;
spsummon
.
reason_effect
=
cait
->
triggering_effect
;
spsummon
.
reason_player
=
cait
->
triggering_player
;
spsummon
.
reason_player
=
cait
->
triggering_player
;
...
...
card.h
View file @
a517fad9
...
@@ -26,7 +26,7 @@ struct chain;
...
@@ -26,7 +26,7 @@ struct chain;
struct
card_state
{
struct
card_state
{
uint32
code
{
0
};
uint32
code
{
0
};
uint32
code2
{
0
};
uint32
code2
{
0
};
std
::
vector
<
uint
32
>
setcode
;
std
::
vector
<
uint
16_t
>
setcode
;
uint32
type
{
0
};
uint32
type
{
0
};
uint32
level
{
0
};
uint32
level
{
0
};
uint32
rank
{
0
};
uint32
rank
{
0
};
...
...
operations.cpp
View file @
a517fad9
...
@@ -3946,7 +3946,7 @@ int32 field::send_to(uint16 step, group * targets, effect * reason_effect, uint3
...
@@ -3946,7 +3946,7 @@ int32 field::send_to(uint16 step, group * targets, effect * reason_effect, uint3
effect_set
eset
;
effect_set
eset
;
pcard
->
filter_effect
(
EFFECT_ADD_SETCODE
,
&
eset
);
pcard
->
filter_effect
(
EFFECT_ADD_SETCODE
,
&
eset
);
for
(
int32
i
=
0
;
i
<
eset
.
size
();
++
i
)
{
for
(
int32
i
=
0
;
i
<
eset
.
size
();
++
i
)
{
pcard
->
previous
.
setcode
.
push_back
((
uint32
)
eset
[
i
]
->
get_value
(
pcard
));
pcard
->
previous
.
setcode
.
push_back
((
uint32
)
eset
[
i
]
->
get_value
(
pcard
)
&
0xffff
);
}
}
}
}
}
}
...
...
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