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
02aa68b3
Commit
02aa68b3
authored
Jan 13, 2025
by
wind2009
1
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'upstream/master' into develop
parents
d3e74f18
06438b48
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
.github/workflows/build.yml
.github/workflows/build.yml
+4
-4
field.cpp
field.cpp
+3
-3
field.h
field.h
+1
-1
ocgapi.cpp
ocgapi.cpp
+2
-2
No files found.
.github/workflows/build.yml
View file @
02aa68b3
...
...
@@ -24,10 +24,10 @@ jobs:
-
name
:
Premake
run
:
|
7z x temp
/
premake-5.0.0-beta2-windows.zip -opremake-5
move premake/lua.lua lua/
premake5.lua
move premake/
dll.lua dll.lua
.
/premake-5/
premake5.exe vs2022 --file=dll.lua
7z x temp
\
premake-5.0.0-beta2-windows.zip -opremake-5
copy premake\lua.lua lua\
premake5.lua
copy premake\
dll.lua dll.lua
.
\premake-5\
premake5.exe vs2022 --file=dll.lua
-
name
:
Add msbuild to PATH
uses
:
microsoft/setup-msbuild@v2
...
...
field.cpp
View file @
02aa68b3
...
...
@@ -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
)
{
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
;
int32_t
val
=
lp
;
int32_t
val
=
cost
;
filter_player_effect
(
playerid
,
EFFECT_LPCOST_CHANGE
,
&
eset
);
for
(
int32_t
i
=
0
;
i
<
eset
.
size
();
++
i
)
{
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) {
tevent
e
;
e
.
event_cards
=
0
;
e
.
event_player
=
playerid
;
e
.
event_value
=
lp
;
e
.
event_value
=
cost
;
e
.
reason
=
0
;
e
.
reason_effect
=
core
.
reason_effect
;
e
.
reason_player
=
playerid
;
...
...
field.h
View file @
02aa68b3
...
...
@@ -455,7 +455,7 @@ public:
int32_t
check_spsummon_counter
(
uint8_t
playerid
,
uint8_t
ct
=
1
);
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
restore_lp_cost
()
{}
int32_t
pay_lp_cost
(
uint32_t
step
,
uint8_t
playerid
,
uint32_t
cost
,
uint32_t
must_pay
);
...
...
ocgapi.cpp
View file @
02aa68b3
...
...
@@ -41,8 +41,8 @@ uint32_t read_card(uint32_t code, card_data* data) {
}
return
creader
(
code
,
data
);
}
uint32_t
handle_message
(
void
*
pduel
,
uint32_t
m
sg
_type
)
{
return
mhandler
((
intptr_t
)
pduel
,
m
sg
_type
);
uint32_t
handle_message
(
void
*
pduel
,
uint32_t
m
essage
_type
)
{
return
mhandler
((
intptr_t
)
pduel
,
m
essage
_type
);
}
byte
*
default_script_reader
(
const
char
*
script_name
,
int
*
slen
)
{
FILE
*
fp
;
...
...
wind2009
@wind2009
mentioned in commit
332107b7
·
Mar 20, 2025
mentioned in commit
332107b7
mentioned in commit 332107b766765b402740bfe7f543d53237dd8e50
Toggle commit list
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