Skip to content

Commit

Permalink
Making sure size side effects don't occur on firing planet.
Browse files Browse the repository at this point in the history
  • Loading branch information
lemming552 committed May 15, 2013
1 parent 775eda2 commit e142688
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Lacuna/RPC/Building/BlackHoleGenerator.pm
Expand Up @@ -827,11 +827,11 @@ sub generate_singularity {
elsif ($side_type < 75) {
$return_stats = bhg_random_resource($building);
}
elsif ($side_type < 95) {
elsif ($side_type < 97) {
$return_stats = bhg_random_decor($building);
}
else {
$return_stats = bhg_size($building, $body, 0);
$return_stats = bhg_resource($body, 0);
}
$effect->{side} = $return_stats;
}
Expand Down Expand Up @@ -1324,7 +1324,7 @@ sub bhg_random_size {
my $body = $building->body;
my $target = Lacuna->db->resultset('Lacuna::DB::Result::Map::Body')
->search(
{zone => $body->zone, empire_id => undef },
{zone => $body->zone, id => { '!=' => $body->id } },
{rows => 1, order_by => 'rand()' }
)->single;
my $return;
Expand Down

0 comments on commit e142688

Please sign in to comment.