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
7e1801e0
Commit
7e1801e0
authored
Nov 17, 2024
by
Chen Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use nullptr
parent
12f93a21
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
libduel.cpp
libduel.cpp
+2
-2
operations.cpp
operations.cpp
+5
-5
No files found.
libduel.cpp
View file @
7e1801e0
...
...
@@ -1990,7 +1990,7 @@ int32 scriptlib::duel_get_mzone_count(lua_State *L) {
used_location
[
p
]
|=
digit
;
list_mzone
[
p
].
push_back
(
pcard
);
}
else
list_mzone
[
p
].
push_back
(
0
);
list_mzone
[
p
].
push_back
(
nullptr
);
digit
<<=
1
;
}
used_location
[
p
]
|=
pduel
->
game_field
->
player
[
p
].
used_location
&
0xff00
;
...
...
@@ -2049,7 +2049,7 @@ int32 scriptlib::duel_get_location_count_fromex(lua_State *L) {
used_location
[
p
]
|=
digit
;
list_mzone
[
p
].
push_back
(
pcard
);
}
else
list_mzone
[
p
].
push_back
(
0
);
list_mzone
[
p
].
push_back
(
nullptr
);
digit
<<=
1
;
}
used_location
[
p
]
|=
pduel
->
game_field
->
player
[
p
].
used_location
&
0xff00
;
...
...
operations.cpp
View file @
7e1801e0
...
...
@@ -641,7 +641,7 @@ int32 field::pay_lp_cost(uint32 step, uint8 playerid, uint32 cost, uint32 must_p
core
.
select_effects
.
clear
();
if
(
val
<=
player
[
playerid
].
lp
)
{
core
.
select_options
.
push_back
(
11
);
core
.
select_effects
.
push_back
(
0
);
core
.
select_effects
.
push_back
(
nullptr
);
}
if
(
must_pay
)
{
if
(
core
.
select_options
.
size
()
==
0
)
...
...
@@ -786,7 +786,7 @@ int32 field::remove_overlay_card(uint16 step, uint32 reason, card* pcard, uint8
core
.
select_effects
.
clear
();
if
((
pcard
&&
(
int32
)
pcard
->
xyz_materials
.
size
()
>=
min
)
||
(
!
pcard
&&
get_overlay_count
(
rplayer
,
s
,
o
)
>=
min
))
{
core
.
select_options
.
push_back
(
12
);
core
.
select_effects
.
push_back
(
0
);
core
.
select_effects
.
push_back
(
nullptr
);
}
auto
pr
=
effects
.
continuous_effect
.
equal_range
(
EFFECT_OVERLAY_REMOVE_REPLACE
);
tevent
e
;
...
...
@@ -1529,7 +1529,7 @@ int32 field::summon(uint16 step, uint8 sumplayer, card* target, effect* proc, ui
core
.
select_effects
.
clear
();
core
.
select_options
.
clear
();
if
(
ignore_count
||
core
.
summon_count
[
sumplayer
]
<
get_summon_count_limit
(
sumplayer
))
{
core
.
select_effects
.
push_back
(
0
);
core
.
select_effects
.
push_back
(
nullptr
);
core
.
select_options
.
push_back
(
1
);
}
if
(
!
ignore_count
&&
!
core
.
extra_summon
[
sumplayer
])
{
...
...
@@ -2104,7 +2104,7 @@ int32 field::mset(uint16 step, uint8 setplayer, card* target, effect* proc, uint
core
.
select_effects
.
clear
();
core
.
select_options
.
clear
();
if
(
res
>
0
)
{
core
.
select_effects
.
push_back
(
0
);
core
.
select_effects
.
push_back
(
nullptr
);
core
.
select_options
.
push_back
(
1
);
}
for
(
int32
i
=
0
;
i
<
eset
.
size
();
++
i
)
{
...
...
@@ -2129,7 +2129,7 @@ int32 field::mset(uint16 step, uint8 setplayer, card* target, effect* proc, uint
core
.
select_effects
.
clear
();
core
.
select_options
.
clear
();
if
(
ignore_count
||
core
.
summon_count
[
setplayer
]
<
get_summon_count_limit
(
setplayer
))
{
core
.
select_effects
.
push_back
(
0
);
core
.
select_effects
.
push_back
(
nullptr
);
core
.
select_options
.
push_back
(
1
);
}
if
(
!
ignore_count
&&
!
core
.
extra_summon
[
setplayer
])
{
...
...
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