Changes

units with 0 speed are treated as installations both internally and apparently (can be shown by KC Kai)
Line 208: Line 208:  
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 ..
elseif self._ship:is_installation() then
+
(self._ship:is_pillbox() and " (Pillbox)" or " (Installation)")
ship_type = ship_type .. " (Installation)"
   
end
 
end
 +
-- automatically make units with 0 speed installations
 +
-- deprecate _installation
 
self._vars.type = ship_type
 
self._vars.type = ship_type
 
end
 
end
Anonymous user