• 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 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
5,421

edits

Navigation menu