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
06438b48
Commit
06438b48
authored
Jan 12, 2025
by
Chen Bill
Committed by
GitHub
Jan 12, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix field::check_lp_cost (#708)
parent
4c3538b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
field.cpp
field.cpp
+3
-3
field.h
field.h
+1
-1
No files found.
field.cpp
View file @
06438b48
...
@@ -2294,9 +2294,9 @@ int32_t field::check_spsummon_counter(uint8_t playerid, uint8_t ct) {
...
@@ -2294,9 +2294,9 @@ int32_t field::check_spsummon_counter(uint8_t playerid, uint8_t ct) {
bool
field
::
is_select_hide_deck_sequence
(
uint8_t
playerid
)
{
bool
field
::
is_select_hide_deck_sequence
(
uint8_t
playerid
)
{
return
!
core
.
select_deck_sequence_revealed
&&
!
(
core
.
duel_options
&
DUEL_REVEAL_DECK_SEQ
)
&&
playerid
==
core
.
selecting_player
;
return
!
core
.
select_deck_sequence_revealed
&&
!
(
core
.
duel_options
&
DUEL_REVEAL_DECK_SEQ
)
&&
playerid
==
core
.
selecting_player
;
}
}
int32_t
field
::
check_lp_cost
(
uint8_t
playerid
,
uint32_t
lp
,
uint32_t
must_pay
)
{
int32_t
field
::
check_lp_cost
(
uint8_t
playerid
,
int32_t
cost
,
uint32_t
must_pay
)
{
effect_set
eset
;
effect_set
eset
;
int32_t
val
=
lp
;
int32_t
val
=
cost
;
filter_player_effect
(
playerid
,
EFFECT_LPCOST_CHANGE
,
&
eset
);
filter_player_effect
(
playerid
,
EFFECT_LPCOST_CHANGE
,
&
eset
);
for
(
int32_t
i
=
0
;
i
<
eset
.
size
();
++
i
)
{
for
(
int32_t
i
=
0
;
i
<
eset
.
size
();
++
i
)
{
pduel
->
lua
->
add_param
(
core
.
reason_effect
,
PARAM_TYPE_EFFECT
);
pduel
->
lua
->
add_param
(
core
.
reason_effect
,
PARAM_TYPE_EFFECT
);
...
@@ -2313,7 +2313,7 @@ int32_t field::check_lp_cost(uint8_t playerid, uint32_t lp, uint32_t must_pay) {
...
@@ -2313,7 +2313,7 @@ int32_t field::check_lp_cost(uint8_t playerid, uint32_t lp, uint32_t must_pay) {
tevent
e
;
tevent
e
;
e
.
event_cards
=
0
;
e
.
event_cards
=
0
;
e
.
event_player
=
playerid
;
e
.
event_player
=
playerid
;
e
.
event_value
=
lp
;
e
.
event_value
=
cost
;
e
.
reason
=
0
;
e
.
reason
=
0
;
e
.
reason_effect
=
core
.
reason_effect
;
e
.
reason_effect
=
core
.
reason_effect
;
e
.
reason_player
=
playerid
;
e
.
reason_player
=
playerid
;
...
...
field.h
View file @
06438b48
...
@@ -455,7 +455,7 @@ public:
...
@@ -455,7 +455,7 @@ public:
int32_t
check_spsummon_counter
(
uint8_t
playerid
,
uint8_t
ct
=
1
);
int32_t
check_spsummon_counter
(
uint8_t
playerid
,
uint8_t
ct
=
1
);
bool
is_select_hide_deck_sequence
(
uint8_t
playerid
);
bool
is_select_hide_deck_sequence
(
uint8_t
playerid
);
int32_t check_lp_cost(uint8_t playerid,
u
int32_t cost, uint32_t must_pay);
int32_t
check_lp_cost
(
uint8_t
playerid
,
int32_t
cost
,
uint32_t
must_pay
);
void
save_lp_cost
()
{}
void
save_lp_cost
()
{}
void
restore_lp_cost
()
{}
void
restore_lp_cost
()
{}
int32_t
pay_lp_cost
(
uint32_t
step
,
uint8_t
playerid
,
uint32_t
cost
,
uint32_t
must_pay
);
int32_t
pay_lp_cost
(
uint32_t
step
,
uint8_t
playerid
,
uint32_t
cost
,
uint32_t
must_pay
);
...
...
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