Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:KanmusuModule
(view source)
Revision as of 09:35, 26 October 2018
447 bytes removed
,
6 years ago
no edit summary
Line 129:
Line 129:
-- Planes & ASW
-- Planes & ASW
−
local aircraftTotal =
0
+
local aircraftTotal =
shipdb
.
TotalAircraft(frame)
−
if shipmodule
.
data[shipNum]["aircraft"] ~= "" then
−
local aircraftslot = {0, 0, 0, 0}
−
for i = 1, 4, 1 do
−
if shipmodule.data[shipNum]["aircraft"][i] ~= nil then
−
aircraftslot[i] = shipmodule.data[shipNum]["aircraft"][i]
−
else
−
aircraftslot[i] = 0
−
end
−
end
−
aircraftTotal = aircraftslot[1] + aircraftslot[2] + aircraftslot[3] + aircraftslot[4]
−
else
−
aircraftTotal = 0
−
end
local Planeinfo = statLabel .. 'PLA [[File:IcoAircraft.png|Aircraft]]</th>' .. statBox .. aircraftTotal .. '</td>'
local Planeinfo = statLabel .. 'PLA [[File:IcoAircraft.png|Aircraft]]</th>' .. statBox .. aircraftTotal .. '</td>'
local ASWinfo = statLabel .. 'ASW [[File:IcoASW.png|Anti-Submarine Warfare]]</th>' .. statBox
local ASWinfo = statLabel .. 'ASW [[File:IcoASW.png|Anti-Submarine Warfare]]</th>' .. statBox
IbarakiIbuki
5,421
edits