Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:EquipmentAsset
(view source)
Revision as of 16:52, 2 March 2018
202 bytes added
,
6 years ago
no edit summary
Line 5:
Line 5:
function EquipmentAsset:create_object(args)
function EquipmentAsset:create_object(args)
−
return Equipment(args[1])
+
if args.id then
+
local equipmentMap = require('Module:Collection/EquipmentByApiId')
+
local apiId = tonumber(args.id)
+
return Equipment(equipmentMap[apiId])
+
else
+
return Equipment(args[1])
+
end
end
end
return EquipmentAsset
return EquipmentAsset
がか
cssedit, gkautomate
7,064
edits