• 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
m
no edit summary
Line 311: Line 311:  
     elseif resourceGroup == 3 then
 
     elseif resourceGroup == 3 then
 
         return fuel, ammo, steel, math.max(main + 1, bauxite)
 
         return fuel, ammo, steel, math.max(main + 1, bauxite)
    end
  −
end
  −
  −
function Self.formatTypes(eq)
  −
    if eq:buildable() then
  −
        local result = {}
  −
        local id = eq:id()
  −
        local groups = findGroups(id)
  −
        local fuel = (eq:scrap().fuel or 1) * 10
  −
        local ammo = (eq:scrap().ammo or 1) * 10
  −
        local steel = (eq:scrap().steel or 1) * 10
  −
        local bauxite = (eq:scrap().bauxite or 1) * 10
  −
        for typeGroup, _ in pairs(groups) do
  −
            table.insert(result, table.concat(Self.typeGroups[t], "/"))
  −
        end
  −
        return table.concat(result, "\n")
  −
    else
  −
        return 'N/A'
   
     end
 
     end
 
end
 
end
cssedit, gkautomate
7,064

edits

Navigation menu