80,735
edits
(Module:Luacard2) |
(Module:Luacard2) |
||
Line 172: | Line 172: | ||
vars.is_multi = string.find(vars.cardhouse, '•', 1, true) | vars.is_multi = string.find(vars.cardhouse, '•', 1, true) | ||
vars.is_anomaly = string.find(vars.cardhouse, 'Anomaly') | vars.is_anomaly = string.find(vars.cardhouse, 'Anomaly') | ||
vars.is_starAlliance = string.find(vars.cardhouse, 'Star Alliance') | |||
end | end | ||
if(vars.is_multi) then | if(vars.is_multi) then | ||
Line 177: | Line 178: | ||
append(vars.categories, 'Multi') | append(vars.categories, 'Multi') | ||
else | else | ||
vars.cardhouse_color = vars. | vars.cardhouse_color = ustring:gsub(vars.cardhouse, '%s', '') | ||
vars.cardhouse_color[1] = vars.cardhouse_color[1]:lower() | |||
append(vars.categories, vars.cardhouse) | append(vars.categories, vars.cardhouse) | ||
end | end | ||
end | end | ||
function minmax_arg(value, max) | function minmax_arg(value, max) | ||
Line 319: | Line 322: | ||
function relatedflavorquery(cardname) | function relatedflavorquery(cardname) | ||
return cargo_results( | |||
'CardData', | |||
'Name, FlavorText', | |||
{ | |||
where="(CardData.FlavorText LIKE '%"..cardname.."%') AND (CardData.Name NOT LIKE '%"..cardname.."%')", | |||
orderBy='CardData.Name ASC' | |||
}) | |||
end | end | ||