Changes
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