Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-core
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
nanahira
ygopro-core
Commits
071a5d40
Commit
071a5d40
authored
Mar 26, 2016
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove GLOBALFLAG_DELAYED_QUICKEFFECT
parent
95bc5de8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
24 deletions
+18
-24
field.h
field.h
+1
-1
processor.cpp
processor.cpp
+17
-23
No files found.
field.h
View file @
071a5d40
...
@@ -591,7 +591,7 @@ public:
...
@@ -591,7 +591,7 @@ public:
#define GLOBALFLAG_DECK_REVERSE_CHECK 0x1
#define GLOBALFLAG_DECK_REVERSE_CHECK 0x1
#define GLOBALFLAG_BRAINWASHING_CHECK 0x2
#define GLOBALFLAG_BRAINWASHING_CHECK 0x2
#define GLOBALFLAG_SCRAP_CHIMERA 0x4
#define GLOBALFLAG_SCRAP_CHIMERA 0x4
#define GLOBALFLAG_DELAYED_QUICKEFFECT 0x8
//
#define GLOBALFLAG_DELAYED_QUICKEFFECT 0x8
#define GLOBALFLAG_DETACH_EVENT 0x10
#define GLOBALFLAG_DETACH_EVENT 0x10
#define GLOBALFLAG_MUST_BE_SMATERIAL 0x20
#define GLOBALFLAG_MUST_BE_SMATERIAL 0x20
#define GLOBALFLAG_SPSUMMON_COUNT 0x40
#define GLOBALFLAG_SPSUMMON_COUNT 0x40
...
...
processor.cpp
View file @
071a5d40
...
@@ -2088,23 +2088,21 @@ int32 field::process_quick_effect(int16 step, int32 skip_freechain, uint8 priori
...
@@ -2088,23 +2088,21 @@ int32 field::process_quick_effect(int16 step, int32 skip_freechain, uint8 priori
if(act)
if(act)
core.select_chains.push_back(*clit);
core.select_chains.push_back(*clit);
}
}
if
(
core
.
global_flag
&
GLOBALFLAG_DELAYED_QUICKEFFECT
)
{
for(auto eit = core.delayed_quick.begin(); eit != core.delayed_quick.end(); ++eit) {
for
(
auto
eit
=
core
.
delayed_quick
.
begin
();
eit
!=
core
.
delayed_quick
.
end
();
++
eit
)
{
peffect = eit->first;
peffect
=
eit
->
first
;
peffect->s_range = peffect->handler->current.location;
peffect
->
s_range
=
peffect
->
handler
->
current
.
location
;
peffect->o_range = peffect->handler->current.sequence;
peffect
->
o_range
=
peffect
->
handler
->
current
.
sequence
;
const tevent& evt = eit->second;
const
tevent
&
evt
=
eit
->
second
;
if(peffect->is_chainable(priority) && peffect->is_activateable(priority, evt, TRUE, FALSE, FALSE)) {
if
(
peffect
->
is_chainable
(
priority
)
&&
peffect
->
is_activateable
(
priority
,
evt
,
TRUE
,
FALSE
,
FALSE
))
{
newchain.flag = 0;
newchain
.
flag
=
0
;
newchain.chain_id = infos.field_id++;
newchain
.
chain_id
=
infos
.
field_id
++
;
newchain.evt = evt;
newchain
.
evt
=
evt
;
newchain.triggering_controler = peffect->handler->current.controler;
newchain
.
triggering_controler
=
peffect
->
handler
->
current
.
controler
;
newchain.triggering_effect = peffect;
newchain
.
triggering_effect
=
peffect
;
newchain.triggering_location = peffect->handler->current.location;
newchain
.
triggering_location
=
peffect
->
handler
->
current
.
location
;
newchain.triggering_sequence = peffect->handler->current.sequence;
newchain
.
triggering_sequence
=
peffect
->
handler
->
current
.
sequence
;
newchain.triggering_player = priority;
newchain
.
triggering_player
=
priority
;
core.select_chains.push_back(newchain);
core
.
select_chains
.
push_back
(
newchain
);
}
}
}
}
}
core.spe_effect[priority] = core.select_chains.size();
core.spe_effect[priority] = core.select_chains.size();
...
@@ -2296,8 +2294,6 @@ int32 field::process_instant_event() {
...
@@ -2296,8 +2294,6 @@ int32 field::process_instant_event() {
peffect->handler->create_relation(newchain);
peffect->handler->create_relation(newchain);
}
}
}
}
if
(
!
(
core
.
global_flag
&
GLOBALFLAG_DELAYED_QUICKEFFECT
))
continue
;
//delayed quick effect
//delayed quick effect
pr = effects.activate_effect.equal_range(elit->event_code);
pr = effects.activate_effect.equal_range(elit->event_code);
for(; pr.first != pr.second; ++pr.first) {
for(; pr.first != pr.second; ++pr.first) {
...
@@ -4786,10 +4782,8 @@ int32 field::break_effect() {
...
@@ -4786,10 +4782,8 @@ int32 field::break_effect() {
core.new_ochain.erase(rm);
core.new_ochain.erase(rm);
}
}
}
}
if
(
core
.
global_flag
&
GLOBALFLAG_DELAYED_QUICKEFFECT
)
{
core.delayed_quick_break.insert(core.delayed_quick_tmp.begin(), core.delayed_quick_tmp.end());
core
.
delayed_quick_break
.
insert
(
core
.
delayed_quick_tmp
.
begin
(),
core
.
delayed_quick_tmp
.
end
());
core.delayed_quick_tmp.clear();
core
.
delayed_quick_tmp
.
clear
();
}
core.used_event.splice(core.used_event.end(), core.instant_event);
core.used_event.splice(core.used_event.end(), core.instant_event);
adjust_instant();
adjust_instant();
return 0;
return 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