diff --git a/lib/Lacuna/DB/Result/Spies.pm b/lib/Lacuna/DB/Result/Spies.pm index 96faefcd..2c547d77 100644 --- a/lib/Lacuna/DB/Result/Spies.pm +++ b/lib/Lacuna/DB/Result/Spies.pm @@ -1110,7 +1110,7 @@ sub steal_planet { )->id; } my $ranks = Lacuna->db->resultset('Lacuna::DB::Result::Log::Empire'); - my $defender_rank = $ranks->search({empire_id => $defender->on_body->empire_id },{rows => 1})->get_column('empire_size_rank')->single; + my $defender_rank = $ranks->search({empire_id => $self->on_body->empire_id },{rows => 1})->get_column('empire_size_rank')->single; my $attacker_rank = $ranks->search({empire_id => $self->empire_id },{rows => 1})->get_column('empire_size_rank')->single; unless ($attacker_rank + 50 > $defender_rank ) { # remember that the rank is inverted 1 is higher than 2. return $self->empire->send_predefined_message( diff --git a/var/www/public/changes.txt b/var/www/public/changes.txt index 2e018b57..08c39b96 100644 --- a/var/www/public/changes.txt +++ b/var/www/public/changes.txt @@ -8,6 +8,7 @@ - If you have spies on a body that becomes uninhabited while they are on the planet, they will teleport home. - You can now only have 1 subspace transporter per planet. That's all that ever made sense anyway. - Captured spies no longer show up in foreign spies on the security ministry. + - You can now send up to 3 stakes in a 24 hour period, and the happiness requirement has been lifted. - Whenever you are returned a planet or a star via get_status() they now return their zone as well. - Genetics Lab's run_experiment output now includes everything from prepare_experiment as well, so you can immediately run a second experiment without another call. - Exposed "max_occupants" on shipyard.get_buildable().