Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOMobile
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
fallenstardust
YGOMobile
Commits
714b4255
Commit
714b4255
authored
Dec 23, 2023
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sync ocgcore
parent
89cc007b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
70 deletions
+38
-70
Classes/ocgcore/effect.cpp
Classes/ocgcore/effect.cpp
+0
-35
Classes/ocgcore/effect.h
Classes/ocgcore/effect.h
+34
-34
Classes/ocgcore/operations.cpp
Classes/ocgcore/operations.cpp
+4
-1
No files found.
Classes/ocgcore/effect.cpp
View file @
714b4255
...
...
@@ -27,43 +27,8 @@ bool is_continuous_event(uint32 code) {
}
effect
::
effect
(
duel
*
pd
)
{
ref_handle
=
0
;
pduel
=
pd
;
owner
=
0
;
handler
=
0
;
description
=
0
;
effect_owner
=
PLAYER_NONE
;
card_type
=
0
;
active_type
=
0
;
active_location
=
0
;
active_sequence
=
0
;
active_handler
=
0
;
id
=
0
;
code
=
0
;
type
=
0
;
flag
[
0
]
=
0
;
flag
[
1
]
=
0
;
copy_id
=
0
;
range
=
0
;
s_range
=
0
;
o_range
=
0
;
count_limit
=
0
;
count_limit_max
=
0
;
reset_count
=
0
;
reset_flag
=
0
;
count_code
=
0
;
category
=
0
;
label
.
reserve
(
4
);
label_object
=
0
;
hint_timing
[
0
]
=
0
;
hint_timing
[
1
]
=
0
;
status
=
0
;
condition
=
0
;
cost
=
0
;
target
=
0
;
value
=
0
;
operation
=
0
;
cost_checked
=
FALSE
;
}
int32
effect
::
is_disable_related
()
{
if
(
code
==
EFFECT_IMMUNE_EFFECT
||
code
==
EFFECT_DISABLE
||
code
==
EFFECT_CANNOT_DISABLE
||
code
==
EFFECT_FORBIDDEN
)
...
...
Classes/ocgcore/effect.h
View file @
714b4255
...
...
@@ -27,41 +27,41 @@ enum effect_flag2 : uint32;
class
effect
{
public:
int32
ref_handle
;
duel
*
pduel
;
card
*
owner
;
card
*
handler
;
uint8
effect_owner
;
uint32
description
;
uint32
code
;
uint32
flag
[
2
];
uint32
id
;
uint16
type
;
uint16
copy_id
;
uint16
range
;
uint16
s_range
;
uint16
o_range
;
uint8
count_limit
;
uint8
count_limit_max
;
uint16
reset_count
;
uint32
reset_flag
;
uint32
count_code
;
uint32
category
;
uint32
hint_timing
[
2
];
uint32
card_type
;
uint32
active_type
;
uint16
active_location
;
uint16
active_sequence
;
card
*
active_handler
;
uint16
status
;
int32
ref_handle
{
0
}
;
duel
*
pduel
{
nullptr
}
;
card
*
owner
{
nullptr
}
;
card
*
handler
{
nullptr
}
;
uint8
effect_owner
{
PLAYER_NONE
}
;
uint32
description
{
0
}
;
uint32
code
{
0
}
;
uint32
flag
[
2
]
{
0
}
;
uint32
id
{
0
}
;
uint16
type
{
0
}
;
uint16
copy_id
{
0
}
;
uint16
range
{
0
}
;
uint16
s_range
{
0
}
;
uint16
o_range
{
0
}
;
uint8
count_limit
{
0
}
;
uint8
count_limit_max
{
0
}
;
uint16
reset_count
{
0
}
;
uint32
reset_flag
{
0
}
;
uint32
count_code
{
0
}
;
uint32
category
{
0
}
;
uint32
hint_timing
[
2
]
{
0
}
;
uint32
card_type
{
0
}
;
uint32
active_type
{
0
}
;
uint16
active_location
{
0
}
;
uint16
active_sequence
{
0
}
;
card
*
active_handler
{
nullptr
}
;
uint16
status
{
0
}
;
std
::
vector
<
uint32
>
label
;
int32
label_object
;
int32
condition
;
int32
cost
;
int32
target
;
int32
value
;
int32
operation
;
uint8
cost_checked
;
int32
label_object
{
0
}
;
int32
condition
{
0
}
;
int32
cost
{
0
}
;
int32
target
{
0
}
;
int32
value
{
0
}
;
int32
operation
{
0
}
;
uint8
cost_checked
{
FALSE
}
;
explicit
effect
(
duel
*
pd
);
~
effect
()
=
default
;
...
...
Classes/ocgcore/operations.cpp
View file @
714b4255
...
...
@@ -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
;
...
...
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