Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
Nanahira-Cards
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
xiaoye
Nanahira-Cards
Commits
28504a7a
Commit
28504a7a
authored
Apr 29, 2025
by
xiaoye
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://code.moenext.com/nanahira/Nanahira-Cards
parents
2556a758
4222a5cd
Pipeline
#35697
passed with stage
in 20 seconds
Changes
8
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
12 additions
and
35 deletions
+12
-35
.gitlab-ci.yml
.gitlab-ci.yml
+2
-1
expansions/7cgl.cdb
expansions/7cgl.cdb
+0
-0
expansions/script/c37564006.lua
expansions/script/c37564006.lua
+2
-2
expansions/script/c37564011.lua
expansions/script/c37564011.lua
+1
-1
expansions/script/c37564017.lua
expansions/script/c37564017.lua
+2
-2
expansions/script/c37564701.lua
expansions/script/c37564701.lua
+4
-25
expansions/script/c37564765.lua
expansions/script/c37564765.lua
+1
-1
expansions/script/c37573002.lua
expansions/script/c37573002.lua
+0
-3
No files found.
.gitlab-ci.yml
View file @
28504a7a
...
...
@@ -16,7 +16,8 @@ redtext:
-
cd ygopro
-
rm -rf expansions
-
ln -s ../expansions .
-
ls expansions/*.cdb | xargs -I '{}' sqlite3 {} "select id from datas where type != 0x11 and (type & 0x4000) = 0;" | xargs -I {}
./ygopro {} 2>&1 | tee ../redtext.txt
-
ls expansions/*.cdb | xargs -I '{}' sqlite3 {} "select id from datas where type != 0x11 and (type & 0x4000) = 0;" | xargs -I {}
-P $(nproc) bash -c './ygopro {} 2>&1 | tee ../redtext-{}.txt'
-
cd ..
-
cat redtext-*.txt > redtext.txt
# if there are any lines in redtext.txt fail the job
-
exit $(wc -l < redtext.txt)
expansions/7cgl.cdb
View file @
28504a7a
No preview for this file type
expansions/script/c37564006.lua
View file @
28504a7a
...
...
@@ -19,7 +19,7 @@ function cm.initial_effect(c)
Duel
.
AddCustomActivityCounter
(
m
,
ACTIVITY_SPSUMMON
,
cm
.
counterfilter
)
end
function
cm
.
counterfilter
(
c
)
return
Senya
.
check_set_elem
(
c
)
or
c
:
GetSummonLocation
()
~=
LOCATION_EXTRA
return
Senya
.
check_set_elem
(
c
)
or
c
:
IsType
(
TYPE_XYZ
)
or
c
:
GetSummonLocation
()
~=
LOCATION_EXTRA
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetCustomActivityCount
(
m
,
tp
,
ACTIVITY_SPSUMMON
)
==
0
and
...
...
@@ -35,7 +35,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
end
function
cm
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
return
not
Senya
.
check_set_elem
(
c
)
and
c
:
IsLocation
(
LOCATION_EXTRA
)
return
not
Senya
.
check_set_elem
(
c
)
and
c
:
IsLocation
(
LOCATION_EXTRA
)
and
not
c
:
IsType
(
TYPE_XYZ
)
end
function
cm
.
filter1
(
c
,
e
,
tp
)
return
c
:
GetRank
()
==
4
and
Senya
.
check_set_elem
(
c
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
Group
.
FromCards
(
e
:
GetHandler
()),
c
)
>
0
...
...
expansions/script/c37564011.lua
View file @
28504a7a
...
...
@@ -169,7 +169,7 @@ end
function
cm
.
rcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
(
ev
&
0xffff
)
return
(
r
&
REASON_COST
)
~=
0
and
re
:
GetHandler
()
==
e
:
GetHandler
()
and
re
:
IsHasType
(
0x7e0
)
return
(
r
&
REASON_COST
)
~=
0
and
re
:
GetHandler
()
==
e
:
GetHandler
()
and
re
:
IsHasType
(
0x7e0
)
and
Senya
.
check_set_elem
(
e
:
GetHandler
())
end
function
cm
.
rop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
Reset
()
...
...
expansions/script/c37564017.lua
View file @
28504a7a
...
...
@@ -17,7 +17,7 @@ function cm.initial_effect(c)
Duel
.
AddCustomActivityCounter
(
m
,
ACTIVITY_SPSUMMON
,
cm
.
counterfilter
)
end
function
cm
.
counterfilter
(
c
)
return
Senya
.
check_set_elem
(
c
)
or
c
:
GetSummonLocation
()
~=
LOCATION_EXTRA
return
Senya
.
check_set_elem
(
c
)
or
c
:
IsType
(
TYPE_XYZ
)
or
c
:
GetSummonLocation
()
~=
LOCATION_EXTRA
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
==
0
...
...
@@ -36,7 +36,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
cm
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
return
not
Senya
.
check_set_elem
(
c
)
and
c
:
IsLocation
(
LOCATION_EXTRA
)
return
not
Senya
.
check_set_elem
(
c
)
and
c
:
IsLocation
(
LOCATION_EXTRA
)
and
not
c
:
IsType
(
TYPE_XYZ
)
end
function
cm
.
filter
(
c
,
e
,
tp
)
return
Senya
.
check_set_elem
(
c
)
and
c
:
GetRank
()
==
4
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
expansions/script/c37564701.lua
View file @
28504a7a
...
...
@@ -149,41 +149,23 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
function
cm
.
PConditionFilter
(
c
,
e
,
tp
,
lscale
,
rscale
)
local
lv
=
0
if
c
.
pendulum_level
then
lv
=
c
.
pendulum_level
else
lv
=
c
:
GetLevel
()
end
function
cm
.
PConditionFilter
(
c
,
e
,
tp
)
local
bool
=
Auxiliary
.
PendulumSummonableBool
(
c
)
return
(
c
:
IsLocation
(
LOCATION_HAND
)
or
(
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_PENDULUM
)))
and
lv
>
lscale
and
lv
<
rscale
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_PENDULUM
,
tp
,
bool
,
bool
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_PENDULUM
,
tp
,
bool
,
bool
)
and
not
c
:
IsForbidden
()
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
local
c0
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
0
)
local
c1
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
1
)
if
not
c0
or
not
c1
then
return
false
end
local
lscale
=
c0
:
GetLeftScale
()
local
rscale
=
c1
:
GetRightScale
()
if
lscale
>
rscale
then
lscale
,
rscale
=
rscale
,
lscale
end
local
loc
=
0
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
loc
=
loc
+
LOCATION_HAND
end
if
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
TYPE_PENDULUM
)
>
0
then
loc
=
loc
+
LOCATION_EXTRA
end
if
loc
==
0
then
return
false
end
local
g
=
Duel
.
GetFieldGroup
(
tp
,
loc
,
0
)
return
g
:
IsExists
(
cm
.
PConditionFilter
,
1
,
nil
,
e
,
tp
,
lscale
,
rscale
)
return
g
:
IsExists
(
cm
.
PConditionFilter
,
1
,
nil
,
e
,
tp
)
end
end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c0
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
0
)
local
c1
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
1
)
if
not
c0
or
not
c1
then
return
false
end
local
lscale
=
c0
:
GetLeftScale
()
local
rscale
=
c1
:
GetRightScale
()
if
lscale
>
rscale
then
lscale
,
rscale
=
rscale
,
lscale
end
local
loc
=
0
local
ft1
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
ft2
=
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
TYPE_PENDULUM
)
...
...
@@ -200,11 +182,8 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local
tg
=
Duel
.
GetMatchingGroup
(
cm
.
PConditionFilter
,
tp
,
loc
,
0
,
nil
,
e
,
tp
,
lscale
,
rscale
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Auxiliary
.
GCheckAdditional
=
Auxiliary
.
PendOperationCheck
(
ft1
,
ft2
,
ft
)
local
g
=
tg
:
SelectSubGroup
(
tp
,
Auxiliary
.
TRUE
,
tru
e
,
1
,
math.min
(
#
tg
,
ft
,
2
))
local
g
=
tg
:
SelectSubGroup
(
tp
,
Auxiliary
.
TRUE
,
fals
e
,
1
,
math.min
(
#
tg
,
ft
,
2
))
Auxiliary
.
GCheckAdditional
=
nil
if
not
g
then
return
end
Duel
.
HintSelection
(
Group
.
FromCards
(
c0
))
Duel
.
HintSelection
(
Group
.
FromCards
(
c1
))
Duel
.
SpecialSummon
(
g
,
SUMMON_TYPE_PENDULUM
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
function
cm
.
sumcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
expansions/script/c37564765.lua
View file @
28504a7a
...
...
@@ -1140,7 +1140,7 @@ function cm.PendOperationNanahira()
if
not
g
then
return
end
if
ce
then
Duel
.
Hint
(
HINT_CARD
,
0
,
ce
:
GetOwner
():
GetOriginalCode
())
ce
:
Reset
(
)
ce
:
UseCountLimit
(
tp
)
else
Auxiliary
.
PendulumChecklist
=
Auxiliary
.
PendulumChecklist
|
(
0x1
<<
tp
)
end
...
...
expansions/script/c37573002.lua
View file @
28504a7a
...
...
@@ -57,9 +57,6 @@ function s.xyzcon(e,c,og,min,max)
maxc
=
math.min
(
maxc
,
max
)
end
if
maxc
<
minc
then
return
false
end
if
og
then
return
false
end
local
mg
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_MZONE
,
0
)
if
og
and
not
og
:
Equal
(
mg
)
then
return
false
end
local
sg
=
Duel
.
GetMustMaterial
(
tp
,
EFFECT_MUST_BE_XMATERIAL
)
...
...
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