• 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
bg color saturation increase based on value
Line 43: Line 43:  
_question_marks = "??",
 
_question_marks = "??",
 
_column_bg_colors = {
 
_column_bg_colors = {
 +
{
 +
firepower = "#e6cfcf",
 +
torpedo = "#cfdde6",
 +
aa = "#e6d9cf",
 +
armor = "#e6e3cf",
 +
},
 +
{
 +
firepower = "#e6c3c3",
 +
torpedo = "#c3d9e6",
 +
aa = "#e6d3c3",
 +
armor = "#e6e2c3",
 +
},
 +
{
 +
firepower = "#e6b8b8",
 +
torpedo = "#b8d4e6",
 +
aa = "#e6ccb8",
 +
armor = "#e6e0b8",
 +
},
 +
{
 +
firepower = "#e6adad",
 +
torpedo = "#add0e6",
 +
aa = "#e6c5ad",
 +
armor = "#e6dead",
 +
},
 +
{
 +
firepower = "#e6a1a1",
 +
torpedo = "#a1cbe6",
 +
aa = "#e6bfa1",
 +
armor = "#e6dda1",
 +
},
 +
{
 +
firepower = "#e69696",
 +
torpedo = "#96c7e6",
 +
aa = "#e6b996",
 +
armor = "#e6db96",
 +
},
 +
{
 +
firepower = "#e68a8a",
 +
torpedo = "#8ac2e6",
 +
aa = "#e6b28a",
 +
armor = "#e6da8a",
 +
},
 +
{
 +
firepower = "#e67f7f",
 +
torpedo = "#7fbee6",
 +
aa = "#e6ab7f",
 +
armor = "#e6d87f",
 +
},
 +
[1.2] = {
 +
luck = "#b8e6b8",
 +
},
 +
[1.6] = {
 +
luck = "#8ae68a",
 +
},
 
firepower = "#e6cfcf",
 
firepower = "#e6cfcf",
 
torpedo = "#cfdde6",
 
torpedo = "#cfdde6",
Line 48: Line 102:  
armor = "#e6e3cf",
 
armor = "#e6e3cf",
 
luck = "#cfe6cf",
 
luck = "#cfe6cf",
},
+
}
 
}
 
}
   Line 176: Line 230:     
function ShipModernizationListKai:firepower_mod(modernization)
 
function ShipModernizationListKai:firepower_mod(modernization)
return {values = {value = Formatting:format_bonus(modernization.firepower, nil, self._dash)}, bg_color = modernization.firepower and self._column_bg_colors.firepower or self._transparent, text_align = self._center_align}
+
return {values = {value = Formatting:format_bonus(modernization.firepower, nil, self._dash)}, bg_color = modernization.firepower and (self._column_bg_colors[modernization.firepower] or self._column_bg_colors).firepower or self._transparent, 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, nil, self._dash)}, bg_color = modernization.torpedo and self._column_bg_colors.torpedo or self._transparent, text_align = self._center_align}
+
return {values = {value = Formatting:format_bonus(modernization.torpedo, nil, self._dash)}, bg_color = modernization.torpedo and (self._column_bg_colors[modernization.torpedo] or self._column_bg_colors).torpedo or self._transparent, 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, nil, self._dash)}, bg_color = modernization.aa and self._column_bg_colors.aa or self._transparent, text_align = self._center_align}
+
return {values = {value = Formatting:format_bonus(modernization.aa, nil, self._dash)}, bg_color = modernization.aa and (self._column_bg_colors[modernization.aa] or self._column_bg_colors).aa or self._transparent, 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, nil, self._dash)}, bg_color = modernization.armor and self._column_bg_colors.armor or self._transparent, text_align = self._center_align}
+
return {values = {value = Formatting:format_bonus(modernization.armor, nil, self._dash)}, bg_color = modernization.armor and (self._column_bg_colors[modernization.armor] or self._column_bg_colors).armor or self._transparent, 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, self._dash, true)}, bg_color = modernization.luck and self._column_bg_colors.luck or self._transparent, text_align = self._center_align}
+
return {values = {value = Formatting:format_bonus(modernization.luck, nil, self._dash, true)}, bg_color = modernization.luck and (self._column_bg_colors[modernization.luck] or self._column_bg_colors).luck or self._transparent, text_align = self._center_align}
 
end
 
end
  
Anonymous user

Navigation menu