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
6830f58c
Commit
6830f58c
authored
Nov 23, 2024
by
Nanahira
Committed by
GitHub
Nov 23, 2024
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #23 from mycard/develop-8888
remove const for link functions
parents
9f997a2a
83322f52
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
card.cpp
card.cpp
+4
-4
card.h
card.h
+4
-4
No files found.
card.cpp
View file @
6830f58c
...
@@ -1345,7 +1345,7 @@ uint32 card::get_rscale() {
...
@@ -1345,7 +1345,7 @@ uint32 card::get_rscale() {
temp.rscale = UINT32_MAX;
temp.rscale = UINT32_MAX;
return rscale;
return rscale;
}
}
uint32 card::get_link_marker()
const
{
uint32 card::get_link_marker() {
effect_set effects;
effect_set effects;
effect_set effects2;
effect_set effects2;
uint32 link_marker = data.link_marker;
uint32 link_marker = data.link_marker;
...
@@ -1378,10 +1378,10 @@ uint32 card::get_link_marker() const {
...
@@ -1378,10 +1378,10 @@ uint32 card::get_link_marker() const {
}
}
return link_marker;
return link_marker;
}
}
uint32 card::is_link_marker(uint32 dir)
const
{
uint32 card::is_link_marker(uint32 dir) {
return get_link_marker() & dir;
return get_link_marker() & dir;
}
}
uint32 card::get_linked_zone()
const
{
uint32 card::get_linked_zone() {
if((!(data.type & TYPE_LINK) || current.location != LOCATION_MZONE || is_treated_as_not_on_field())
if((!(data.type & TYPE_LINK) || current.location != LOCATION_MZONE || is_treated_as_not_on_field())
&& (!is_affected_by_effect(EFFECT_LINK_SPELL_KOISHI) || current.location != LOCATION_SZONE))
&& (!is_affected_by_effect(EFFECT_LINK_SPELL_KOISHI) || current.location != LOCATION_SZONE))
return 0;
return 0;
...
@@ -1448,7 +1448,7 @@ void card::get_linked_cards(card_set* cset) {
...
@@ -1448,7 +1448,7 @@ void card::get_linked_cards(card_set* cset) {
pduel->game_field->get_cards_in_zone(cset, linked_zone, p, LOCATION_MZONE);
pduel->game_field->get_cards_in_zone(cset, linked_zone, p, LOCATION_MZONE);
pduel->game_field->get_cards_in_zone(cset, linked_zone >> 16, 1 - p, LOCATION_MZONE);
pduel->game_field->get_cards_in_zone(cset, linked_zone >> 16, 1 - p, LOCATION_MZONE);
}
}
uint32 card::get_mutual_linked_zone()
const
{
uint32 card::get_mutual_linked_zone() {
if(!(data.type & TYPE_LINK) || current.location != LOCATION_MZONE || is_treated_as_not_on_field())
if(!(data.type & TYPE_LINK) || current.location != LOCATION_MZONE || is_treated_as_not_on_field())
return 0;
return 0;
uint32 zones = 0;
uint32 zones = 0;
...
...
card.h
View file @
6830f58c
...
@@ -272,11 +272,11 @@ public:
...
@@ -272,11 +272,11 @@ public:
uint32
get_grave_race
(
uint8
playerid
);
uint32
get_grave_race
(
uint8
playerid
);
uint32
get_lscale
();
uint32
get_lscale
();
uint32
get_rscale
();
uint32
get_rscale
();
uint32
get_link_marker
()
const
;
uint32
get_link_marker
();
uint32
is_link_marker
(
uint32
dir
)
const
;
uint32
is_link_marker
(
uint32
dir
);
uint32
get_linked_zone
()
const
;
uint32
get_linked_zone
();
void
get_linked_cards
(
card_set
*
cset
);
void
get_linked_cards
(
card_set
*
cset
);
uint32
get_mutual_linked_zone
()
const
;
uint32
get_mutual_linked_zone
();
void
get_mutual_linked_cards
(
card_set
*
cset
);
void
get_mutual_linked_cards
(
card_set
*
cset
);
int32
is_link_state
();
int32
is_link_state
();
int32
is_extra_link_state
();
int32
is_extra_link_state
();
...
...
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