Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:Development
(view source)
Revision as of 19:08, 15 April 2018
566 bytes removed
,
6 years ago
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