Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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
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
MyCard
ygopro-2pick
Commits
6e291f6f
Commit
6e291f6f
authored
Oct 16, 2017
by
Momobako
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updc
parent
38713158
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
ocgcore/effect.h
ocgcore/effect.h
+1
-1
ocgcore/libcard.cpp
ocgcore/libcard.cpp
+0
-3
ocgcore/libduel.cpp
ocgcore/libduel.cpp
+0
-3
ocgcore/operations.cpp
ocgcore/operations.cpp
+7
-1
No files found.
ocgcore/effect.h
View file @
6e291f6f
...
...
@@ -108,7 +108,7 @@ public:
//status
#define EFFECT_STATUS_AVAILABLE 0x0001
#define EFFECT_STATUS_ACTIVATED 0x0002
//
#define EFFECT_STATUS_ACTIVATED 0x0002
#define EFFECT_COUNT_CODE_OATH 0x10000000
#define EFFECT_COUNT_CODE_DUEL 0x20000000
...
...
ocgcore/libcard.cpp
View file @
6e291f6f
...
...
@@ -1450,9 +1450,6 @@ int32 scriptlib::card_register_effect(lua_State *L) {
pduel
->
game_field
->
core
.
reseted_effects
.
insert
(
peffect
);
return
0
;
}
if
((
peffect
->
type
&
0x7f0
)
||
(
pduel
->
game_field
->
core
.
reason_effect
&&
(
pduel
->
game_field
->
core
.
reason_effect
->
status
&
EFFECT_STATUS_ACTIVATED
)))
peffect
->
status
|=
EFFECT_STATUS_ACTIVATED
;
int32
id
;
if
(
peffect
->
handler
)
id
=
-
1
;
...
...
ocgcore/libduel.cpp
View file @
6e291f6f
...
...
@@ -219,9 +219,6 @@ int32 scriptlib::duel_register_effect(lua_State *L) {
if
(
playerid
!=
0
&&
playerid
!=
1
)
return
0
;
duel
*
pduel
=
peffect
->
pduel
;
if
((
peffect
->
type
&
0x7f0
)
||
(
pduel
->
game_field
->
core
.
reason_effect
&&
(
pduel
->
game_field
->
core
.
reason_effect
->
status
&
EFFECT_STATUS_ACTIVATED
)))
peffect
->
status
|=
EFFECT_STATUS_ACTIVATED
;
pduel
->
game_field
->
add_effect
(
peffect
,
playerid
);
return
0
;
}
...
...
ocgcore/operations.cpp
View file @
6e291f6f
...
...
@@ -5491,8 +5491,10 @@ int32 field::select_tribute_cards(int16 step, uint8 playerid, uint8 cancelable,
core
.
operated_set
.
insert
(
pcard
);
core
.
release_cards
.
erase
(
pcard
);
if
(
min
<=
(
int32
)
pcard
->
release_param
)
{
if
(
max
>
1
&&
(
!
core
.
release_cards
.
empty
()
||
!
core
.
release_cards_ex
.
empty
()
||
!
core
.
release_cards_ex_sum
.
empty
()))
if
(
max
>
1
&&
core
.
release_cards_ex
.
empty
()
&&
(
!
core
.
release_cards
.
empty
()
||
!
core
.
release_cards_ex_sum
.
empty
()))
add_process
(
PROCESSOR_SELECT_YESNO
,
0
,
0
,
0
,
playerid
,
210
);
else
if
(
max
>
1
&&
!
core
.
release_cards_ex
.
empty
())
returns
.
ivalue
[
0
]
=
TRUE
;
else
core
.
units
.
begin
()
->
step
=
8
;
}
else
...
...
@@ -5601,6 +5603,8 @@ int32 field::select_tribute_cards(int16 step, uint8 playerid, uint8 cancelable,
rmax
+=
(
*
cit
)
->
release_param
;
min
-=
rmax
;
max
-=
rmin
;
min
=
min
>
0
?
min
:
0
;
max
=
max
>
0
?
max
:
0
;
core
.
units
.
begin
()
->
arg2
=
(
max
<<
16
)
+
min
;
if
(
min
<=
0
)
{
if
(
max
>
0
&&
!
core
.
release_cards
.
empty
())
...
...
@@ -5706,6 +5710,8 @@ int32 field::select_tribute_cards(int16 step, uint8 playerid, uint8 cancelable,
max
--
;
fcount
++
;
}
min
=
min
>
0
?
min
:
0
;
max
=
max
>
0
?
max
:
0
;
core
.
units
.
begin
()
->
arg2
=
(
max
<<
16
)
+
min
;
if
(
core
.
release_cards
.
size
()
==
0
||
(
fcount
<=
0
&&
min
<
2
))
{
...
...
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