Changes

no edit summary
Line 320: Line 320:  
local total_space = self._ship:total_space()
 
local total_space = self._ship:total_space()
 
if total_space and total_space > 0 then
 
if total_space and total_space > 0 then
 +
                -- [[Category:Todo]]:
 +
                -- * for friendly carriers torpedo = 0
 +
                -- * there are enemy carriers (carrier shelling capable ships, e.g., Supply Depot Princess)
 +
                --  with torpedo > 0, in Vita torpedo doesn't count in the formula, a browser test is required
 
local has_planes, torpedo, bombing = false, self._ship:torpedo_leveled() or 0, 0
 
local has_planes, torpedo, bombing = false, self._ship:torpedo_leveled() or 0, 0
 
for i = 1, self._ship:slots_length() do
 
for i = 1, self._ship:slots_length() do
cssedit, gkautomate
7,064

edits