From fb7aeffc9f150955683beac6395a2b0860e57aaf Mon Sep 17 00:00:00 2001 From: JT Smith Date: Tue, 15 Mar 2011 11:24:58 -0500 Subject: [PATCH] Space stations now count against your next colony cost while in transit. --- lib/Lacuna/DB/Result/Empire.pm | 2 +- var/www/public/changes.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Lacuna/DB/Result/Empire.pm b/lib/Lacuna/DB/Result/Empire.pm index 78635bcc..dc1942cd 100644 --- a/lib/Lacuna/DB/Result/Empire.pm +++ b/lib/Lacuna/DB/Result/Empire.pm @@ -658,7 +658,7 @@ sub next_colony_cost { my ($self, $adjustment) = @_; my $count = $self->planets->count + $adjustment; $count += Lacuna->db->resultset('Lacuna::DB::Result::Ships')->search( - { type=> { in => [qw(colony_ship short_range_colony_ship)]}, task=>'travelling', direction=>'out', 'body.empire_id' => $self->id}, + { type=> { in => [qw(colony_ship short_range_colony_ship space_station)]}, task=>'travelling', direction=>'out', 'body.empire_id' => $self->id}, { join => 'body' } )->count; my $inflation = INFLATION - ($self->growth_affinity / 100); diff --git a/var/www/public/changes.txt b/var/www/public/changes.txt index 51142dc1..aac85b6c 100644 --- a/var/www/public/changes.txt +++ b/var/www/public/changes.txt @@ -1,6 +1,7 @@ 3.0100 - Rule: Deployed bleeders now require a captcha to be demolished. - Fix: All body resource attributes have been upgraded to support 9223372036854775807 instead of 2147483647. + - Fix: Space stations now count against your next colony cost while in transit. 3.0001 - Add: Added Space Station Lab building, which will eventually allow building space station modules. -- 2.54.0