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
4af271e2
Commit
4af271e2
authored
Aug 13, 2017
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add a setter
parent
552b057f
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
48 deletions
+35
-48
effect.cpp
effect.cpp
+6
-1
effect.h
effect.h
+3
-2
libeffect.cpp
libeffect.cpp
+1
-1
processor.cpp
processor.cpp
+25
-44
No files found.
effect.cpp
View file @
4af271e2
...
...
@@ -24,6 +24,7 @@ effect::effect(duel* pd) {
effect_owner
=
PLAYER_NONE
;
card_type
=
0
;
active_type
=
0
;
active_location
=
0
;
active_handler
=
0
;
id
=
0
;
code
=
0
;
...
...
@@ -42,7 +43,6 @@ effect::effect(duel* pd) {
label_object
=
0
;
hint_timing
[
0
]
=
0
;
hint_timing
[
1
]
=
0
;
field_ref
=
0
;
status
=
0
;
condition
=
0
;
cost
=
0
;
...
...
@@ -718,3 +718,8 @@ int32 effect::in_range(const chain& ch) {
return
handler
->
overlay_target
?
TRUE
:
FALSE
;
return
range
&
ch
.
triggering_location
;
}
void
effect
::
set_activate_location
()
{
card
*
phandler
=
get_handler
();
active_location
=
phandler
->
current
.
location
;
//active_sequence = phandler->current.sequence;
}
effect.h
View file @
4af271e2
...
...
@@ -46,13 +46,13 @@ public:
uint32
reset_flag
;
uint32
count_code
;
uint32
category
;
uint32
label
;
uint32
hint_timing
[
2
];
uint32
card_type
;
uint32
active_type
;
uint32
active_location
;
card
*
active_handler
;
uint16
field_ref
;
uint16
status
;
uint32
label
;
void
*
label_object
;
int32
condition
;
int32
cost
;
...
...
@@ -94,6 +94,7 @@ public:
uint8
get_handler_player
();
int32
in_range
(
card
*
pcard
);
int32
in_range
(
const
chain
&
ch
);
void
set_activate_location
();
bool
is_flag
(
effect_flag
flag
)
const
{
return
!!
(
this
->
flag
[
0
]
&
flag
);
}
...
...
libeffect.cpp
View file @
4af271e2
...
...
@@ -545,6 +545,6 @@ int32 scriptlib::effect_get_activate_location(lua_State *L) {
check_param_count
(
L
,
1
);
check_param
(
L
,
PARAM_TYPE_EFFECT
,
1
);
effect
*
peffect
=
*
(
effect
**
)
lua_touserdata
(
L
,
1
);
lua_pushinteger
(
L
,
peffect
->
s_range
);
lua_pushinteger
(
L
,
peffect
->
active_location
);
return
1
;
}
\ No newline at end of file
processor.cpp
View file @
4af271e2
This diff is collapsed.
Click to expand it.
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