• 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
Installation handling
Line 139: Line 139:  
return ship_type == 13
 
return ship_type == 13
 
or ship_type == 14
 
or ship_type == 14
 +
end
 +
 +
function ShipCapabilities:_is_installation(ship)
 +
if not ship then
 +
ship = self._ship
 +
end
 +
return ship:is_installation()
 
end
 
end
   Line 217: Line 224:  
return "??"
 
return "??"
 
end
 
end
if not self:_is_carrier() then
+
local is_installation = self:_is_installation()
 +
if not self:_is_carrier() and not is_installation then
 
if firepower > 0 then
 
if firepower > 0 then
 
for i = 1, self._ship:slots() do
 
for i = 1, self._ship:slots() do
Line 259: Line 267:  
end
 
end
 
if has_planes then
 
if has_planes then
return format{"Bombing (${attack_power})", attack_power = self:_attack_power_cap(1.5 * (firepower + torpedo) + bombing * 2 + 55, 150)}
+
return format{is_installation and "Bombing, displayed as Shelling (${attack_power})" or "Bombing (${attack_power})", attack_power = self:_attack_power_cap(1.5 * (firepower + torpedo) + bombing * 2 + 55, 150)}
 
end
 
end
 
end
 
end
Anonymous user

Navigation menu