diff --git a/lib/Lacuna/Role/Ship/Arrive/CaptureWithSpies.pm b/lib/Lacuna/Role/Ship/Arrive/CaptureWithSpies.pm index aa120db1..e3f001aa 100644 --- a/lib/Lacuna/Role/Ship/Arrive/CaptureWithSpies.pm +++ b/lib/Lacuna/Role/Ship/Arrive/CaptureWithSpies.pm @@ -26,7 +26,7 @@ after handle_arrival_procedures => sub { return unless defined $security && $security->efficiency > 0; # lets see if we can detect the ship - my $security_detection = ($security->level * 700) * ( 100 / ($security->efficiency || 1)); + my $security_detection = ($security->level * 700) * ( $security->efficiency / 100 ); return unless $security_detection > $self->stealth; # ship detected, time to go kaboom