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 agQuality, nbGalaxy, crQuality, crGalaxy, outQuality, notice = nil, nil, nil, nil, nil, nil
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
suffix = ' Icon'
--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
suffix = ' Icon'
--Grabs Creature Quality and Galaxy from Data to display icons
--Grabs Creature Rank and Galaxy from Data to display icons
crQuality = data['quality']
crQuality = data['quality']
crGalaxy = data['galaxy']
crGalaxy = data['galaxy']
elseif (lcType == 'npc') then
suffix = ' Icon'
elseif (lcType == 'clothing') then
elseif (lcType == 'clothing') then
suffix = ' Icon'
--Grabs Outfit Quality from Data to display icons
--Grabs Outfit Rank from Data to display icons
outQuality = data['quality']
outQuality = data['quality']
end
end