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
a1150fb5
Commit
a1150fb5
authored
Aug 21, 2014
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
cda2b2ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
6 deletions
+26
-6
ocgcore/processor.cpp
ocgcore/processor.cpp
+26
-6
No files found.
ocgcore/processor.cpp
View file @
a1150fb5
...
...
@@ -1394,7 +1394,8 @@ int32 field::process_phase_event(int16 step, int32 phase) {
fc_count++;
}
if(core.select_chains.size() == 0) {
core
.
units
.
begin
()
->
step
=
9
;
returns.ivalue[0] = -1;
core.units.begin()->step = 1;
return FALSE;
} else if(tf_count == 1 && to_count == 0 && fc_count == 0 && cn_count == 0) {
returns.ivalue[0] = 0;
...
...
@@ -1428,9 +1429,18 @@ int32 field::process_phase_event(int16 step, int32 phase) {
case 2: {
chain newchain;
if(returns.ivalue[0] == -1) {
core
.
units
.
begin
()
->
step
=
9
;
if(core.units.begin()->arg2 == 1)
core.units.begin()->step = 19;
else {
if(core.units.begin()->arg2 == 0)
core.units.begin()->arg2 = 1;
else
core.units.begin()->arg2 = 0;
core.units.begin()->step = 9;
}
return FALSE;
}
core.units.begin()->arg2 = 2;
newchain = core.select_chains[returns.ivalue[0]];
effect* peffect = newchain.triggering_effect;
if(!(peffect->type & EFFECT_TYPE_CONTINUOUS)) {
...
...
@@ -1442,7 +1452,7 @@ int32 field::process_phase_event(int16 step, int32 phase) {
newchain.triggering_sequence = peffect->handler->current.sequence;
newchain.triggering_player = infos.turn_player;
core.new_chains.push_back(newchain);
newchain
.
triggering_
effect
->
handler
->
set_status
(
STATUS_CHAINING
,
TRUE
);
p
effect->handler->set_status(STATUS_CHAINING, TRUE);
peffect->dec_count(infos.turn_player);
core.select_chains.clear();
add_process(PROCESSOR_ADD_CHAIN, 0, 0, 0, 0, 0);
...
...
@@ -1554,7 +1564,8 @@ int32 field::process_phase_event(int16 step, int32 phase) {
fc_count++;
}
if(core.select_chains.size() == 0) {
core
.
units
.
begin
()
->
step
=
19
;
returns.ivalue[0] = -1;
core.units.begin()->step = 11;
return FALSE;
} else if(tf_count == 1 && to_count == 0 && fc_count == 0 && cn_count == 0) {
returns.ivalue[0] = 0;
...
...
@@ -1588,9 +1599,18 @@ int32 field::process_phase_event(int16 step, int32 phase) {
case 12: {
chain newchain;
if(returns.ivalue[0] == -1) {
core
.
units
.
begin
()
->
step
=
19
;
if(core.units.begin()->arg2 == 1)
core.units.begin()->step = 19;
else {
if(core.units.begin()->arg2 == 0)
core.units.begin()->arg2 = 1;
else
core.units.begin()->arg2 = 0;
core.units.begin()->step = -1;
}
return FALSE;
}
core.units.begin()->arg2 = 2;
newchain = core.select_chains[returns.ivalue[0]];
effect* peffect = newchain.triggering_effect;
if(!(peffect->type & EFFECT_TYPE_CONTINUOUS)) {
...
...
@@ -1602,7 +1622,7 @@ int32 field::process_phase_event(int16 step, int32 phase) {
newchain.triggering_sequence = peffect->handler->current.sequence;
newchain.triggering_player = 1 - infos.turn_player;
core.new_chains.push_back(newchain);
newchain
.
triggering_
effect
->
handler
->
set_status
(
STATUS_CHAINING
,
TRUE
);
p
effect->handler->set_status(STATUS_CHAINING, TRUE);
peffect->dec_count(1 - infos.turn_player);
core.select_chains.clear();
add_process(PROCESSOR_ADD_CHAIN, 0, 0, 0, 0, 0);
...
...
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