Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:ShipGraphicKai
(view source)
Revision as of 19:36, 23 September 2015
106 bytes added
,
9 years ago
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