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
14ebfd50
Commit
14ebfd50
authored
Dec 25, 2023
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:Fluorohydride/ygopro-core
parents
8a44abb6
57557b86
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
74 additions
and
61 deletions
+74
-61
effect.h
effect.h
+2
-2
libgroup.cpp
libgroup.cpp
+7
-2
operations.cpp
operations.cpp
+4
-1
processor.cpp
processor.cpp
+61
-56
No files found.
effect.h
View file @
14ebfd50
...
...
@@ -548,8 +548,8 @@ inline effect_flag operator|(effect_flag flag1, effect_flag flag2)
#define EVENT_REMOVE_COUNTER 0x20000
#define EVENT_CUSTOM 0x10000000
#define DOUBLE_DAMAGE 0x80000000
#define HALF_DAMAGE 0x80000001
constexpr
int32
DOUBLE_DAMAGE
=
0x80000000
;
constexpr
int32
HALF_DAMAGE
=
0x80000001
;
// flag effect
#define EFFECT_FLAG_EFFECT 0x20000000
...
...
libgroup.cpp
View file @
14ebfd50
...
...
@@ -393,6 +393,10 @@ int32 scriptlib::group_is_exists(lua_State *L) {
uint32
extraargs
=
lua_gettop
(
L
)
-
4
;
uint32
fcount
=
0
;
uint32
result
=
FALSE
;
if
(
count
>
pgroup
->
container
.
size
())
{
lua_pushboolean
(
L
,
0
);
return
1
;
}
for
(
auto
&
pcard
:
cset
)
{
if
(
pduel
->
lua
->
check_matching
(
pcard
,
2
,
extraargs
))
{
++
fcount
;
...
...
@@ -721,11 +725,12 @@ int32 scriptlib::group_search_card(lua_State *L) {
group
*
pgroup
=
*
(
group
**
)
lua_touserdata
(
L
,
1
);
duel
*
pduel
=
pgroup
->
pduel
;
uint32
extraargs
=
lua_gettop
(
L
)
-
2
;
for
(
auto
&
pcard
:
pgroup
->
container
)
if
(
pduel
->
lua
->
check_matching
(
pcard
,
2
,
extraargs
))
{
for
(
auto
&
pcard
:
pgroup
->
container
)
{
if
(
pduel
->
lua
->
check_matching
(
pcard
,
2
,
extraargs
))
{
interpreter
::
card2value
(
L
,
pcard
);
return
1
;
}
}
return
0
;
}
int32
scriptlib
::
group_get_bin_class_count
(
lua_State
*
L
)
{
...
...
operations.cpp
View file @
14ebfd50
...
...
@@ -589,7 +589,10 @@ int32 field::recover(uint16 step, effect* reason_effect, uint32 reason, uint8 re
if
(
reason
&
REASON_RDAMAGE
)
core
.
units
.
begin
()
->
step
=
2
;
core
.
hint_timing
[
playerid
]
|=
TIMING_RECOVER
;
int32
limit
=
INT32_MAX
-
player
[
playerid
].
lp
;
int32
limit
=
0
;
if
(
player
[
playerid
].
lp
>
0
)
{
limit
=
INT32_MAX
-
player
[
playerid
].
lp
;
}
int32
val
=
amount
;
if
(
val
>
limit
)
{
val
=
limit
;
...
...
processor.cpp
View file @
14ebfd50
This diff is collapsed.
Click to expand it.
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