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
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-scripts
Commits
8a0f882e
Commit
8a0f882e
authored
May 09, 2016
by
VanillaSalt
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #403 from Tianchenglipu/patch-3
Update utility.lua
parents
6f164c78
f66d92bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
utility.lua
utility.lua
+10
-4
No files found.
utility.lua
View file @
8a0f882e
...
@@ -427,6 +427,7 @@ end
...
@@ -427,6 +427,7 @@ end
--material_count: number of different names in material list
--material_count: number of different names in material list
--material: names in material list
--material: names in material list
function
Auxiliary
.
AddFusionProcCode2
(
c
,
code1
,
code2
,
sub
,
insf
)
function
Auxiliary
.
AddFusionProcCode2
(
c
,
code1
,
code2
,
sub
,
insf
)
if
c
:
IsStatus
(
STATUS_COPYING_EFFECT
)
then
return
end
if
c
.
material_count
==
nil
then
if
c
.
material_count
==
nil
then
local
code
=
c
:
GetOriginalCode
()
local
code
=
c
:
GetOriginalCode
()
local
mt
=
_G
[
"c"
..
code
]
local
mt
=
_G
[
"c"
..
code
]
...
@@ -539,6 +540,7 @@ function Auxiliary.FOperationCode2(code1,code2,sub,insf)
...
@@ -539,6 +540,7 @@ function Auxiliary.FOperationCode2(code1,code2,sub,insf)
end
end
--Fusion monster, name + name + name
--Fusion monster, name + name + name
function
Auxiliary
.
AddFusionProcCode3
(
c
,
code1
,
code2
,
code3
,
sub
,
insf
)
function
Auxiliary
.
AddFusionProcCode3
(
c
,
code1
,
code2
,
code3
,
sub
,
insf
)
if
c
:
IsStatus
(
STATUS_COPYING_EFFECT
)
then
return
end
if
c
.
material_count
==
nil
then
if
c
.
material_count
==
nil
then
local
code
=
c
:
GetOriginalCode
()
local
code
=
c
:
GetOriginalCode
()
local
mt
=
_G
[
"c"
..
code
]
local
mt
=
_G
[
"c"
..
code
]
...
@@ -644,6 +646,7 @@ function Auxiliary.FOperationCode3(code1,code2,code3,sub,insf)
...
@@ -644,6 +646,7 @@ function Auxiliary.FOperationCode3(code1,code2,code3,sub,insf)
end
end
--Fusion monster, name + name + name + name
--Fusion monster, name + name + name + name
function
Auxiliary
.
AddFusionProcCode4
(
c
,
code1
,
code2
,
code3
,
code4
,
sub
,
insf
)
function
Auxiliary
.
AddFusionProcCode4
(
c
,
code1
,
code2
,
code3
,
code4
,
sub
,
insf
)
if
c
:
IsStatus
(
STATUS_COPYING_EFFECT
)
then
return
end
if
c
.
material_count
==
nil
then
if
c
.
material_count
==
nil
then
local
code
=
c
:
GetOriginalCode
()
local
code
=
c
:
GetOriginalCode
()
local
mt
=
_G
[
"c"
..
code
]
local
mt
=
_G
[
"c"
..
code
]
...
@@ -762,6 +765,7 @@ function Auxiliary.FOperationCode4(code1,code2,code3,code4,sub,insf)
...
@@ -762,6 +765,7 @@ function Auxiliary.FOperationCode4(code1,code2,code3,code4,sub,insf)
end
end
--Fusion monster, name + condition
--Fusion monster, name + condition
function
Auxiliary
.
AddFusionProcCodeFun
(
c
,
code1
,
f
,
cc
,
sub
,
insf
)
function
Auxiliary
.
AddFusionProcCodeFun
(
c
,
code1
,
f
,
cc
,
sub
,
insf
)
if
c
:
IsStatus
(
STATUS_COPYING_EFFECT
)
then
return
end
if
c
.
material_count
==
nil
then
if
c
.
material_count
==
nil
then
local
code
=
c
:
GetOriginalCode
()
local
code
=
c
:
GetOriginalCode
()
local
mt
=
_G
[
"c"
..
code
]
local
mt
=
_G
[
"c"
..
code
]
...
@@ -983,6 +987,7 @@ function Auxiliary.FOperationFun2(f1,f2,insf)
...
@@ -983,6 +987,7 @@ function Auxiliary.FOperationFun2(f1,f2,insf)
end
end
--Fusion monster, name * n
--Fusion monster, name * n
function
Auxiliary
.
AddFusionProcCodeRep
(
c
,
code1
,
cc
,
sub
,
insf
)
function
Auxiliary
.
AddFusionProcCodeRep
(
c
,
code1
,
cc
,
sub
,
insf
)
if
c
:
IsStatus
(
STATUS_COPYING_EFFECT
)
then
return
end
if
c
.
material_count
==
nil
then
if
c
.
material_count
==
nil
then
local
code
=
c
:
GetOriginalCode
()
local
code
=
c
:
GetOriginalCode
()
local
mt
=
_G
[
"c"
..
code
]
local
mt
=
_G
[
"c"
..
code
]
...
@@ -1249,6 +1254,7 @@ function Auxiliary.FilterBoolFunctionCFR(code,sub)
...
@@ -1249,6 +1254,7 @@ function Auxiliary.FilterBoolFunctionCFR(code,sub)
end
end
--Fusion monster, name + condition * minc to maxc
--Fusion monster, name + condition * minc to maxc
function
Auxiliary
.
AddFusionProcCodeFunRep
(
c
,
code1
,
f
,
minc
,
maxc
,
sub
,
insf
)
function
Auxiliary
.
AddFusionProcCodeFunRep
(
c
,
code1
,
f
,
minc
,
maxc
,
sub
,
insf
)
if
c
:
IsStatus
(
STATUS_COPYING_EFFECT
)
then
return
end
if
c
.
material_count
==
nil
then
if
c
.
material_count
==
nil
then
local
code
=
c
:
GetOriginalCode
()
local
code
=
c
:
GetOriginalCode
()
local
mt
=
_G
[
"c"
..
code
]
local
mt
=
_G
[
"c"
..
code
]
...
@@ -1328,7 +1334,7 @@ function Auxiliary.RPGOperation(filter)
...
@@ -1328,7 +1334,7 @@ function Auxiliary.RPGOperation(filter)
end
end
end
end
function
Auxiliary
.
AddRitualProcGreaterCode
(
c
,
code1
)
function
Auxiliary
.
AddRitualProcGreaterCode
(
c
,
code1
)
if
c
.
fit_monster
==
nil
then
if
not
c
:
IsStatus
(
STATUS_COPYING_EFFECT
)
and
c
.
fit_monster
==
nil
then
local
code
=
c
:
GetOriginalCode
()
local
code
=
c
:
GetOriginalCode
()
local
mt
=
_G
[
"c"
..
code
]
local
mt
=
_G
[
"c"
..
code
]
mt
.
fit_monster
=
{
code1
}
mt
.
fit_monster
=
{
code1
}
...
@@ -1400,7 +1406,7 @@ function Auxiliary.RPEOperation(filter)
...
@@ -1400,7 +1406,7 @@ function Auxiliary.RPEOperation(filter)
end
end
end
end
function
Auxiliary
.
AddRitualProcEqualCode
(
c
,
code1
)
function
Auxiliary
.
AddRitualProcEqualCode
(
c
,
code1
)
if
c
.
fit_monster
==
nil
then
if
not
c
:
IsStatus
(
STATUS_COPYING_EFFECT
)
and
c
.
fit_monster
==
nil
then
local
code
=
c
:
GetOriginalCode
()
local
code
=
c
:
GetOriginalCode
()
local
mt
=
_G
[
"c"
..
code
]
local
mt
=
_G
[
"c"
..
code
]
mt
.
fit_monster
=
{
code1
}
mt
.
fit_monster
=
{
code1
}
...
@@ -1472,7 +1478,7 @@ function Auxiliary.RPEOperation2(filter)
...
@@ -1472,7 +1478,7 @@ function Auxiliary.RPEOperation2(filter)
end
end
end
end
function
Auxiliary
.
AddRitualProcEqual2Code
(
c
,
code1
)
function
Auxiliary
.
AddRitualProcEqual2Code
(
c
,
code1
)
if
c
.
fit_monster
==
nil
then
if
not
c
:
IsStatus
(
STATUS_COPYING_EFFECT
)
and
c
.
fit_monster
==
nil
then
local
code
=
c
:
GetOriginalCode
()
local
code
=
c
:
GetOriginalCode
()
local
mt
=
_G
[
"c"
..
code
]
local
mt
=
_G
[
"c"
..
code
]
mt
.
fit_monster
=
{
code1
}
mt
.
fit_monster
=
{
code1
}
...
@@ -1480,7 +1486,7 @@ function Auxiliary.AddRitualProcEqual2Code(c,code1)
...
@@ -1480,7 +1486,7 @@ function Auxiliary.AddRitualProcEqual2Code(c,code1)
Auxiliary
.
AddRitualProcEqual2
(
c
,
Auxiliary
.
FilterBoolFunction
(
Card
.
IsCode
,
code1
))
Auxiliary
.
AddRitualProcEqual2
(
c
,
Auxiliary
.
FilterBoolFunction
(
Card
.
IsCode
,
code1
))
end
end
function
Auxiliary
.
AddRitualProcEqual2Code2
(
c
,
code1
,
code2
)
function
Auxiliary
.
AddRitualProcEqual2Code2
(
c
,
code1
,
code2
)
if
c
.
fit_monster
==
nil
then
if
not
c
:
IsStatus
(
STATUS_COPYING_EFFECT
)
and
c
.
fit_monster
==
nil
then
local
code
=
c
:
GetOriginalCode
()
local
code
=
c
:
GetOriginalCode
()
local
mt
=
_G
[
"c"
..
code
]
local
mt
=
_G
[
"c"
..
code
]
mt
.
fit_monster
=
{
code1
,
code2
}
mt
.
fit_monster
=
{
code1
,
code2
}
...
...
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