• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Changes

Jump to navigation Jump to search
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

Navigation menu