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
729aba23
Commit
729aba23
authored
Jan 13, 2025
by
Nanahira
Committed by
GitHub
Jan 13, 2025
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #30 from mycard/develop-8888
Develop 8888
parents
ffd1733e
be4a9106
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
14 deletions
+14
-14
.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
+4
-4
operations.cpp
operations.cpp
+2
-2
No files found.
.github/workflows/build.yml
View file @
729aba23
...
...
@@ -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 @
729aba23
...
...
@@ -2320,9 +2320,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
);
...
...
@@ -2339,7 +2339,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 @
729aba23
...
...
@@ -458,7 +458,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 @
729aba23
...
...
@@ -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
;
...
...
@@ -77,11 +77,11 @@ extern "C" DECL_DLLEXPORT void start_duel(intptr_t pduel, uint32_t options) {
}
pd
->
game_field
->
core
.
duel_options
|=
options
&
0xffff
;
int32_t
duel_rule
=
options
>>
16
;
if
(
duel_rule
)
if
(
duel_rule
>=
1
&&
duel_rule
<=
CURRENT_RULE
)
pd
->
game_field
->
core
.
duel_rule
=
duel_rule
;
else
if
(
options
&
DUEL_OBSOLETE_RULING
)
//provide backward compatibility with replay
pd
->
game_field
->
core
.
duel_rule
=
1
;
if
(
pd
->
game_field
->
core
.
duel_rule
<
1
||
pd
->
game_field
->
core
.
duel_rule
>
CURRENT_RULE
)
else
pd
->
game_field
->
core
.
duel_rule
=
CURRENT_RULE
;
if
(
pd
->
game_field
->
core
.
duel_rule
==
MASTER_RULE3
)
{
pd
->
game_field
->
player
[
0
].
szone_size
=
8
;
...
...
operations.cpp
View file @
729aba23
...
...
@@ -3835,7 +3835,7 @@ int32_t field::destroy(uint16_t step, group * targets, effect * reason_effect, u
return
TRUE
;
}
int32_t
field
::
release_replace
(
uint16_t
step
,
group
*
targets
,
card
*
target
)
{
if
(
!
(
target
->
current
.
location
&
(
LOCATION_ONFIELD
|
LOCATION_HAND
)
))
{
if
(
target
->
current
.
location
&
(
LOCATION_GRAVE
|
LOCATION_REMOVED
))
{
target
->
current
.
reason
=
target
->
temp
.
reason
;
target
->
current
.
reason_effect
=
target
->
temp
.
reason_effect
;
target
->
current
.
reason_player
=
target
->
temp
.
reason_player
;
...
...
@@ -3892,7 +3892,7 @@ int32_t field::release(uint16_t step, group * targets, effect * reason_effect, u
if
(
cv
.
size
()
>
1
)
std
::
sort
(
cv
.
begin
(),
cv
.
end
(),
card
::
card_operation_sort
);
for
(
auto
&
pcard
:
cv
)
{
if
(
!
(
pcard
->
current
.
location
&
(
LOCATION_ONFIELD
|
LOCATION_HAND
)
))
{
if
(
pcard
->
current
.
location
&
(
LOCATION_GRAVE
|
LOCATION_REMOVED
))
{
pcard
->
current
.
reason
=
pcard
->
temp
.
reason
;
pcard
->
current
.
reason_effect
=
pcard
->
temp
.
reason_effect
;
pcard
->
current
.
reason_player
=
pcard
->
temp
.
reason_player
;
...
...
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