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
0d54c9e0
Commit
0d54c9e0
authored
Dec 02, 2024
by
POLYMER
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
9c537387
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
15 deletions
+18
-15
expansions/no81.cdb
expansions/no81.cdb
+0
-0
expansions/pics/65850075.jpg
expansions/pics/65850075.jpg
+0
-0
expansions/script/c65131100.lua
expansions/script/c65131100.lua
+0
-4
expansions/script/c65131116.lua
expansions/script/c65131116.lua
+1
-1
expansions/script/c98920431.lua
expansions/script/c98920431.lua
+2
-2
expansions/script/special.lua
expansions/script/special.lua
+15
-8
No files found.
expansions/no81.cdb
View file @
0d54c9e0
No preview for this file type
expansions/pics/65850075.jpg
deleted
100644 → 0
View file @
9c537387
35.3 KB
expansions/script/c65131100.lua
View file @
0d54c9e0
...
...
@@ -16,10 +16,6 @@ function s.initial_effect(c)
ge1
:
SetCondition
(
s
.
lostcon
)
ge1
:
SetOperation
(
s
.
lostop
)
Duel
.
RegisterEffect
(
ge1
,
0
)
local
ge2
=
ge1
:
Clone
()
ge2
:
SetCondition
(
s
.
lostcon2
)
ge2
:
SetOperation
(
s
.
lostop2
)
Duel
.
RegisterEffect
(
ge2
,
0
)
local
ge3
=
ge1
:
Clone
()
ge3
:
SetCode
(
EVENT_SUMMON
)
Duel
.
RegisterEffect
(
ge3
,
0
)
...
...
expansions/script/c65131116.lua
View file @
0d54c9e0
...
...
@@ -4,7 +4,7 @@ function s.initial_effect(c)
--act in hand
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e
2
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e
0
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e0
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
e0
:
SetCondition
(
s
.
handcon
)
c
:
RegisterEffect
(
e0
)
...
...
expansions/script/c98920431.lua
View file @
0d54c9e0
...
...
@@ -75,8 +75,8 @@ function c98920431.spop(e,tp,eg,ep,ev,re,r,rp)
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
local
atk
=
tc
:
GetAttack
()
local
lp
=
tp
:
GetLP
(
)
Duel
.
SetLP
(
tp
,
lp
-
atk
)
local
lp
=
Duel
.
GetLP
(
e
:
GetHandlerPlayer
()
)
Duel
.
SetLP
(
e
:
GetHandlerPlayer
()
,
lp
-
atk
)
end
end
function
c98920431
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
expansions/script/special.lua
View file @
0d54c9e0
...
...
@@ -14,8 +14,12 @@ function Auxiliary.PreloadUds()
EFFECT_FLAG_CANNOT_NEGATE
=
EFFECT_FLAG_CANNOT_NEGATE
or
0x200
EFFECT_FLAG_CAN_FORBIDDEN
=
EFFECT_FLAG_CAN_FORBIDDEN
or
0x200
function
require
(
str
)
table_range
=
table_range
or
{}
effect_handler
=
effect_handler
or
{}
effect_registered
=
effect_registered
or
{}
require_list
=
require_list
or
{}
function
require
(
str
)
if
not
require_list
[
str
]
then
if
string.find
(
str
,
"%."
)
then
require_list
[
str
]
=
loadfile
(
str
)
...
...
@@ -92,20 +96,16 @@ function Auxiliary.PreloadUds()
local
_CreateEffect
=
Effect
.
CreateEffect
function
Effect
.
CreateEffect
(
c
,
...
)
local
e
=
_CreateEffect
(
c
,
...
)
effect_handler
=
effect_handler
or
{}
if
e
and
c
then
effect_handler
[
e
]
=
c
end
return
e
end
local
_SetRange
=
Effect
.
SetRange
function
Effect
.
SetRange
(
e
,
r
,
...
)
table_range
=
table_range
or
{}
if
e
and
r
then
table_range
[
e
]
=
r
end
return
_SetRange
(
e
,
r
,
...
)
end
local
_Clone
=
Effect
.
Clone
function
Effect
.
Clone
(
e
,
...
)
effect_handler
=
effect_handler
or
{}
table_range
=
table_range
or
{}
local
clone_e
=
_Clone
(
e
,
...
)
if
e
and
clone_e
then
effect_handler
[
clone_e
]
=
effect_handler
[
e
]
...
...
@@ -118,6 +118,7 @@ function Auxiliary.PreloadUds()
if
table_range
and
table_range
[
e
]
then
return
table_range
[
e
]
end
Debug
.
Message
(
"Effect.GetRange没有及时加载该效果的Range信息。"
)
return
0
end
end
...
...
@@ -126,8 +127,16 @@ function Auxiliary.PreloadUds()
function
Card
.
RegisterEffect
(
c
,
e
,
...
)
if
aux
.
GetValueType
(
c
)
~=
"Card"
then
Debug
.
Message
(
"Card.RegisterEffect没有输入正确的Card参数。"
)
return
end
if
aux
.
GetValueType
(
e
)
~=
"Effect"
then
Debug
.
Message
(
"Card.RegisterEffect没有输入正确的Effect参数。"
)
return
end
if
e
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
not
table_range
[
e
]
then
table_range
[
e
]
=
LOCATION_HAND
+
LOCATION_SZONE
elseif
e
:
IsHasType
(
EFFECT_TYPE_EQUIP
)
and
not
table_range
[
e
]
then
table_range
[
e
]
=
LOCATION_SZONE
elseif
e
:
IsHasType
(
EFFECT_TYPE_FLIP
)
and
not
table_range
[
e
]
then
table_range
[
e
]
=
LOCATION_MZONE
elseif
e
:
IsHasType
(
EFFECT_TYPE_XMATERIAL
)
and
not
table_range
[
e
]
then
table_range
[
e
]
=
LOCATION_OVERLAY
end
local
eid
=
_CRegisterEffect
(
c
,
e
,
...
)
effect_registered
=
effect_registered
or
{}
if
e
and
eid
then
effect_registered
[
e
]
=
true
end
return
eid
end
...
...
@@ -135,14 +144,12 @@ function Auxiliary.PreloadUds()
function
Duel
.
RegisterEffect
(
e
,
p
,
...
)
if
aux
.
GetValueType
(
e
)
~=
"Effect"
then
Debug
.
Message
(
"Duel.RegisterEffect没有输入正确的Effect参数。"
)
return
end
_DRegisterEffect
(
e
,
p
,
...
)
effect_registered
=
effect_registered
or
{}
if
e
then
effect_registered
[
e
]
=
true
end
end
local
_GetHandler
=
Effect
.
GetHandler
function
Effect
.
GetHandler
(
e
,
...
)
--warning!!!
effect_registered
=
effect_registered
or
{}
if
_Effect
.
IsHasType
(
e
,
EFFECT_TYPE_XMATERIAL
)
and
not
effect_registered
[
e
]
then
return
effect_handler
[
e
]
end
local
c
=
_GetHandler
(
e
,
...
)
if
not
c
then
return
effect_handler
[
e
]
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