Module:Card: Difference between revisions
No edit summary |
No edit summary |
||
| Line 28: | Line 28: | ||
-- Reset agent-specific data to prevent carry-over from previous cards | -- Reset agent-specific data to prevent carry-over from previous cards | ||
local | local nbQuality, nbGalaxy, crQuality, crGalaxy, outQuality, notice = nil, nil, nil, nil, nil, nil | ||
-- Caption Params: | -- Caption Params: | ||
| Line 79: | Line 79: | ||
if lib.isEmpty(suffix) then | if lib.isEmpty(suffix) then | ||
suffix = ' Icon' | |||
local lcType = type:lower() | local lcType = type:lower() | ||
if (lcType == 'neighbor') then | if (lcType == 'neighbor') then | ||
--Grabs Neighbor Quality and Galaxy from Data to display icons | --Grabs Neighbor Quality and Galaxy from Data to display icons | ||
nbQuality = data['quality'] | nbQuality = data['quality'] | ||
| Line 104: | Line 104: | ||
elseif (lcType == 'creature') then | elseif (lcType == 'creature') then | ||
--Grabs Creature Quality and Galaxy from Data to display icons | |||
--Grabs Creature | |||
crQuality = data['quality'] | crQuality = data['quality'] | ||
crGalaxy = data['galaxy'] | crGalaxy = data['galaxy'] | ||
elseif (lcType == 'clothing') then | elseif (lcType == 'clothing') then | ||
--Grabs Outfit Quality from Data to display icons | |||
--Grabs Outfit | |||
outQuality = data['quality'] | outQuality = data['quality'] | ||
end | end | ||