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
99e40cab
Commit
99e40cab
authored
Aug 05, 2015
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
dda128da
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
19 deletions
+12
-19
ocgcore/field.cpp
ocgcore/field.cpp
+4
-3
ocgcore/operations.cpp
ocgcore/operations.cpp
+7
-5
ocgcore/playerop.cpp
ocgcore/playerop.cpp
+1
-11
No files found.
ocgcore/field.cpp
View file @
99e40cab
...
...
@@ -1896,9 +1896,10 @@ int32 field::check_xyz_material(card* scard, int32 findex, int32 lv, int32 min,
core
.
xmaterial_lst
.
insert
(
std
::
make_pair
((
xyz_level
>>
12
)
&
0xf
,
*
cit
));
}
if
(
core
.
global_flag
&
GLOBALFLAG_XMAT_COUNT_LIMIT
)
{
auto
iter
=
core
.
xmaterial_lst
.
begin
();
while
((
iter
!=
core
.
xmaterial_lst
.
end
())
&&
((
iter
->
first
>
(
int32
)
core
.
xmaterial_lst
.
size
())
||
(
iter
->
first
>
max
)))
core
.
xmaterial_lst
.
erase
(
iter
++
);
if
(
max
>
(
int32
)
core
.
xmaterial_lst
.
size
())
max
=
(
int32
)
core
.
xmaterial_lst
.
size
();
auto
iter
=
core
.
xmaterial_lst
.
lower_bound
(
max
);
core
.
xmaterial_lst
.
erase
(
core
.
xmaterial_lst
.
begin
(),
iter
);
}
}
else
get_xyz_material
(
scard
,
findex
,
lv
,
max
);
...
...
ocgcore/operations.cpp
View file @
99e40cab
...
...
@@ -1095,7 +1095,7 @@ int32 field::equip(uint16 step, uint8 equip_player, card * equip_card, card * ta
else
peffect
->
value
=
TYPE_EQUIP
+
TYPE_SPELL
;
peffect
->
flag
=
EFFECT_FLAG_CANNOT_DISABLE
;
peffect
->
reset_flag
=
RESET_EVENT
+
0x1
f
e0000
;
peffect
->
reset_flag
=
RESET_EVENT
+
0x1
7
e0000
;
equip_card
->
add_effect
(
peffect
);
}
equip_card
->
effect_target_cards
.
insert
(
target
);
...
...
@@ -1204,9 +1204,10 @@ int32 field::summon(uint16 step, uint8 sumplayer, card * target, effect * proc,
int32
required
=
target
->
get_summon_tribute_count
();
int32
min
=
required
&
0xffff
;
int32
max
=
required
>>
16
;
if
(
min
<
min_tribute
)
if
(
min
<
min_tribute
)
{
min
=
min_tribute
;
required
=
min
+
(
max
<<
16
);
required
=
min
+
(
max
<<
16
);
}
uint32
adv
=
is_player_can_summon
(
SUMMON_TYPE_ADVANCE
,
sumplayer
,
target
);
if
(
max
==
0
||
!
adv
)
{
returns
.
bvalue
[
0
]
=
0
;
...
...
@@ -1714,9 +1715,10 @@ int32 field::mset(uint16 step, uint8 setplayer, card * target, effect * proc, ui
int32
required
=
target
->
get_set_tribute_count
();
int32
min
=
required
&
0xffff
;
int32
max
=
required
>>
16
;
if
(
min
<
min_tribute
)
if
(
min
<
min_tribute
)
{
min
=
min_tribute
;
required
=
min
+
(
max
<<
16
);
required
=
min
+
(
max
<<
16
);
}
uint32
adv
=
is_player_can_mset
(
SUMMON_TYPE_ADVANCE
,
setplayer
,
target
);
if
(
max
==
0
||
!
adv
)
{
returns
.
bvalue
[
0
]
=
0
;
...
...
ocgcore/playerop.cpp
View file @
99e40cab
...
...
@@ -254,17 +254,7 @@ int32 field::select_card(uint16 step, uint8 playerid, uint8 cancelable, uint8 mi
for
(
uint32
i
=
0
;
i
<
core
.
select_cards
.
size
();
++
i
)
{
pcard
=
core
.
select_cards
[
i
];
pduel
->
write_buffer32
(
pcard
->
data
.
code
);
if
(
pcard
->
overlay_target
)
{
pduel
->
write_buffer8
(
pcard
->
overlay_target
->
current
.
controler
);
pduel
->
write_buffer8
(
pcard
->
overlay_target
->
current
.
location
|
LOCATION_OVERLAY
);
pduel
->
write_buffer8
(
pcard
->
overlay_target
->
current
.
sequence
);
pduel
->
write_buffer8
(
pcard
->
current
.
sequence
);
}
else
{
pduel
->
write_buffer8
(
pcard
->
current
.
controler
);
pduel
->
write_buffer8
(
pcard
->
current
.
location
);
pduel
->
write_buffer8
(
pcard
->
current
.
sequence
);
pduel
->
write_buffer8
(
pcard
->
current
.
position
);
}
pduel
->
write_buffer32
(
pcard
->
get_info_location
());
}
return
FALSE
;
}
else
{
...
...
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