Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
no81cards
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
Nemo Ma
no81cards
Commits
764c35f4
Commit
764c35f4
authored
Feb 09, 2021
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scl lib
parent
50d92eb2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
expansions/script/c10199990.lua
expansions/script/c10199990.lua
+11
-6
expansions/script/c10199992.lua
expansions/script/c10199992.lua
+0
-2
No files found.
expansions/script/c10199990.lua
View file @
764c35f4
...
...
@@ -397,7 +397,7 @@ end
function
rsef
.
SV
(
reg_list
,
code
,
val
,
range
,
con
,
reset_list
,
flag
,
desc_list
,
lim_list
)
local
reg_owner
,
reg_handler
=
rsef
.
GetRegisterCard
(
reg_list
)
local
flag2
=
rsef
.
GetRegisterProperty
(
flag
)
local
flag_list1
=
{
EFFECT_IMMUNE_EFFECT
,
EFFECT_CANNOT_BE_BATTLE_TARGET
,
EFFECT_CANNOT_BE_EFFECT_TARGET
,
EFFECT_CHANGE_CODE
,
EFFECT_ADD_CODE
,
EFFECT_CHANGE_RACE
,
EFFECT_ADD_RACE
,
EFFECT_CHANGE_ATTRIBUTE
,
EFFECT_ADD_ATTRIBUTE
,
EFFECT_UPDATE_ATTACK
,
EFFECT_UPDATE_DEFENSE
,
rscode
.
Utility_Xyz_Material
,
rscode
.
Extra_Synchro_Material
,
rscode
.
Extra_Xyz_Material
,
EFFECT_EXTRA_LINK_MATERIAL
}
local
flag_list1
=
{
EFFECT_IMMUNE_EFFECT
,
EFFECT_CANNOT_BE_BATTLE_TARGET
,
EFFECT_CANNOT_BE_EFFECT_TARGET
,
EFFECT_CHANGE_CODE
,
EFFECT_ADD_CODE
,
EFFECT_CHANGE_RACE
,
EFFECT_ADD_RACE
,
EFFECT_CHANGE_ATTRIBUTE
,
EFFECT_ADD_ATTRIBUTE
,
EFFECT_UPDATE_ATTACK
,
EFFECT_UPDATE_DEFENSE
,
rscode
.
Utility_Xyz_Material
,
rscode
.
Extra_Synchro_Material
,
rscode
.
Extra_Xyz_Material
,
EFFECT_EXTRA_LINK_MATERIAL
,
EFFECT_INDESTRUCTABLE
,
EFFECT_INDESTRUCTABLE_BATTLE
,
EFFECT_INDESTRUCTABLE_COUNT
,
EFFECT_INDESTRUCTABLE_EFFECT
}
local
flag_list2
=
{
EFFECT_CHANGE_LEVEL
,
EFFECT_CHANGE_RANK
,
EFFECT_UPDATE_LEVEL
,
EFFECT_UPDATE_RANK
}
local
tf1
=
rsof
.
Table_List
(
flag_list1
,
code
)
local
tf2
=
rsof
.
Table_List
(
flag_list2
,
code
)
...
...
@@ -3476,21 +3476,26 @@ function rscf.DefineCard(code,setcode)
return
code
,
ccodem
end
--Card function: rsxx.IsXSetXX
function
rscf
.
DefineSet
(
setmeta
,
seriesstring
,
suffix
)
function
rscf
.
DefineSet
(
setmeta
,
seriesstring
,
type_int
)
local
prefixlist1
=
{
""
,
"Fus"
,
"Link"
,
"Pre"
,
"Ori"
}
local
prefixlist1_fun
=
{
""
,
"Fusion"
,
"Link"
,
"Previous"
,
"Original"
}
local
prefixlist2
=
{
""
,
"M"
,
"S"
,
"T"
,
"ST"
}
local
prefixlist2_fun
=
{
nil
,
TYPE_MONSTER
,
TYPE_SPELL
,
TYPE_TRAP
,
TYPE_SPELL
+
TYPE_TRAP
}
suffix
=
suffix
or
""
local
suffixlist1
=
{
""
,
"_th"
,
"_tg"
,
"_td"
,
"_rm"
,
"_sp1"
,
"_sp2"
}
local
suffixlist1_fun
=
{
nil
,
Card
.
IsAbleToHand
,
Card
.
IsAbleToGrave
,
Card
.
IsAbleToDeck
,
Card
.
IsAbleToRemove
,
rscf
.
spfilter
(),
rscf
.
spfilter2
}
type_int
=
type_int
or
""
for
idx1
,
prefix1
in
pairs
(
prefixlist1
)
do
for
idx2
,
prefix2
in
pairs
(
prefixlist2
)
do
setmeta
[
"Is"
..
prefix1
..
"Set"
..
prefix2
..
suffix
]
=
rscf
.
DefineSet_Fun
(
prefixlist1_fun
[
idx1
],
prefixlist2_fun
[
idx2
],
seriesstring
)
for
idx3
,
suffix1
in
pairs
(
suffixlist1
)
do
setmeta
[
"Is"
..
prefix1
..
"Set"
..
prefix2
..
type_int
..
suffix1
]
=
rscf
.
DefineSet_Fun
(
prefixlist1_fun
[
idx1
],
prefixlist2_fun
[
idx2
],
suffixlist1_fun
[
idx3
],
seriesstring
)
end
end
end
end
function
rscf
.
DefineSet_Fun
(
prefix1
,
prefix2
,
seriesstring
)
return
function
(
c
)
function
rscf
.
DefineSet_Fun
(
prefix1
,
prefix2
,
s
uffix1
,
s
eriesstring
)
return
function
(
c
,
...
)
return
rscf
[
"Check"
..
prefix1
..
"SetCard"
](
c
,
seriesstring
)
and
(
not
prefix2
or
c
:
IsType
(
prefix2
))
and
(
not
suffix1
or
suffix1
(
c
,
...
))
end
end
--Register qucik attribute buff in cards
...
...
expansions/script/c10199992.lua
View file @
764c35f4
...
...
@@ -86,7 +86,6 @@ local rsgs = Gran_Sphere
local
rsoc
=
Oligocene_Civilization
local
rsgol
=
Giant_of_Light
local
rssb
=
Space_Beasts
local
rsufo
=
UFO_Saucer_Monster
#
HeiBai
1172777968
local
rstm
=
Toaru_Majutsu_no_Index
...
...
@@ -98,7 +97,6 @@ local rsgod = God
local
rsva
=
VR_Aqua
//
local
=
Tian_Zhi
local
rswk
=
White_Moon_Knight
local
rsisr
=
Israel
#
ReiKai
2404873791
local
rsch
=
Churck
...
...
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