• 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 150: Line 150:     
function EliteShipsKai:asw(ship)
 
function EliteShipsKai:asw(ship)
local asw_max = ship:asw_max()
+
local asw, asw_max = ship:asw(), ship:asw_max()
if asw_max == false then
+
return {values = {value = asw_max and Formatting:tooltip(Formatting:format_stat(asw_max), format{self._kekkon_max_template, value = Formatting:format_stat(ship:asw_leveled(155))}) or Formatting:format_stat(asw)}, bg_color = self:get_bg_color(self._cell_color.asw, asw_max, self._args.asw_operator, self._args.asw_outstanding, self._args.asw_good, self._args.asw_bad), text_align = self._center_align}
asw_max = ship:asw()
  −
end
  −
return {values = {value = asw_max and Formatting:tooltip(Formatting:format_stat(asw_max), format{self._kekkon_max_template, value = Formatting:format_stat(ship:asw_leveled(155))}) or Formatting:format_stat(asw_max)}, bg_color = self:get_bg_color(self._cell_color.asw, asw_max, self._args.asw_operator, self._args.asw_outstanding, self._args.asw_good, self._args.asw_bad), text_align = self._center_align}
   
end
 
end
  
cssedit, gkautomate
7,064

edits

Navigation menu