From 3858a95e5014155f326b8a40efd026366b01fcfe Mon Sep 17 00:00:00 2001 From: JT Smith Date: Tue, 21 Dec 2010 15:03:28 -0600 Subject: [PATCH] was doing efficiency wrong --- lib/Lacuna/Role/Ship/Arrive/CaptureWithSpies.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.51.2