Changes

Pass all args onto Formatting:format_image()
Line 28: Line 28:  
link = args.link
 
link = args.link
 
end
 
end
local image = Formatting:format_image{args.damaged and ship:card_damaged() or ship:card(), size = args.size or self._card_size, link = link, caption = args.caption}
+
if args.damaged then
 +
args[1] = ship:card_damaged()
 +
else
 +
args[1] = ship:card()
 +
end
 +
if not args.size then
 +
args.size = self._card_size
 +
end
 +
args.link = link
 +
local image = Formatting:format_image(args)
 
if args.layers or args.grayscale then
 
if args.layers or args.grayscale then
 
local stack = self:_create_stack(image, args.grayscale)
 
local stack = self:_create_stack(image, args.grayscale)
Anonymous user