• 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 5: Line 5:  
local Formatting = require('Module:Formatting')
 
local Formatting = require('Module:Formatting')
 
local format = require('Module:StringInterpolation').format
 
local format = require('Module:StringInterpolation').format
  −
local route_taken = ""
      
local NanaminFleet = BaseTable({
 
local NanaminFleet = BaseTable({
Line 33: Line 31:  
     _elos = 0,
 
     _elos = 0,
 
     _fighter_power = 0,
 
     _fighter_power = 0,
     _hq_lvl = 0
+
     _hq_lvl = 0,
 +
    _route_taken = ""
 
})
 
})
   Line 75: Line 74:  
     row = {row[3], row[4]}
 
     row = {row[3], row[4]}
 
     return self:equips(row)
 
     return self:equips(row)
 +
end
 +
 +
function NanaminFleet:testing()
 +
    return "A-B-C-D"
 
end
 
end
   Line 115: Line 118:  
         elseif mw.ustring.find(item_key, '!route') then
 
         elseif mw.ustring.find(item_key, '!route') then
 
             local split = mw.ustring.find(item_key, '=')
 
             local split = mw.ustring.find(item_key, '=')
             route_taken = mw.ustring.sub(item_key, split + 1)
+
             self._route_taken = mw.ustring.sub(item_key, split + 1)
 
         else
 
         else
 
             if mw.ustring.find(item_key, '/') then
 
             if mw.ustring.find(item_key, '/') then
Line 242: Line 245:  
                 fighter_power = self._fighter_power
 
                 fighter_power = self._fighter_power
 
             })
 
             })
 +
            local testing = self:testing()
 
             table.insert(self._rows, self._row_starter)
 
             table.insert(self._rows, self._row_starter)
 
             table.insert(self._rows, format{self._route_cell_template,
 
             table.insert(self._rows, format{self._route_cell_template,
                 route_taken = route_taken
+
                 route_taken = testing
 
             })
 
             })
 
end
 
end
48

edits

Navigation menu