• 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 254: Line 254:  
local api_id = self:api_id()
 
local api_id = self:api_id()
 
if api_id then
 
if api_id then
    if api_id > 510 then --Abyssal equipment need shifting by 1000, final number should be 1500
  −
        local equipment_type = self:type()
  −
        if equipment_type < 6
  −
            or (equipment_type > 11 and equipment_type ~= 25 and equipment_type ~= 26 and equipment_type ~= 41
  −
            and equipment_type ~= 45 and equipment_type ~= 47 and equipment_type ~= 48 and equipment_type ~= 94) then
  −
        Equipment = Equipment or require(self._constructor_module)
  −
        EquipmentFrom = EquipmentFrom or require("Module:Collection/EquipmentByApiId")
  −
        --return Equipment(EquipmentFrom[api_id - 1500]):cg()
  −
        --temp code while awaiting full abyssal ID shift:
  −
        if api_id < 1500 then
  −
        return Equipment(EquipmentFrom[api_id - 500]):cg()
  −
            else
  −
    return Equipment(EquipmentFrom[api_id - 1500]):cg()
  −
            end
  −
    --end temp
  −
    end
  −
    end
   
return Formatting:equipment_cg(api_id, self:asset_name())
 
return Formatting:equipment_cg(api_id, self:asset_name())
 
end
 
end
cssedit, gkautomate
7,064

edits

Navigation menu