Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-rush-duel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
5
Issues
5
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
MyCard
ygopro-rush-duel
Commits
503b3c7e
Commit
503b3c7e
authored
Nov 22, 2020
by
未闻皂名
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2020/11/22 修改翻译,用追加检测的方式实现MAX怪兽没有防御力的效果
parent
7921983c
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
22 additions
and
14 deletions
+22
-14
RD Patch.cdb
RD Patch.cdb
+0
-0
script/c120120019.lua
script/c120120019.lua
+1
-1
script/c120140003.lua
script/c120140003.lua
+1
-1
script/c120140009.lua
script/c120140009.lua
+7
-5
script/c120145024.lua
script/c120145024.lua
+1
-1
script/c120145037.lua
script/c120145037.lua
+1
-1
script/c120150013.lua
script/c120150013.lua
+1
-1
script/special.lua
script/special.lua
+10
-4
No files found.
RD Patch.cdb
View file @
503b3c7e
No preview for this file type
script/c120120019.lua
View file @
503b3c7e
...
@@ -15,7 +15,7 @@ function cm.initial_effect(c)
...
@@ -15,7 +15,7 @@ function cm.initial_effect(c)
end
end
--Def Down
--Def Down
function
cm
.
filter
(
c
)
function
cm
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsDefenseAbove
(
0
)
return
c
:
IsFaceup
()
and
RushDuel
.
IsHasDefense
(
c
)
end
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
600
)
end
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
600
)
end
...
...
script/c120140003.lua
View file @
503b3c7e
...
@@ -15,7 +15,7 @@ function cm.initial_effect(c)
...
@@ -15,7 +15,7 @@ function cm.initial_effect(c)
end
end
--Position
--Position
function
cm
.
filter
(
c
)
function
cm
.
filter
(
c
)
return
c
:
IsAttackPos
()
and
c
:
IsCanChangePosition
()
return
c
:
IsAttackPos
()
and
c
:
IsCanChangePosition
()
and
RushDuel
.
IsHasDefense
(
c
)
end
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
script/c120140009.lua
View file @
503b3c7e
...
@@ -19,11 +19,13 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -19,11 +19,13 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
while
tc
do
while
tc
do
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
if
RushDuel
.
IsHasDefense
(
tc
)
then
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetCode
(
EFFECT_SWAP_BASE_AD
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetCode
(
EFFECT_SWAP_BASE_AD
)
tc
:
RegisterEffect
(
e1
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
end
tc
=
g
:
GetNext
()
tc
=
g
:
GetNext
()
end
end
end
end
script/c120145024.lua
View file @
503b3c7e
...
@@ -22,7 +22,7 @@ function cm.tdfilter2(c)
...
@@ -22,7 +22,7 @@ function cm.tdfilter2(c)
return
c
:
IsCode
(
list
[
1
],
list
[
2
])
and
c
:
IsAbleToDeck
()
return
c
:
IsCode
(
list
[
1
],
list
[
2
])
and
c
:
IsAbleToDeck
()
end
end
function
cm
.
desfilter
(
c
)
function
cm
.
desfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsDefenseBelow
(
1500
)
return
c
:
IsFaceup
()
and
c
:
IsDefenseBelow
(
1500
)
and
RushDuel
.
IsHasDefense
(
c
)
end
end
function
cm
.
tdcheck
(
g
)
function
cm
.
tdcheck
(
g
)
return
g
:
GetClassCount
(
Card
.
GetCode
)
==
g
:
GetCount
()
return
g
:
GetClassCount
(
Card
.
GetCode
)
==
g
:
GetCount
()
...
...
script/c120145037.lua
View file @
503b3c7e
...
@@ -15,7 +15,7 @@ function cm.initial_effect(c)
...
@@ -15,7 +15,7 @@ function cm.initial_effect(c)
end
end
--Atk Up
--Atk Up
function
cm
.
filter
(
c
)
function
cm
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsDefenseAbove
(
2000
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsDefenseAbove
(
2000
)
and
RushDuel
.
IsHasDefense
(
c
)
end
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanChangePosition
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanChangePosition
()
end
...
...
script/c120150013.lua
View file @
503b3c7e
local
m
=
120150013
local
m
=
120150013
local
list
=
{
120150014
}
local
list
=
{
120150014
}
local
cm
=
_G
[
"c"
..
m
]
local
cm
=
_G
[
"c"
..
m
]
cm
.
name
=
"皮米孔雀
超
粒子机"
cm
.
name
=
"皮米孔雀
高等
粒子机"
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
aux
.
AddCodeList
(
c
,
list
[
1
])
aux
.
AddCodeList
(
c
,
list
[
1
])
--Draw
--Draw
...
...
script/special.lua
View file @
503b3c7e
...
@@ -135,6 +135,7 @@ function RushDuel.AddMaximumProcedure(c,max_atk,left_code,right_code)
...
@@ -135,6 +135,7 @@ function RushDuel.AddMaximumProcedure(c,max_atk,left_code,right_code)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e2
:
SetCondition
(
RushDuel
.
IsMaximumMode
)
e2
:
SetCondition
(
RushDuel
.
IsMaximumMode
)
e2
:
SetOperation
(
RushDuel
.
MaximumMaterial
)
e2
:
SetOperation
(
RushDuel
.
MaximumMaterial
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
...
@@ -142,7 +143,7 @@ function RushDuel.AddMaximumProcedure(c,max_atk,left_code,right_code)
...
@@ -142,7 +143,7 @@ function RushDuel.AddMaximumProcedure(c,max_atk,left_code,right_code)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e3
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCondition
(
RushDuel
.
IsMaximumMode
)
e3
:
SetCondition
(
RushDuel
.
IsMaximumMode
)
e3
:
SetValue
(
max_atk
)
e3
:
SetValue
(
max_atk
)
...
@@ -151,7 +152,7 @@ function RushDuel.AddMaximumProcedure(c,max_atk,left_code,right_code)
...
@@ -151,7 +152,7 @@ function RushDuel.AddMaximumProcedure(c,max_atk,left_code,right_code)
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetCode
(
EFFECT_SET_POSITION
)
e4
:
SetCode
(
EFFECT_SET_POSITION
)
e4
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e4
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetValue
(
POS_FACEUP_ATTACK
)
e4
:
SetValue
(
POS_FACEUP_ATTACK
)
e4
:
SetCondition
(
RushDuel
.
IsMaximumMode
)
e4
:
SetCondition
(
RushDuel
.
IsMaximumMode
)
...
@@ -159,7 +160,7 @@ function RushDuel.AddMaximumProcedure(c,max_atk,left_code,right_code)
...
@@ -159,7 +160,7 @@ function RushDuel.AddMaximumProcedure(c,max_atk,left_code,right_code)
local
e5
=
Effect
.
CreateEffect
(
c
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
)
e5
:
SetCode
(
EFFECT_CANNOT_CHANGE_POSITION
)
e5
:
SetCode
(
EFFECT_CANNOT_CHANGE_POSITION
)
e5
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e5
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetCondition
(
RushDuel
.
IsMaximumMode
)
e5
:
SetCondition
(
RushDuel
.
IsMaximumMode
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
...
@@ -167,7 +168,7 @@ function RushDuel.AddMaximumProcedure(c,max_atk,left_code,right_code)
...
@@ -167,7 +168,7 @@ function RushDuel.AddMaximumProcedure(c,max_atk,left_code,right_code)
local
e6
=
Effect
.
CreateEffect
(
c
)
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetType
(
EFFECT_TYPE_FIELD
)
e6
:
SetType
(
EFFECT_TYPE_FIELD
)
e6
:
SetCode
(
EFFECT_MAX_MZONE
)
e6
:
SetCode
(
EFFECT_MAX_MZONE
)
e6
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e6
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e6
:
SetRange
(
LOCATION_MZONE
)
e6
:
SetRange
(
LOCATION_MZONE
)
e6
:
SetTargetRange
(
1
,
0
)
e6
:
SetTargetRange
(
1
,
0
)
e6
:
SetCondition
(
RushDuel
.
IsMaximumMode
)
e6
:
SetCondition
(
RushDuel
.
IsMaximumMode
)
...
@@ -212,4 +213,9 @@ function RushDuel.MaximumMaterial(e,tp,eg,ep,ev,re,r,rp)
...
@@ -212,4 +213,9 @@ function RushDuel.MaximumMaterial(e,tp,eg,ep,ev,re,r,rp)
local
mg
=
c
:
GetMaterial
()
local
mg
=
c
:
GetMaterial
()
Duel
.
Overlay
(
c
,
mg
)
Duel
.
Overlay
(
c
,
mg
)
Duel
.
MoveSequence
(
c
,
2
)
Duel
.
MoveSequence
(
c
,
2
)
end
--Def Check
function
RushDuel
.
IsHasDefense
(
c
)
return
c
:
IsDefenseAbove
(
0
)
and
not
(
c
:
IsSummonType
(
SUMMON_TYPE_MAXIMUM
)
and
c
:
GetOverlayCount
()
>
0
)
end
end
\ No newline at end of file
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