Changes

Add filename argument
Line 22: Line 22:  
function ShipGraphicKai:Graphic(args)
 
function ShipGraphicKai:Graphic(args)
 
local ship = self:create_ship(args)
 
local ship = self:create_ship(args)
if args.link then
+
if args.filename == "true" then
 +
        return args.damaged and ship:cg_damaged() or ship:cg()
 +
    elseif args.link then
 
if args.link == "nil" then
 
if args.link == "nil" then
 
return self:graphic(ship, args, nil)
 
return self:graphic(ship, args, nil)
Line 30: Line 32:  
return self:graphic(ship, args, args.link)
 
return self:graphic(ship, args, args.link)
 
end
 
end
else
+
    else
 
return self:graphic(ship, args, ship:link())
 
return self:graphic(ship, args, ship:link())
 
end
 
end
cssedit, gkautomate
7,064

edits