Changes
units with 0 speed are treated as installations both internally and apparently (can be shown by KC Kai)
function EnemyShipInfoKai:type()
function EnemyShipInfoKai:type()
local ship_type = Formatting:format_ship_type(self._ship:type())
local ship_type = Formatting:format_ship_type(self._ship:type())
if self._ship:is_pillbox() then
if self._ship:speed() == 0 then
ship_type = ship_type .. " (Pillbox)"
ship_type = ship_type ..
(self._ship:is_pillbox() and " (Pillbox)" or " (Installation)")
end
end
-- automatically make units with 0 speed installations
-- deprecate _installation
self._vars.type = ship_type
self._vars.type = ship_type
end
end