• 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 18: Line 18:  
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
Line 25: Line 25:  
elseif rarity == 6.5 then
 
elseif rarity == 6.5 then
 
bg_color = self._mid_boss_background_color
 
bg_color = self._mid_boss_background_color
extra_style = self._mid_boss_background_image
+
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
extra_style = self._plain_rare_background_image
+
background_image = self._plain_rare_background_image
 
elseif rarity == 6 then
 
elseif rarity == 6 then
extra_style = self._background_image
+
background_image = self._background_image
 
end
 
end
 
end
 
end
Line 38: Line 38:  
else
 
else
 
bg_color = self._rare_background_color
 
bg_color = self._rare_background_color
extra_style = self._rare_background_image
+
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
  
Anonymous user

Navigation menu