Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
YGOPRO-520DIY
ygopro
Commits
3ff95240
Commit
3ff95240
authored
Aug 19, 2015
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
b60f17bb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
101 additions
and
98 deletions
+101
-98
ocgcore/field.h
ocgcore/field.h
+1
-0
ocgcore/processor.cpp
ocgcore/processor.cpp
+100
-98
No files found.
ocgcore/field.h
View file @
3ff95240
...
@@ -272,6 +272,7 @@ struct processor {
...
@@ -272,6 +272,7 @@ struct processor {
uint8
remove_brainwashing
;
uint8
remove_brainwashing
;
uint8
flip_delayed
;
uint8
flip_delayed
;
uint8
damage_calculated
;
uint8
damage_calculated
;
uint8
hand_adjusted
;
uint8
summon_state_count
[
2
];
uint8
summon_state_count
[
2
];
uint8
normalsummon_state_count
[
2
];
uint8
normalsummon_state_count
[
2
];
uint8
flipsummon_state_count
[
2
];
uint8
flipsummon_state_count
[
2
];
...
...
ocgcore/processor.cpp
View file @
3ff95240
...
@@ -1351,6 +1351,7 @@ int32 field::process_phase_event(int16 step, int32 phase) {
...
@@ -1351,6 +1351,7 @@ int32 field::process_phase_event(int16 step, int32 phase) {
cn_count++;
cn_count++;
}
}
core.spe_effect[check_player] = 0;
core.spe_effect[check_player] = 0;
if(!core.hand_adjusted) {
pr = effects.trigger_o_effect.equal_range(phase_event);
pr = effects.trigger_o_effect.equal_range(phase_event);
for(; pr.first != pr.second; ++pr.first) {
for(; pr.first != pr.second; ++pr.first) {
peffect = pr.first->second;
peffect = pr.first->second;
...
@@ -1397,6 +1398,7 @@ int32 field::process_phase_event(int16 step, int32 phase) {
...
@@ -1397,6 +1398,7 @@ int32 field::process_phase_event(int16 step, int32 phase) {
core.select_chains.push_back(newchain);
core.select_chains.push_back(newchain);
fc_count++;
fc_count++;
}
}
}
if(core.select_chains.size() == 0) {
if(core.select_chains.size() == 0) {
returns.ivalue[0] = -1;
returns.ivalue[0] = -1;
core.units.begin()->step = 1;
core.units.begin()->step = 1;
...
@@ -1520,6 +1522,7 @@ int32 field::process_phase_event(int16 step, int32 phase) {
...
@@ -1520,6 +1522,7 @@ int32 field::process_phase_event(int16 step, int32 phase) {
cn_count++;
cn_count++;
}
}
core.spe_effect[check_player] = 0;
core.spe_effect[check_player] = 0;
if(!core.hand_adjusted) {
pr = effects.trigger_o_effect.equal_range(phase_event);
pr = effects.trigger_o_effect.equal_range(phase_event);
for(; pr.first != pr.second; ++pr.first) {
for(; pr.first != pr.second; ++pr.first) {
peffect = pr.first->second;
peffect = pr.first->second;
...
@@ -1568,6 +1571,7 @@ int32 field::process_phase_event(int16 step, int32 phase) {
...
@@ -1568,6 +1571,7 @@ int32 field::process_phase_event(int16 step, int32 phase) {
core.select_chains.push_back(newchain);
core.select_chains.push_back(newchain);
fc_count++;
fc_count++;
}
}
}
if(core.select_chains.size() == 0) {
if(core.select_chains.size() == 0) {
returns.ivalue[0] = -1;
returns.ivalue[0] = -1;
core.units.begin()->step = 11;
core.units.begin()->step = 11;
...
@@ -1691,6 +1695,7 @@ int32 field::process_phase_event(int16 step, int32 phase) {
...
@@ -1691,6 +1695,7 @@ int32 field::process_phase_event(int16 step, int32 phase) {
return FALSE;
return FALSE;
}
}
case 22: {
case 22: {
core.hand_adjusted = TRUE;
add_process(PROCESSOR_POINT_EVENT, 0, 0, 0, 0, 0);
add_process(PROCESSOR_POINT_EVENT, 0, 0, 0, 0, 0);
core.units.begin()->step = -1;
core.units.begin()->step = -1;
return FALSE;
return FALSE;
...
@@ -1702,11 +1707,6 @@ int32 field::process_phase_event(int16 step, int32 phase) {
...
@@ -1702,11 +1707,6 @@ int32 field::process_phase_event(int16 step, int32 phase) {
return FALSE;
return FALSE;
}
}
case 26: {
case 26: {
if(core.new_fchain.size() || core.new_ochain.size()) {
add_process(PROCESSOR_POINT_EVENT, 0, 0, 0, 0, 0);
core.units.begin()->step = -1;
return FALSE;
}
core.quick_f_chain.clear();
core.quick_f_chain.clear();
core.instant_event.clear();
core.instant_event.clear();
core.point_event.clear();
core.point_event.clear();
...
@@ -2018,9 +2018,10 @@ int32 field::process_point_event(int16 step, int32 skip_trigger, int32 skip_free
...
@@ -2018,9 +2018,10 @@ int32 field::process_point_event(int16 step, int32 skip_trigger, int32 skip_free
case 9: {
case 9: {
infos.priorities[0] = 0;
infos.priorities[0] = 0;
infos.priorities[1] = 0;
infos.priorities[1] = 0;
if(core.current_chain.size() == 0)
if(core.current_chain.size() == 0) {
if(!core.hand_adjusted)
add_process(PROCESSOR_QUICK_EFFECT, 0, 0, 0, skip_freechain, infos.turn_player);
add_process(PROCESSOR_QUICK_EFFECT, 0, 0, 0, skip_freechain, infos.turn_player);
else
}
else
add_process(PROCESSOR_QUICK_EFFECT, 0, 0, 0, skip_freechain, 1 - core.current_chain.back().triggering_player);
add_process(PROCESSOR_QUICK_EFFECT, 0, 0, 0, skip_freechain, 1 - core.current_chain.back().triggering_player);
return FALSE;
return FALSE;
}
}
...
@@ -4086,6 +4087,7 @@ int32 field::process_turn(uint16 step, uint8 turn_player) {
...
@@ -4086,6 +4087,7 @@ int32 field::process_turn(uint16 step, uint8 turn_player) {
}
}
infos.phase = PHASE_DRAW;
infos.phase = PHASE_DRAW;
core.phase_action = FALSE;
core.phase_action = FALSE;
core.hand_adjusted = FALSE;
raise_event((card*)0, EVENT_PHASE_START + PHASE_DRAW, 0, 0, 0, turn_player, 0);
raise_event((card*)0, EVENT_PHASE_START + PHASE_DRAW, 0, 0, 0, turn_player, 0);
process_instant_event();
process_instant_event();
adjust_all();
adjust_all();
...
...
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