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
58247202
Commit
58247202
authored
Jun 17, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update for better ram use
parent
10ec6b07
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
utility.lua
utility.lua
+5
-4
No files found.
utility.lua
View file @
58247202
...
...
@@ -1842,7 +1842,7 @@ function Auxiliary.GetLinkMaterials(tp,f,lc)
if
mg2
:
GetCount
()
>
0
then
mg
:
Merge
(
mg2
)
end
return
mg
end
function
Auxiliary
.
LCheckOtherMaterial
(
c
,
m
g
,
lc
)
function
Auxiliary
.
LCheckOtherMaterial
(
c
,
s
g
,
lc
)
local
le
=
{
c
:
IsHasEffect
(
EFFECT_EXTRA_LINK_MATERIAL
)}
for
_
,
te
in
pairs
(
le
)
do
local
f
=
te
:
GetValue
()
...
...
@@ -1852,9 +1852,10 @@ function Auxiliary.LCheckOtherMaterial(c,mg,lc)
end
function
Auxiliary
.
LCheckMaterialCompatibility
(
sg
,
lc
)
for
tc
in
Auxiliary
.
Next
(
sg
)
do
local
mg
=
sg
:
Clone
()
mg
:
RemoveCard
(
tc
)
if
not
Auxiliary
.
LCheckOtherMaterial
(
tc
,
mg
,
lc
)
then
return
false
end
sg
:
RemoveCard
(
tc
)
local
res
=
Auxiliary
.
LCheckOtherMaterial
(
tc
,
sg
,
lc
)
sg
:
AddCard
(
tc
)
if
not
res
then
return
false
end
end
return
true
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