• 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 1: Line 1:  
local Ship = require('Module:Ship')
 
local Ship = require('Module:Ship')
 
local StatIcons = require('Module:StatIcons')
 
local StatIcons = require('Module:StatIcons')
local Effects = require('Module:Effects')
   
local Formatting = require('Module:Formatting')
 
local Formatting = require('Module:Formatting')
 
local format = require('Module:StringInterpolation').format
 
local format = require('Module:StringInterpolation').format
Line 7: Line 6:  
local ShipInfoKai = {
 
local ShipInfoKai = {
 
_catbomb = "Catbomb.png|300px",
 
_catbomb = "Catbomb.png|300px",
_unbuilable = "''Unbuildable''",
+
_unbuildable = "''Unbuildable''",
 
_remodel_level = "'''Remodel Level'''",
 
_remodel_level = "'''Remodel Level'''",
 
_build_time = "'''Build Time'''",
 
_build_time = "'''Build Time'''",
Line 75: Line 74:  
function ShipInfoKai:bg_color(ship)
 
function ShipInfoKai:bg_color(ship)
 
local rarity = ship:rarity()
 
local rarity = ship:rarity()
local extra = ""
+
return Formatting:format_ship_back(rarity), Formatting:extra_style_background_image(rarity > 7, rarity > 6)
if rarity > 6 then
  −
extra = format{" background-image: ${bloom}${sparkles}", bloom = rarity > 7 and Effects.bloom or "", sparkles = Effects.sparkles}
  −
end
  −
return Formatting:format_ship_back(rarity), extra
   
end
 
end
  
Anonymous user

Navigation menu