From 3d984b8687a8755238093026eaaf47f87b3a5347 Mon Sep 17 00:00:00 2001 From: lemming552 Date: Sun, 23 Sep 2012 20:48:52 -0600 Subject: [PATCH] Couple typos and having efficiency accounted for with a gaunlet. --- lib/Lacuna/DB/Result/Building/ThemePark.pm | 2 +- lib/Lacuna/DB/Result/Spies.pm | 2 +- lib/Lacuna/RPC/Building/BlackHoleGenerator.pm | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Lacuna/DB/Result/Building/ThemePark.pm b/lib/Lacuna/DB/Result/Building/ThemePark.pm index 7ef29e44..2bb209e4 100644 --- a/lib/Lacuna/DB/Result/Building/ThemePark.pm +++ b/lib/Lacuna/DB/Result/Building/ThemePark.pm @@ -81,7 +81,7 @@ sub can_operate { if ($self->is_working) { my $current_types = $self->work->{food_type_count}; if ($types < $current_types) { - confess [1011, "This Theme Park was started with ".$current_types." types of food so you need at least ".$current_types." types of food to continue it's operation."]; + confess [1011, "This Theme Park was started with ".$current_types." types of food so you need at least ".$current_types." types of food to continue its operation."]; } } elsif ($types < 5) { diff --git a/lib/Lacuna/DB/Result/Spies.pm b/lib/Lacuna/DB/Result/Spies.pm index 19bc228e..a9573fc2 100644 --- a/lib/Lacuna/DB/Result/Spies.pm +++ b/lib/Lacuna/DB/Result/Spies.pm @@ -336,7 +336,7 @@ sub is_available { my $hours = 1; my $gauntlet = $self->on_body->get_building_of_class('Lacuna::DB::Result::Building::Permanent::GratchsGauntlet'); if (defined $gauntlet) { - $hours += $gauntlet->level * 3; + $hours += int(($gauntlet->level * 3 * $gauntlet->efficiency)/100 + 1); } my $infiltration_time = $self->available_on->clone->add(hours => $hours); if ($infiltration_time->epoch > time) { diff --git a/lib/Lacuna/RPC/Building/BlackHoleGenerator.pm b/lib/Lacuna/RPC/Building/BlackHoleGenerator.pm index 662f2d35..86a6b08a 100644 --- a/lib/Lacuna/RPC/Building/BlackHoleGenerator.pm +++ b/lib/Lacuna/RPC/Building/BlackHoleGenerator.pm @@ -1178,7 +1178,7 @@ sub subsidize_cooldown { my $building = $self->get_building($empire, $building_id); unless ($building->is_working) { - confess [1010, "No one is searching."]; + confess [1010, "BHG is not in cooldown mode."]; } unless ($empire->essentia >= 2) { -- 2.51.2