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
301bed8a
Commit
301bed8a
authored
Oct 18, 2019
by
nekrozar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update AddFusionProcMix
for Dragun of Red-Eyes
parent
8c037c84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
6 deletions
+35
-6
utility.lua
utility.lua
+35
-6
No files found.
utility.lua
View file @
301bed8a
...
@@ -1004,9 +1004,18 @@ function Auxiliary.AddFusionProcMix(c,sub,insf,...)
...
@@ -1004,9 +1004,18 @@ function Auxiliary.AddFusionProcMix(c,sub,insf,...)
if
type
(
val
[
i
])
==
'function'
then
if
type
(
val
[
i
])
==
'function'
then
fun
[
i
]
=
function
(
c
,
fc
,
sub
,
mg
,
sg
)
return
val
[
i
](
c
,
fc
,
sub
,
mg
,
sg
)
and
not
c
:
IsHasEffect
(
6205579
)
end
fun
[
i
]
=
function
(
c
,
fc
,
sub
,
mg
,
sg
)
return
val
[
i
](
c
,
fc
,
sub
,
mg
,
sg
)
and
not
c
:
IsHasEffect
(
6205579
)
end
elseif
type
(
val
[
i
])
==
'table'
then
elseif
type
(
val
[
i
])
==
'table'
then
fun
[
i
]
=
function
(
c
,
fc
,
sub
)
return
c
:
IsFusionCode
(
table.unpack
(
val
[
i
]))
or
(
sub
and
c
:
CheckFusionSubstitute
(
fc
))
end
fun
[
i
]
=
function
(
c
,
fc
,
sub
,
mg
,
sg
)
for
_
,
fcode
in
ipairs
(
val
[
i
])
do
if
type
(
fcode
)
==
'function'
then
if
fcode
(
c
,
fc
,
sub
,
mg
,
sg
)
and
not
c
:
IsHasEffect
(
6205579
)
then
return
true
end
else
if
c
:
IsFusionCode
(
fcode
)
or
(
sub
and
c
:
CheckFusionSubstitute
(
fc
))
then
return
true
end
end
end
return
false
end
for
_
,
fcode
in
ipairs
(
val
[
i
])
do
for
_
,
fcode
in
ipairs
(
val
[
i
])
do
table.insert
(
mat
,
fcode
)
if
type
(
fcode
)
~=
'function'
then
table.insert
(
mat
,
fcode
)
end
end
end
else
else
fun
[
i
]
=
function
(
c
,
fc
,
sub
)
return
c
:
IsFusionCode
(
val
[
i
])
or
(
sub
and
c
:
CheckFusionSubstitute
(
fc
))
end
fun
[
i
]
=
function
(
c
,
fc
,
sub
)
return
c
:
IsFusionCode
(
val
[
i
])
or
(
sub
and
c
:
CheckFusionSubstitute
(
fc
))
end
...
@@ -1107,9 +1116,18 @@ function Auxiliary.AddFusionProcMixRep(c,sub,insf,fun1,minc,maxc,...)
...
@@ -1107,9 +1116,18 @@ function Auxiliary.AddFusionProcMixRep(c,sub,insf,fun1,minc,maxc,...)
if
type
(
val
[
i
])
==
'function'
then
if
type
(
val
[
i
])
==
'function'
then
fun
[
i
]
=
function
(
c
,
fc
,
sub
,
mg
,
sg
)
return
val
[
i
](
c
,
fc
,
sub
,
mg
,
sg
)
and
not
c
:
IsHasEffect
(
6205579
)
end
fun
[
i
]
=
function
(
c
,
fc
,
sub
,
mg
,
sg
)
return
val
[
i
](
c
,
fc
,
sub
,
mg
,
sg
)
and
not
c
:
IsHasEffect
(
6205579
)
end
elseif
type
(
val
[
i
])
==
'table'
then
elseif
type
(
val
[
i
])
==
'table'
then
fun
[
i
]
=
function
(
c
,
fc
,
sub
)
return
c
:
IsFusionCode
(
table.unpack
(
val
[
i
]))
or
(
sub
and
c
:
CheckFusionSubstitute
(
fc
))
end
fun
[
i
]
=
function
(
c
,
fc
,
sub
,
mg
,
sg
)
for
_
,
fcode
in
ipairs
(
val
[
i
])
do
if
type
(
fcode
)
==
'function'
then
if
fcode
(
c
,
fc
,
sub
,
mg
,
sg
)
and
not
c
:
IsHasEffect
(
6205579
)
then
return
true
end
else
if
c
:
IsFusionCode
(
fcode
)
or
(
sub
and
c
:
CheckFusionSubstitute
(
fc
))
then
return
true
end
end
end
return
false
end
for
_
,
fcode
in
ipairs
(
val
[
i
])
do
for
_
,
fcode
in
ipairs
(
val
[
i
])
do
table.insert
(
mat
,
fcode
)
if
type
(
fcode
)
~=
'function'
then
table.insert
(
mat
,
fcode
)
end
end
end
else
else
fun
[
i
]
=
function
(
c
,
fc
,
sub
)
return
c
:
IsFusionCode
(
val
[
i
])
or
(
sub
and
c
:
CheckFusionSubstitute
(
fc
))
end
fun
[
i
]
=
function
(
c
,
fc
,
sub
)
return
c
:
IsFusionCode
(
val
[
i
])
or
(
sub
and
c
:
CheckFusionSubstitute
(
fc
))
end
...
@@ -1306,8 +1324,19 @@ function Auxiliary.AddFusionProcCodeRep(c,code1,cc,sub,insf)
...
@@ -1306,8 +1324,19 @@ function Auxiliary.AddFusionProcCodeRep(c,code1,cc,sub,insf)
end
end
if
c
.
material_count
==
nil
then
if
c
.
material_count
==
nil
then
local
mt
=
getmetatable
(
c
)
local
mt
=
getmetatable
(
c
)
mt
.
material_count
=
1
if
type
(
code1
)
==
'table'
then
mt
.
material
=
{
code1
}
mt
.
material_count
=
0
mt
.
material
=
{}
for
_
,
fcode
in
ipairs
(
code1
)
do
if
type
(
fcode
)
~=
'function'
then
mt
.
material_count
=
mt
.
material_count
+
1
table.insert
(
mt
.
material
,
fcode
)
end
end
else
mt
.
material_count
=
1
mt
.
material
=
{
code1
}
end
end
end
Auxiliary
.
AddFusionProcMix
(
c
,
sub
,
insf
,
table.unpack
(
code
))
Auxiliary
.
AddFusionProcMix
(
c
,
sub
,
insf
,
table.unpack
(
code
))
end
end
...
...
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