Changes

Jump to: navigation, search

Module:Card gallery/File/CG

94 bytes removed, 5 years ago
Change standard error message. Display error in case the rarity entered is invalid.
-- @description Sets the `rarity` attribute.
local function initRarity( t )
local t.rarity = not t.flagsDATA.isOP and getRarity( _standard[ 3 ]);
if not t.flags.isOP and not t.rarity == '' then
return t:error( 'rarity' );
end
 
t.rarity = DATA.getRarity( rarity ); -- TODO: error in case there's no rarity found.
end
self.flags.hasErrors = true;
self.parent:error(
('No %s given found for file input number %d!'):format( parameter, self.id )
)
Bureaucrats, System administrator, Administrators
57,479
edits

Navigation menu