Module:StreetBrawlItems: Difference between revisionsGive feedback
Jump to navigation
Jump to search
Remove unused item/item_in_pool functions and now-dead helpers; rename normal to average; move all display text to the caller; anchor the gate above the Tier 1 heading so the reveal link lands on it (with help from vergir-bot LLM) |
Render Street Brawl item cards in lowGraphics mode; these hero pages place hundreds of cards, so they use the cacheable overlay texture for smooth scrolling (with help from vergir-bot LLM) |
||
| Line 54: | Line 54: | ||
local function render_item(frame, code) | local function render_item(frame, code) | ||
local name = iname(code); if not name then return nil end | local name = iname(code); if not name then return nil end | ||
local args = { name, size = CARD_SIZE } | -- These hero pages place hundreds of cards at once, so the cards render in | ||
-- lowGraphics mode: ItemBox swaps its paper texture for a single cacheable | |||
-- overlay, which keeps scrolling smooth. See [[Template:ItemBox]]. | |||
local args = { name, size = CARD_SIZE, lowGraphics = "true" } | |||
-- Legendary (tier 5) cards omit the tier badge; it is redundant in the Legendary tier. | -- Legendary (tier 5) cards omit the tier badge; it is redundant in the Legendary tier. | ||
if itier(code) ~= 5 then args.showTierTag = "true" end | if itier(code) ~= 5 then args.showTierTag = "true" end | ||