Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
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
nanahira
ygopro-scripts
Commits
2d526a8a
Commit
2d526a8a
authored
Feb 02, 2025
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add EFFECT_XYZ_MIN_COUNT
parent
cf0f1567
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
6 deletions
+14
-6
c86466163.lua
c86466163.lua
+1
-1
c91110378.lua
c91110378.lua
+2
-5
constant.lua
constant.lua
+2
-0
utility.lua
utility.lua
+9
-0
No files found.
c86466163.lua
View file @
2d526a8a
...
...
@@ -34,5 +34,5 @@ function c86466163.xyztg(e,c)
return
c
:
IsLevelBelow
(
4
)
and
c
:
IsSetCard
(
0x9c
)
end
function
c86466163
.
xyzlv
(
e
,
c
,
rc
)
return
0x30050000
+
c
:
GetLevel
(
)
return
0x30050000
|
aux
.
GetCappedXyzLevel
(
c
)
end
c91110378.lua
View file @
2d526a8a
...
...
@@ -6,8 +6,8 @@ function c91110378.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_XYZ_
LEVEL
)
e1
:
SetValue
(
c91110378
.
xyz_level
)
e1
:
SetCode
(
EFFECT_XYZ_
MIN_COUNT
)
e1
:
SetValue
(
3
)
c
:
RegisterEffect
(
e1
)
--spsummon
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -25,9 +25,6 @@ function c91110378.initial_effect(c)
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e3
)
end
function
c91110378
.
xyz_level
(
e
,
c
,
rc
)
return
0x3000
+
c
:
GetLevel
()
end
function
c91110378
.
cfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x86
)
and
c
:
IsSummonPlayer
(
tp
)
end
...
...
constant.lua
View file @
2d526a8a
...
...
@@ -3,6 +3,7 @@ MIN_ID =128 --0x80, by DataManager::GetDesc()
MAX_ID
=
268435455
--28 bits, by DataManager::GetDesc()
MAX_COUNTER
=
65535
--max number for adding/removing counters, by card::add_counter(), field::remove_counter()
MAX_PARAMETER
=
0xffff
MAX_XYZ_LEVEL
=
0x0fff
--Locations 区域
LOCATION_DECK
=
0x01
--卡组
LOCATION_HAND
=
0x02
--手牌
...
...
@@ -604,6 +605,7 @@ EFFECT_LIMIT_SPECIAL_SUMMON_POSITION =368 --不能以特定表示形式特殊召
EFFECT_TUNER
=
369
--同调召唤时可以当作调整(百檎龙-苹果鳞虫)
EFFECT_KAISER_COLOSSEUM
=
370
--皇帝斗技场
EFFECT_REPLACE_DAMAGE
=
371
--伤害由特定行动代替
EFFECT_XYZ_MIN_COUNT
=
372
--只能用在X只以上的超量召唤
EFFECT_FLAG_EFFECT
=
0x20000000
--标记类效果,即RegisterFlagEffect()创建的效果
--下面是诱发效果的诱发事件、时点 (如果是TYPE_SINGLE则自己发生以下事件后触发,如果TYPE_FIELD则场上任何卡发生以下事件都触发)
...
...
utility.lua
View file @
2d526a8a
...
...
@@ -1476,6 +1476,15 @@ function Auxiliary.GetCappedLevel(c)
end
end
--
function
Auxiliary
.
GetCappedXyzLevel
(
c
)
local
lv
=
c
:
GetLevel
()
if
lv
>
MAX_XYZ_LEVEL
then
return
MAX_XYZ_LEVEL
else
return
lv
end
end
--
function
Auxiliary
.
GetCappedAttack
(
c
)
local
x
=
c
:
GetAttack
()
if
x
>
MAX_PARAMETER
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