Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
V
Vgdpro 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
xiaoye
Vgdpro Scripts
Commits
91c60cc8
Commit
91c60cc8
authored
Nov 08, 2024
by
xiaoye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增对能量发生器的定义
parent
2d101774
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
10 deletions
+17
-10
VgDefinition.Lua
VgDefinition.Lua
+2
-0
VgFuncLib.lua
VgFuncLib.lua
+3
-3
c10800730.lua
c10800730.lua
+4
-3
c10800731.lua
c10800731.lua
+4
-0
c10800855.lua
c10800855.lua
+4
-4
No files found.
VgDefinition.Lua
View file @
91c60cc8
VgDefinition
=
{}
VgDefinition
=
{}
VgID
=
10000001
VgID
=
10000001
CARD_ENERGY
=
10800730
CARD_ENERGY_EMBLEM
=
10800851
--min/max value
--min/max value
MIN_ID
=
1000
--4 digits, by DataManager::GetDesc()
MIN_ID
=
1000
--4 digits, by DataManager::GetDesc()
MAX_ID
=
268435455
--28 bits, by DataManager::GetDesc()
MAX_ID
=
268435455
--28 bits, by DataManager::GetDesc()
...
...
VgFuncLib.lua
View file @
91c60cc8
...
@@ -639,13 +639,13 @@ function VgF.EnergyCost(val)
...
@@ -639,13 +639,13 @@ function VgF.EnergyCost(val)
if
e
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
then
if
e
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
then
VgF
.
AddMixCostGroupFrom
(
c
,
m
,
"LOCATION_EMBLEM"
)
VgF
.
AddMixCostGroupFrom
(
c
,
m
,
"LOCATION_EMBLEM"
)
VgF
.
AddMixCostGroupTo
(
c
,
m
,
"0"
)
VgF
.
AddMixCostGroupTo
(
c
,
m
,
"0"
)
VgF
.
AddMixCostGroupFilter
(
c
,
m
,
function
(
tc
)
tc
:
IsCode
(
10800730
)
end
)
VgF
.
AddMixCostGroupFilter
(
c
,
m
,
function
(
tc
)
tc
:
IsCode
(
CARD_ENERGY
)
end
)
VgF
.
AddMixCostGroupCountMin
(
c
,
m
,
val
)
VgF
.
AddMixCostGroupCountMin
(
c
,
m
,
val
)
VgF
.
AddMixCostGroupCountMax
(
c
,
m
,
val
)
VgF
.
AddMixCostGroupCountMax
(
c
,
m
,
val
)
end
end
return
VgF
.
IsExistingMatchingCard
(
Card
.
IsCode
,
tp
,
LOCATION_EMBLEM
,
0
,
val
,
nil
,
10800730
)
return
VgF
.
IsExistingMatchingCard
(
Card
.
IsCode
,
tp
,
LOCATION_EMBLEM
,
0
,
val
,
nil
,
CARD_ENERGY
)
end
end
local
sg
=
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tp
,
LOCATION_EMBLEM
,
0
,
nil
,
10800730
)
local
sg
=
Duel
.
GetMatchingGroup
(
Card
.
IsCode
,
tp
,
LOCATION_EMBLEM
,
0
,
nil
,
CARD_ENERGY
)
local
g
=
VgF
.
GetCardsFromGroup
(
sg
,
val
)
local
g
=
VgF
.
GetCardsFromGroup
(
sg
,
val
)
return
VgF
.
Sendto
(
0
,
g
,
tp
,
POS_FACEUP
,
REASON_COST
)
return
VgF
.
Sendto
(
0
,
g
,
tp
,
POS_FACEUP
,
REASON_COST
)
end
end
...
...
c10800730.lua
View file @
91c60cc8
--能量
local
cm
,
m
,
o
=
GetID
()
function
c
10800730
.
initial_effect
(
c
)
function
c
m
.
initial_effect
(
c
)
vgf
.
VgCard
(
c
)
end
end
c10800731.lua
0 → 100644
View file @
91c60cc8
local
cm
,
m
,
o
=
GetID
()
function
cm
.
initial_effect
(
c
)
vgf
.
VgCard
(
c
)
end
c10800855.lua
View file @
91c60cc8
...
@@ -32,9 +32,9 @@ function cm.con1(e,tp,eg,ep,ev,re,r,rp)
...
@@ -32,9 +32,9 @@ function cm.con1(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
op1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
op1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
code
=
10800730
local
code
=
CARD_ENERGY
local
selfcode1
,
selfcode2
=
c
:
GetOriginalCode
()
local
selfcode1
,
selfcode2
=
c
:
GetOriginalCode
()
if
selfcode2
==
10800855
then
code
=
code
+
1
end
if
selfcode2
~=
CARD_ENERGY_EMBLEM
then
code
=
code
+
1
end
local
token1
=
Duel
.
CreateToken
(
tp
,
code
)
local
token1
=
Duel
.
CreateToken
(
tp
,
code
)
local
token2
=
Duel
.
CreateToken
(
tp
,
code
)
local
token2
=
Duel
.
CreateToken
(
tp
,
code
)
local
token3
=
Duel
.
CreateToken
(
tp
,
code
)
local
token3
=
Duel
.
CreateToken
(
tp
,
code
)
...
@@ -46,9 +46,9 @@ function cm.con2(e,tp,eg,ep,ev,re,r,rp)
...
@@ -46,9 +46,9 @@ function cm.con2(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
op2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
op2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
code
=
10800730
local
code
=
CARD_ENERGY
local
selfcode1
,
selfcode2
=
c
:
GetOriginalCode
()
local
selfcode1
,
selfcode2
=
c
:
GetOriginalCode
()
if
selfcode2
==
10800855
then
code
=
code
+
1
end
if
selfcode2
~=
CARD_ENERGY_EMBLEM
then
code
=
code
+
1
end
if
vgf
.
GetMatchingGroupCount
(
Card
.
IsCode
,
tp
,
LOCATION_EMBLEM
,
0
,
nil
,
code
)
>=
10
then
return
end
if
vgf
.
GetMatchingGroupCount
(
Card
.
IsCode
,
tp
,
LOCATION_EMBLEM
,
0
,
nil
,
code
)
>=
10
then
return
end
local
ct
=
10
-
vgf
.
GetMatchingGroupCount
(
Card
.
IsCode
,
tp
,
LOCATION_EMBLEM
,
0
,
nil
,
code
)
local
ct
=
10
-
vgf
.
GetMatchingGroupCount
(
Card
.
IsCode
,
tp
,
LOCATION_EMBLEM
,
0
,
nil
,
code
)
local
token1
=
Duel
.
CreateToken
(
tp
,
code
)
local
token1
=
Duel
.
CreateToken
(
tp
,
code
)
...
...
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