- 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
Line 42:
Line 42:
+
+
+
+
+
+
+
Line 73:
Line 80:
− +
Line 81:
Line 88:
− +
Line 89:
Line 96:
− +
Line 97:
Line 104:
− +
Line 105:
Line 112:
− +
Line 113:
Line 120:
− +
Line 121:
Line 128:
− +
Line 129:
Line 136:
− +
Line 137:
Line 144:
− +
Line 145:
Line 152:
− +
Line 160:
Line 167:
− +
− +
− +
− +
− +
no edit summary
_dash = "-",
_dash = "-",
_question_marks = "??",
_question_marks = "??",
_column_bg_colors = {
firepower = "lightcoral",
torpedo = "lightskyblue",
aa = "sandybrown",
armor = "#F2E279",
luck = "palegreen",
},
}
}
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
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
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
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
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
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
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
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
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
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
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