RushDuel.GetRitualMaterial
Alias: RD.GetRitualMaterial. Requires the matching Rush Duel Lua bootstrap.
Signature
lua
RushDuel.GetRitualMaterial(any tp, any rc, any type, any mat) -> anyDescription
Rush Duel helper declared in RDRitual.lua. Its argument names are extracted from the pinned source; parameter and return types have not yet been reviewed.
Upstream source comment
text
仪式召唤 - 获取可用的仪式素材Parameters
tpany: Type and behavior are not yet reviewed; see the source.rcany: Type and behavior are not yet reviewed; see the source.typeany: Type and behavior are not yet reviewed; see the source.matany: Type and behavior are not yet reviewed; see the source.
Returns
any: Return contract has not been reviewed; inspect the source below.
Source
Rush/Utilities/RDRitual.lua:146
lua
function RushDuel.GetRitualMaterial(tp, rc, type, mat)
local mg = mat:Filter(RushDuel.IsCanBeRitualMaterial, rc, rc)
if rc.mat_filter then
mg = mg:Filter(rc.mat_filter, rc, tp)
end
local max = math.min(#mg, RushDuel.GetRitualTypeValue(rc, type))
return mg, max
endUsed By
Generated from the local Rush/Scripts/ folder and rush_cards.cdb.
No indexed local card script currently calls this function.
This can mean the function is unused in the current script set, is only called through an alias, or is available for future/manual scripts.