• 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
/* Format false ASW_max
Line 16: Line 16:  
! style="width: 30px; text-align: center; vertical-align: middle; background-color: sandybrown;" | ${aa}
 
! style="width: 30px; text-align: center; vertical-align: middle; background-color: sandybrown;" | ${aa}
 
! style="width: 30px; text-align: center; vertical-align: middle; background-color: #9C8FEE;" | ${asw}
 
! style="width: 30px; text-align: center; vertical-align: middle; background-color: #9C8FEE;" | ${asw}
! style="width: 30px; text-align: center; vertical-align: middle; background-color: #9C8FEE;" | ${asw_max}
+
! style="white-space:nowrap; width: 30px; text-align: center; vertical-align: middle; background-color: #9C8FEE;" | ${asw}+
 
! style="width: 30px; text-align: center; vertical-align: middle; background-color: aquamarine;" | ${los}
 
! style="width: 30px; text-align: center; vertical-align: middle; background-color: aquamarine;" | ${los}
 
! style="width: 30px; text-align: center; vertical-align: middle; background-color: palegreen;" | ${luck}
 
! style="width: 30px; text-align: center; vertical-align: middle; background-color: palegreen;" | ${luck}
Line 113: Line 113:     
function ShipListKai:asw_max(ship)
 
function ShipListKai:asw_max(ship)
return {value = Formatting:format_stat(ship:asw_max()), text_align = self._center_align}
+
local ASW = ship:asw_max();
 +
if ASW then
 +
return {value = Formatting:format_stat(ASW), text_align = self._center_align}
 +
else
 +
return {value = Formatting:format_stat(0), text_align = self._center_align}
 +
end
 
end
 
end
  
1,031

edits

Navigation menu