• 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 42: Line 42:  
_dash = "-",
 
_dash = "-",
 
_question_marks = "??",
 
_question_marks = "??",
 +
_column_bg_colors = {
 +
firepower = "lightcoral",
 +
torpedo = "lightskyblue",
 +
aa = "sandybrown",
 +
armor = "#F2E279",
 +
luck = "palegreen",
 +
},
 
}
 
}
   Line 73: Line 80:  
return self:firepower_mod(self._left_modernization)
 
return self:firepower_mod(self._left_modernization)
 
else
 
else
return {values = {value = self._dash}, bg_color = self._transparent, text_align = self._start_align}
+
return {values = {value = self._dash}, bg_color = self._column_bg_colors.firepower, text_align = self._start_align}
 
end
 
end
 
end
 
end
Line 81: Line 88:  
return self:firepower_mod(self._right_modernization)
 
return self:firepower_mod(self._right_modernization)
 
else
 
else
return {values = {value = self._dash}, bg_color = self._transparent, text_align = self._start_align}
+
return {values = {value = self._dash}, bg_color = self._column_bg_colors.firepower, text_align = self._start_align}
 
end
 
end
 
end
 
end
Line 89: Line 96:  
return self:torpedo_mod(self._left_modernization)
 
return self:torpedo_mod(self._left_modernization)
 
else
 
else
return {values = {value = self._dash}, bg_color = self._transparent, text_align = self._start_align}
+
return {values = {value = self._dash}, bg_color = self._column_bg_colors.torpedo, text_align = self._start_align}
 
end
 
end
 
end
 
end
Line 97: Line 104:  
return self:torpedo_mod(self._right_modernization)
 
return self:torpedo_mod(self._right_modernization)
 
else
 
else
return {values = {value = self._dash}, bg_color = self._transparent, text_align = self._start_align}
+
return {values = {value = self._dash}, bg_color = self._column_bg_colors.torpedo, text_align = self._start_align}
 
end
 
end
 
end
 
end
Line 105: Line 112:  
return self:aa_mod(self._left_modernization)
 
return self:aa_mod(self._left_modernization)
 
else
 
else
return {values = {value = self._dash}, bg_color = self._transparent, text_align = self._start_align}
+
return {values = {value = self._dash}, bg_color = self._column_bg_colors.aa, text_align = self._start_align}
 
end
 
end
 
end
 
end
Line 113: Line 120:  
return self:aa_mod(self._right_modernization)
 
return self:aa_mod(self._right_modernization)
 
else
 
else
return {values = {value = self._dash}, bg_color = self._transparent, text_align = self._start_align}
+
return {values = {value = self._dash}, bg_color = self._column_bg_colors.aa, text_align = self._start_align}
 
end
 
end
 
end
 
end
Line 121: Line 128:  
return self:armor_mod(self._left_modernization)
 
return self:armor_mod(self._left_modernization)
 
else
 
else
return {values = {value = self._dash}, bg_color = self._transparent, text_align = self._start_align}
+
return {values = {value = self._dash}, bg_color = self._column_bg_colors.armor, text_align = self._start_align}
 
end
 
end
 
end
 
end
Line 129: Line 136:  
return self:armor_mod(self._right_modernization)
 
return self:armor_mod(self._right_modernization)
 
else
 
else
return {values = {value = self._dash}, bg_color = self._transparent, text_align = self._start_align}
+
return {values = {value = self._dash}, bg_color = self._column_bg_colors.armor, text_align = self._start_align}
 
end
 
end
 
end
 
end
Line 137: Line 144:  
return self:luck_mod(self._left_modernization)
 
return self:luck_mod(self._left_modernization)
 
else
 
else
return {values = {value = self._dash}, bg_color = self._transparent, text_align = self._start_align}
+
return {values = {value = self._dash}, bg_color = self._column_bg_colors.luck, text_align = self._start_align}
 
end
 
end
 
end
 
end
Line 145: Line 152:  
return self:luck_mod(self._right_modernization)
 
return self:luck_mod(self._right_modernization)
 
else
 
else
return {values = {value = self._dash}, bg_color = self._transparent, text_align = self._start_align}
+
return {values = {value = self._dash}, bg_color = self._column_bg_colors.luck, text_align = self._start_align}
 
end
 
end
 
end
 
end
Line 160: Line 167:     
function ShipModernizationListKai:firepower_mod(modernization)
 
function ShipModernizationListKai:firepower_mod(modernization)
return {values = {value = Formatting:format_bonus(modernization.firepower)}, bg_color = self._transparent, text_align = self._center_align}
+
return {values = {value = Formatting:format_bonus(modernization.firepower, nil, self._dash)}, bg_color = self._column_bg_colors.firepower, text_align = self._center_align}
 
end
 
end
    
function ShipModernizationListKai:torpedo_mod(modernization)
 
function ShipModernizationListKai:torpedo_mod(modernization)
return {values = {value = Formatting:format_bonus(modernization.torpedo)}, bg_color = self._transparent, text_align = self._center_align}
+
return {values = {value = Formatting:format_bonus(modernization.torpedo, nil, self._dash)}, bg_color = self._column_bg_colors.torpedo, text_align = self._center_align}
 
end
 
end
    
function ShipModernizationListKai:aa_mod(modernization)
 
function ShipModernizationListKai:aa_mod(modernization)
return {values = {value = Formatting:format_bonus(modernization.aa)}, bg_color = self._transparent, text_align = self._center_align}
+
return {values = {value = Formatting:format_bonus(modernization.aa, nil, self._dash)}, bg_color = self._column_bg_colors.aa, text_align = self._center_align}
 
end
 
end
    
function ShipModernizationListKai:armor_mod(modernization)
 
function ShipModernizationListKai:armor_mod(modernization)
return {values = {value = Formatting:format_bonus(modernization.armor)}, bg_color = self._transparent, text_align = self._center_align}
+
return {values = {value = Formatting:format_bonus(modernization.armor, nil, self._dash)}, bg_color = self._column_bg_colors.armor, text_align = self._center_align}
 
end
 
end
    
function ShipModernizationListKai:luck_mod(modernization)
 
function ShipModernizationListKai:luck_mod(modernization)
return {values = {value = Formatting:format_bonus(modernization.luck, nil, true)}, bg_color = self._transparent, text_align = self._center_align}
+
return {values = {value = Formatting:format_bonus(modernization.luck, nil, self._dash, true)}, bg_color = self._column_bg_colors.luck, text_align = self._center_align}
 
end
 
end
  
Anonymous user

Navigation menu