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
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-core
Commits
96bb6a1b
Commit
96bb6a1b
authored
Jun 27, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add EFFECT_ALLOW_SYNCHRO_KOISHI
parent
6e38611e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
2 deletions
+16
-2
card.cpp
card.cpp
+13
-2
effect.h
effect.h
+1
-0
interpreter.cpp
interpreter.cpp
+2
-0
No files found.
card.cpp
View file @
96bb6a1b
...
...
@@ -983,7 +983,17 @@ uint32 card::get_link() {
}
uint32
card
::
get_synchro_level
(
card
*
pcard
)
{
if
((
data
.
type
&
(
TYPE_XYZ
|
TYPE_LINK
))
||
(
status
&
STATUS_NO_LEVEL
))
return
0
;
{
uint32
lev
;
effect_set
eset
;
filter_effect
(
EFFECT_ALLOW_SYNCHRO_KOISHI
,
&
eset
);
if
(
eset
.
size
())
lev
=
eset
[
0
]
->
get_value
(
pcard
);
else
lev
=
0
;
return
lev
;
}
//return 0;
uint32
lev
;
effect_set
eset
;
filter_effect
(
EFFECT_SYNCHRO_LEVEL
,
&
eset
);
...
...
@@ -3670,7 +3680,8 @@ int32 card::is_can_be_fusion_material(card* fcard) {
return
TRUE
;
}
int32
card
::
is_can_be_synchro_material
(
card
*
scard
,
card
*
tuner
)
{
if
(
data
.
type
&
(
TYPE_XYZ
|
TYPE_LINK
))
//support urara
if
(
data
.
type
&
(
TYPE_XYZ
|
TYPE_LINK
)
&&
!
is_affected_by_effect
(
EFFECT_ALLOW_SYNCHRO_KOISHI
))
return
FALSE
;
if
(
!
(
get_synchro_type
()
&
TYPE_MONSTER
))
return
FALSE
;
...
...
effect.h
View file @
96bb6a1b
...
...
@@ -115,6 +115,7 @@ public:
#define EFFECT_CANNOT_LOSE_KOISHI 37564153
#define EFFECT_EXTRA_TOMAIN_KOISHI 37564154
#define EFFECT_OVERLAY_REMOVE_COST_CHANGE_KOISHI 37564155
#define EFFECT_ALLOW_SYNCHRO_KOISHI 37564156
//status
#define EFFECT_STATUS_AVAILABLE 0x0001
...
...
interpreter.cpp
View file @
96bb6a1b
...
...
@@ -702,6 +702,8 @@ interpreter::interpreter(duel* pd): coroutines(256) {
lua_setglobal
(
lua_state
,
"EFFECT_EXTRA_TOMAIN_KOISHI"
);
lua_pushinteger
(
lua_state
,
EFFECT_OVERLAY_REMOVE_COST_CHANGE_KOISHI
);
lua_setglobal
(
lua_state
,
"EFFECT_OVERLAY_REMOVE_COST_CHANGE_KOISHI"
);
lua_pushinteger
(
lua_state
,
EFFECT_ALLOW_SYNCHRO_KOISHI
);
lua_setglobal
(
lua_state
,
"EFFECT_ALLOW_SYNCHRO_KOISHI"
);
//music hints
lua_pushinteger
(
lua_state
,
HINT_MUSIC
);
lua_setglobal
(
lua_state
,
"HINT_MUSIC"
);
...
...
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