Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
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
Vee4
ygopro-scripts-888
Commits
b22b398e
Commit
b22b398e
authored
Oct 24, 2023
by
Chen Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move Auxiliary global functions
parent
743d06b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
procedure.lua
procedure.lua
+8
-4
utility.lua
utility.lua
+3
-1
No files found.
procedure.lua
View file @
b22b398e
--Fusion check functions
Auxiliary
.
FCheckAdditional
=
nil
Auxiliary
.
FGoalCheckAdditional
=
nil
--Ritual check functions
Auxiliary
.
RCheckAdditional
=
nil
Auxiliary
.
RGCheckAdditional
=
nil
--Gemini Summon
--Gemini Summon
function
Auxiliary
.
IsDualState
(
effect
)
function
Auxiliary
.
IsDualState
(
effect
)
local
c
=
effect
:
GetHandler
()
local
c
=
effect
:
GetHandler
()
...
@@ -907,8 +915,6 @@ function Auxiliary.FCheckMix(c,mg,sg,fc,sub,fun1,fun2,...)
...
@@ -907,8 +915,6 @@ function Auxiliary.FCheckMix(c,mg,sg,fc,sub,fun1,fun2,...)
end
end
end
end
--if sg1 is subset of sg2 then not Auxiliary.FCheckAdditional(tp,sg1,fc) -> not Auxiliary.FCheckAdditional(tp,sg2,fc)
--if sg1 is subset of sg2 then not Auxiliary.FCheckAdditional(tp,sg1,fc) -> not Auxiliary.FCheckAdditional(tp,sg2,fc)
Auxiliary
.
FCheckAdditional
=
nil
Auxiliary
.
FGoalCheckAdditional
=
nil
function
Auxiliary
.
FCheckMixGoal
(
sg
,
tp
,
fc
,
sub
,
chkfnf
,
...
)
function
Auxiliary
.
FCheckMixGoal
(
sg
,
tp
,
fc
,
sub
,
chkfnf
,
...
)
local
chkf
=
chkfnf
&
0xff
local
chkf
=
chkfnf
&
0xff
local
concat_fusion
=
chkfnf
&
0x200
>
0
local
concat_fusion
=
chkfnf
&
0x200
>
0
...
@@ -1351,7 +1357,6 @@ end
...
@@ -1351,7 +1357,6 @@ end
function
Auxiliary
.
RitualCheckEqual
(
g
,
c
,
lv
)
function
Auxiliary
.
RitualCheckEqual
(
g
,
c
,
lv
)
return
g
:
CheckWithSumEqual
(
Card
.
GetRitualLevel
,
lv
,
#
g
,
#
g
,
c
)
return
g
:
CheckWithSumEqual
(
Card
.
GetRitualLevel
,
lv
,
#
g
,
#
g
,
c
)
end
end
Auxiliary
.
RCheckAdditional
=
nil
function
Auxiliary
.
RitualCheck
(
g
,
tp
,
c
,
lv
,
greater_or_equal
)
function
Auxiliary
.
RitualCheck
(
g
,
tp
,
c
,
lv
,
greater_or_equal
)
return
Auxiliary
[
"RitualCheck"
..
greater_or_equal
](
g
,
c
,
lv
)
and
Duel
.
GetMZoneCount
(
tp
,
g
,
tp
)
>
0
and
(
not
c
.
mat_group_check
or
c
.
mat_group_check
(
g
,
tp
))
return
Auxiliary
[
"RitualCheck"
..
greater_or_equal
](
g
,
c
,
lv
)
and
Duel
.
GetMZoneCount
(
tp
,
g
,
tp
)
>
0
and
(
not
c
.
mat_group_check
or
c
.
mat_group_check
(
g
,
tp
))
and
(
not
Auxiliary
.
RCheckAdditional
or
Auxiliary
.
RCheckAdditional
(
tp
,
g
,
c
))
and
(
not
Auxiliary
.
RCheckAdditional
or
Auxiliary
.
RCheckAdditional
(
tp
,
g
,
c
))
...
@@ -1366,7 +1371,6 @@ function Auxiliary.RitualCheckAdditionalLevel(c,rc)
...
@@ -1366,7 +1371,6 @@ function Auxiliary.RitualCheckAdditionalLevel(c,rc)
return
lv1
return
lv1
end
end
end
end
Auxiliary
.
RGCheckAdditional
=
nil
function
Auxiliary
.
RitualCheckAdditional
(
c
,
lv
,
greater_or_equal
)
function
Auxiliary
.
RitualCheckAdditional
(
c
,
lv
,
greater_or_equal
)
if
greater_or_equal
==
"Equal"
then
if
greater_or_equal
==
"Equal"
then
return
function
(
g
)
return
function
(
g
)
...
...
utility.lua
View file @
b22b398e
...
@@ -45,6 +45,9 @@ function bit.replace(r,v,field,width)
...
@@ -45,6 +45,9 @@ function bit.replace(r,v,field,width)
return
(
r
&~
(
m
<<
f
))
|
((
v
&
m
)
<<
f
)
return
(
r
&~
(
m
<<
f
))
|
((
v
&
m
)
<<
f
)
end
end
--Group check functions
Auxiliary
.
GCheckAdditional
=
nil
--the table of xyz number
--the table of xyz number
Auxiliary
.
xyz_number
=
{}
Auxiliary
.
xyz_number
=
{}
function
Auxiliary
.
GetXyzNumber
(
v
)
function
Auxiliary
.
GetXyzNumber
(
v
)
...
@@ -934,7 +937,6 @@ function Auxiliary.GetMultiLinkedZone(tp)
...
@@ -934,7 +937,6 @@ function Auxiliary.GetMultiLinkedZone(tp)
return
multi_linked_zone
return
multi_linked_zone
end
end
Auxiliary
.
SubGroupCaptured
=
nil
Auxiliary
.
SubGroupCaptured
=
nil
Auxiliary
.
GCheckAdditional
=
nil
function
Auxiliary
.
CheckGroupRecursive
(
c
,
sg
,
g
,
f
,
min
,
max
,
ext_params
)
function
Auxiliary
.
CheckGroupRecursive
(
c
,
sg
,
g
,
f
,
min
,
max
,
ext_params
)
sg
:
AddCard
(
c
)
sg
:
AddCard
(
c
)
if
Auxiliary
.
GCheckAdditional
and
not
Auxiliary
.
GCheckAdditional
(
sg
,
c
,
g
,
f
,
min
,
max
,
ext_params
)
then
if
Auxiliary
.
GCheckAdditional
and
not
Auxiliary
.
GCheckAdditional
(
sg
,
c
,
g
,
f
,
min
,
max
,
ext_params
)
then
...
...
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