- 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 18:
Line 18:
− +
Line 25:
Line 25:
− extra_style = self._mid_boss_background_image +
− extra_style = self._plain_rare_background_image +
− extra_style = self._background_image +
Line 38:
Line 38:
− extra_style = self._rare_background_image +
− +
no edit summary
local rarity = ship:rarity()
local rarity = ship:rarity()
local bg_color
local bg_color
local extra_style = ""
local background_image = nil
if rarity then
if rarity then
if rarity >= 4 and rarity <= 7 then
if rarity >= 4 and rarity <= 7 then
elseif rarity == 6.5 then
elseif rarity == 6.5 then
bg_color = self._mid_boss_background_color
bg_color = self._mid_boss_background_color
background_image = self._mid_boss_background_image
else
else
bg_color = self._background_color
bg_color = self._background_color
if rarity == 7 then
if rarity == 7 then
background_image = self._plain_rare_background_image
elseif rarity == 6 then
elseif rarity == 6 then
background_image = self._background_image
end
end
end
end
else
else
bg_color = self._rare_background_color
bg_color = self._rare_background_color
background_image = self._rare_background_image
end
end
else
else
bg_color = self._common_background_color
bg_color = self._common_background_color
end
end
return bg_color, extra_style
return bg_color, background_image
end
end