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
nanahira
Nanahira-Cards
Commits
7bfdfa16
Commit
7bfdfa16
authored
Apr 07, 2019
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sync with ritual updates
parent
7211a5b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
expansions/script/c37564765.lua
expansions/script/c37564765.lua
+6
-4
No files found.
expansions/script/c37564765.lua
View file @
7bfdfa16
...
...
@@ -2470,7 +2470,7 @@ end
function
cm
.
CheckRitualMaterialGoal
(
g
,
c
,
tp
,
lv
,
f
,
gt
)
return
cm
.
CheckSummonLocation
(
c
,
tp
,
g
)
and
(
g
:
CheckWithSumEqual
(
f
,
lv
,
#
g
,
#
g
,
c
)
or
(
gt
and
cm
.
CheckGreaterExact
(
g
,
f
,
lv
,
c
)))
end
function
cm
.
DivideValueMax
(
f
,
...
)
--[[
function cm.DivideValueMax(f,...)
local ext_params={...}
return function(c)
local v=f(c,table.unpack(ext_params))
...
...
@@ -2499,13 +2499,15 @@ function cm.CheckGreaterExactCounterCheck(c,g,f,lv,...)
local res=g:GetSum(cm.DivideValueMin(f,...))>=lv
g:AddCard(c)
return res
end
end
]]
function
cm
.
CheckGreaterExact
(
g
,
f
,
lv
,
...
)
return
g
:
GetSum
(
cm
.
DivideValueMax
(
f
,
...
))
>=
lv
and
not
g
:
IsExists
(
cm
.
CheckGreaterExactCounterCheck
,
1
,
nil
,
g
,
f
,
lv
,
...
)
Duel
.
SetSelectedCard
(
g
)
return
g
:
CheckWithSumGreater
(
f
,
lv
,
...
)
end
function
cm
.
CheckRitualMaterial
(
c
,
g
,
tp
,
lv
,
f
,
gt
)
local
f
=
f
or
Card
.
GetRitualLevel
return
cm
.
CheckGroup
(
g
,
cm
.
CheckRitualMaterialGoal
,
nil
,
1
,
lv
,
c
,
tp
,
lv
,
f
,
gt
)
local
res
=
cm
.
CheckGroup
(
g
,
cm
.
CheckRitualMaterialGoal
,
nil
,
1
,
lv
,
c
,
tp
,
lv
,
f
,
gt
)
return
res
end
function
cm
.
SelectRitualMaterial
(
c
,
g
,
tp
,
lv
,
f
,
gt
)
local
f
=
f
or
Card
.
GetRitualLevel
...
...
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