Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
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-scripts
Commits
5cd2d54d
Commit
5cd2d54d
authored
Mar 24, 2016
by
salix5
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #320 from Tianchenglipu/patch-rmv
Remove unused xyz_filter and xyz_count
parents
4bdf1675
e67ea90b
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
0 additions
and
33 deletions
+0
-33
c23187256.lua
c23187256.lua
+0
-6
c52653092.lua
c52653092.lua
+0
-6
c57707471.lua
c57707471.lua
+0
-4
c58600555.lua
c58600555.lua
+0
-1
c65305468.lua
c65305468.lua
+0
-4
c85004150.lua
c85004150.lua
+0
-1
utility.lua
utility.lua
+0
-11
No files found.
c23187256.lua
View file @
5cd2d54d
...
...
@@ -33,14 +33,8 @@ function c23187256.initial_effect(c)
local
e4
=
e3
:
Clone
()
e4
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
c
:
RegisterEffect
(
e4
)
if
not
c23187256
.
xyz_filter
then
c23187256
.
xyz_filter
=
function
(
mc
)
return
mc
:
IsType
(
TYPE_XYZ
)
and
mc
:
IsSetCard
(
0x48
)
and
mc
:
GetOverlayCount
()
>
0
and
mc
:
IsCanBeXyzMaterial
(
c
)
end
end
end
c23187256
.
xyz_number
=
93
c23187256
.
xyz_count
=
2
function
c23187256
.
mfilter
(
c
,
xyzc
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_XYZ
)
and
c
:
IsSetCard
(
0x48
)
and
c
:
GetOverlayCount
()
>
0
and
c
:
IsCanBeXyzMaterial
(
xyzc
)
end
...
...
c52653092.lua
View file @
5cd2d54d
...
...
@@ -48,14 +48,8 @@ function c52653092.initial_effect(c)
e6
:
SetCost
(
c52653092
.
actcost
)
e6
:
SetOperation
(
c52653092
.
actop
)
c
:
RegisterEffect
(
e6
)
if
not
c52653092
.
xyz_filter
then
c52653092
.
xyz_filter
=
function
(
mc
)
return
mc
:
IsType
(
TYPE_XYZ
)
and
mc
:
IsSetCard
(
0x48
)
and
mc
:
IsCanBeXyzMaterial
(
c
)
end
end
end
c52653092
.
xyz_number
=
0
c52653092
.
xyz_count
=
3
function
c52653092
.
cfilter
(
c
)
return
c
:
IsSetCard
(
0x95
)
and
c
:
GetType
()
==
TYPE_SPELL
and
c
:
IsDiscardable
()
end
...
...
c57707471.lua
View file @
5cd2d54d
...
...
@@ -30,12 +30,8 @@ function c57707471.initial_effect(c)
e3
:
SetTarget
(
c57707471
.
destg
)
e3
:
SetOperation
(
c57707471
.
desop
)
c
:
RegisterEffect
(
e3
)
if
not
c57707471
.
xyz_filter
then
c57707471
.
xyz_filter
=
function
(
mc
)
return
mc
:
IsXyzLevel
(
c
,
6
)
end
end
end
c57707471
.
xyz_number
=
21
c57707471
.
xyz_count
=
2
function
c57707471
.
ovfilter
(
c
,
tp
,
xyzc
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_XYZ
)
and
c
:
GetRank
()
==
5
and
c
:
IsCanBeXyzMaterial
(
xyzc
)
and
c
:
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
...
...
c58600555.lua
View file @
5cd2d54d
...
...
@@ -37,7 +37,6 @@ function c58600555.initial_effect(c)
e3
:
SetOperation
(
c58600555
.
operation
)
c
:
RegisterEffect
(
e3
)
end
c58600555
.
xyz_count
=
2
function
c58600555
.
ovfilter
(
c
,
tp
,
xyzc
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_XYZ
)
and
(
c
:
GetRank
()
==
3
or
c
:
GetRank
()
==
4
)
and
c
:
IsRace
(
RACE_INSECT
)
and
c
:
IsCanBeXyzMaterial
(
xyzc
)
and
c
:
CheckRemoveOverlayCard
(
tp
,
2
,
REASON_COST
)
...
...
c65305468.lua
View file @
5cd2d54d
...
...
@@ -44,12 +44,8 @@ function c65305468.initial_effect(c)
e7
:
SetRange
(
LOCATION_MZONE
)
e7
:
SetTarget
(
c65305468
.
reptg
)
c
:
RegisterEffect
(
e7
)
if
not
c65305468
.
xyz_filter
then
c65305468
.
xyz_filter
=
function
(
mc
)
return
mc
:
IsType
(
TYPE_XYZ
)
and
not
mc
:
IsSetCard
(
0x48
)
and
mc
:
IsCanBeXyzMaterial
(
c
)
end
end
end
c65305468
.
xyz_number
=
0
c65305468
.
xyz_count
=
2
function
c65305468
.
mfilter
(
c
,
xyzc
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_XYZ
)
and
not
c
:
IsSetCard
(
0x48
)
and
c
:
IsCanBeXyzMaterial
(
xyzc
)
end
...
...
c85004150.lua
View file @
5cd2d54d
...
...
@@ -30,7 +30,6 @@ function c85004150.initial_effect(c)
e3
:
SetCode
(
EFFECT_PIERCE
)
c
:
RegisterEffect
(
e3
)
end
c85004150
.
xyz_count
=
2
function
c85004150
.
ovfilter
(
c
,
tp
,
xyzc
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_XYZ
)
and
(
c
:
GetRank
()
==
5
or
c
:
GetRank
()
==
6
)
and
c
:
IsRace
(
RACE_INSECT
)
and
c
:
IsCanBeXyzMaterial
(
xyzc
)
and
c
:
CheckRemoveOverlayCard
(
tp
,
2
,
REASON_COST
)
...
...
utility.lua
View file @
5cd2d54d
...
...
@@ -183,18 +183,7 @@ function Auxiliary.XyzAlterFilter(c,alterf,xyzc)
return
alterf
(
c
)
and
c
:
IsCanBeXyzMaterial
(
xyzc
)
end
--Xyz monster, lv k*n
--set c.xyz_filter, c.xyz_count
function
Auxiliary
.
AddXyzProcedure
(
c
,
f
,
lv
,
ct
,
alterf
,
desc
,
maxct
,
op
)
if
c
.
xyz_filter
==
nil
then
local
code
=
c
:
GetOriginalCode
()
local
mt
=
_G
[
"c"
..
code
]
if
f
then
mt
.
xyz_filter
=
function
(
mc
)
return
f
(
mc
)
and
mc
:
IsXyzLevel
(
c
,
lv
)
end
else
mt
.
xyz_filter
=
function
(
mc
)
return
mc
:
IsXyzLevel
(
c
,
lv
)
end
end
mt
.
xyz_count
=
ct
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
...
...
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