From bb4f150a37300d9da846ebfadbf0ea931084aac8 Mon Sep 17 00:00:00 2001 From: Darin McBride Date: Wed, 13 Jan 2016 09:15:48 -0700 Subject: [PATCH] Spies should start infiltrating when they actually arrive. Not when they are calculated to arrive. --- lib/Lacuna/Role/Ship/Send/LoadWithSpies.pm | 3 ++- var/www/public/changes.txt | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Lacuna/Role/Ship/Send/LoadWithSpies.pm b/lib/Lacuna/Role/Ship/Send/LoadWithSpies.pm index f2859fef..721fd267 100644 --- a/lib/Lacuna/Role/Ship/Send/LoadWithSpies.pm +++ b/lib/Lacuna/Role/Ship/Send/LoadWithSpies.pm @@ -9,7 +9,8 @@ after send => sub { return if ( $self->payload->{mercenary} ); # Mercenary already loaded return if ( $self->payload->{spies} ); # Spies already loaded return if ( $self->payload->{fetch_spies} ); # Don't send spies if we are fetching - my $arrives = DateTime->now->add(seconds=>$self->calculate_travel_time($self->foreign_body)); + my $arrives = $self->date_available; + #DateTime->now->add(seconds=>$self->calculate_travel_time($self->foreign_body)); my @spies; my $to_body = $self->direction eq 'out' ? $self->foreign_body : $self->body; foreach my $spy (@{$self->get_available_spies_to_send}) { diff --git a/var/www/public/changes.txt b/var/www/public/changes.txt index e2b4791a..41ec1167 100644 --- a/var/www/public/changes.txt +++ b/var/www/public/changes.txt @@ -12,6 +12,7 @@ - Cht: /planet is more forgiving for new players to use. - Fix: Renaming a planet changes top-right planet name. - Fix: SSL resources and timers use lowest level of all tiles. + - Fix: Spies start infiltrating when they arrive. 3.0917: - Fix: Recalc stats when building 1+x plans. -- 2.51.2