Changes

no edit summary
Line 591: Line 591:  
end
 
end
 
local equipment_torpedo = equipment:torpedo_leveled()
 
local equipment_torpedo = equipment:torpedo_leveled()
if equipment_torpedo then
+
if equipment_torpedo and torpedo then
 
torpedo = torpedo + equipment_torpedo
 
torpedo = torpedo + equipment_torpedo
 
end
 
end
Line 597: Line 597:  
end
 
end
 
if opening_torpedo then
 
if opening_torpedo then
return 5 + (fleet_torpedo or 0) + torpedo
+
return 5 + (fleet_torpedo or 0) + (torpedo or 0)
 
end
 
end
 
return false
 
return false
Anonymous user