Skip to content

Commit

Permalink
remove unrequired if
Browse files Browse the repository at this point in the history
  • Loading branch information
jackbayliss committed Oct 23, 2024
1 parent ed71f9c commit 56bbdb8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/Services/PlanetService.php
Original file line number Diff line number Diff line change
Expand Up @@ -360,10 +360,8 @@ public function getPlanetFieldMax(): int

// For every 2 levels, it adds another bonus field
$two_level_bonus_count = (int)(floor($this->planet->terraformer / 2));
if ($two_level_bonus_count != 0) {
$extra_fields += $two_level_bonus_count;
$extra_fields += $two_level_bonus_count;

}

}
return $extra_fields + $this->planet->field_max;
Expand Down

0 comments on commit 56bbdb8

Please sign in to comment.