Changes
no edit summary
_icon_caption_template = "${equipment} | ${equipment_type}",
_icon_caption_template = "${equipment} | ${equipment_type}",
_installation_label = "Installation",
_installation_label = "Installation",
_air_power_template = "${air_power} Air Power",
_asw_label = "ASW",
_asw_label = "ASW",
_high_asw_label = "High ASW",
_high_asw_label = "High ASW",
icon = equipment:icon()
icon = equipment:icon()
equipment_type = equipment:type()
equipment_type = equipment:type()
if ShipCapabilities:_is_sonar(equipment) then
if ShipCapabilities:_is_air_power_plane(equipment) then
air_power = true
elseif ShipCapabilities:_is_sonar(equipment) then
sonar = true
sonar = true
elseif ShipCapabilities:_is_depth_charge(equipment) then
elseif ShipCapabilities:_is_depth_charge(equipment) then
table.insert(roles, self._opening_torpedo_label)
table.insert(roles, self._opening_torpedo_label)
end
end
end
if air_power then
table.insert(roles, format{self._air_power_template, air_power = Formatting:format_stat(ship:air_power())})
end
end
if sonar or dc then
if sonar or dc then