• 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
Add HQ level part of eLoS formula.
Line 29: Line 29:  
     _default_size = "120x165px",
 
     _default_size = "120x165px",
 
     _elos = 0,
 
     _elos = 0,
     _fighter_power = 0
+
     _fighter_power = 0,
 +
    _hq_lvl = 0
 
})
 
})
   Line 92: Line 93:  
         if item_key == "-" then
 
         if item_key == "-" then
 
             item = false
 
             item = false
 +
        elseif mw.ustring.find(item_key, '!') then
 +
            item = false
 +
           
 +
            local split = mw.ustring.find(item_key, '=')
 +
            self._hq_lvl = tonumber(mw.ustring.sub(item_key, split + 1))
 +
           
 +
            --Get bracket of 5
 +
            self._hq_lvl = self._hq_lvl - (self._hq_lvl % 5)
 
         else
 
         else
 
             if mw.ustring.find(item_key, '/') then
 
             if mw.ustring.find(item_key, '/') then
Line 109: Line 118:  
                 + Searchlight LoS x (0.91) + √(base LoS of each ship) x (1.69)
 
                 + Searchlight LoS x (0.91) + √(base LoS of each ship) x (1.69)
 
                 + (HQ Lv. rounded up to the next multiple of 5) x (-0.61)--]]
 
                 + (HQ Lv. rounded up to the next multiple of 5) x (-0.61)--]]
 +
                --HQ level portion done just before insertion into table
 
                 local ship = {}
 
                 local ship = {}
 
                 if (index - 1) % 10 < 5 then
 
                 if (index - 1) % 10 < 5 then
Line 207: Line 217:  
             table.insert(self._rows, self._row_starter)
 
             table.insert(self._rows, self._row_starter)
 
             table.insert(self._rows, format{self._calculated_cell_template,
 
             table.insert(self._rows, format{self._calculated_cell_template,
                 elos = self._elos,
+
                 elos = self._elos - (self._hq_lvl * 0.61),
 
                 fighter_power = self._fighter_power
 
                 fighter_power = self._fighter_power
 
             })
 
             })
48

edits

Navigation menu