From 5d3cd0266339ba600a6ebd3ebde51a9d71875182 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Tue, 21 Dec 2010 15:05:08 -0600 Subject: [PATCH] was calculating efficiency wrong --- lib/Lacuna/RPC/Building/SpacePort.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Lacuna/RPC/Building/SpacePort.pm b/lib/Lacuna/RPC/Building/SpacePort.pm index 2a92fb5e..35e56f89 100644 --- a/lib/Lacuna/RPC/Building/SpacePort.pm +++ b/lib/Lacuna/RPC/Building/SpacePort.pm @@ -373,8 +373,8 @@ sub view_foreign_ships { my @fleet; my $now = time; my $ships = $building->foreign_ships->search({}, {rows=>25, page=>$page_number, join => 'body' }); - my $see_ship_type = ($building->level * 450) * ( 100 / ($building->efficiency || 1)); - my $see_ship_path = ($building->level * 350) * ( 100 / ($building->efficiency || 1)); + my $see_ship_type = ($building->level * 350) * ( $building->efficiency / 100 ); + my $see_ship_path = ($building->level * 450) * ( $building->efficiency / 100 ); my @my_planets = $empire->planets->get_column('id')->all; while (my $ship = $ships->next) { if ($ship->date_available->epoch <= $now) { -- 2.51.2