Skip to content

Commit

Permalink
Gauntlet should work at uni+1 level, too.
Browse files Browse the repository at this point in the history
The check for the gauntlet really being a police station was made
redundant since the police station's effective_level already eliminates
the university level check, as do all station modules.
  • Loading branch information
dmcbride committed Nov 19, 2015
1 parent a70df39 commit 4d2879f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions lib/Lacuna/DB/Result/Spies.pm
Expand Up @@ -545,12 +545,10 @@ sub is_available {
my $uni_level = $self->on_body->empire->university_level;
if ($self->on_body->isa('Lacuna::DB::Result::Map::Body::Planet::Station')) {
$building = 'Module::PoliceStation';
$uni_level = 30; #This way, uni level doesn't matter with SS
}
my $gauntlet = $self->on_body->get_building_of_class('Lacuna::DB::Result::Building::'.$building);
if (defined $gauntlet) {
my $level = $gauntlet->effective_level;
$level = $uni_level if ($level > $uni_level);
$seconds += int(3600 * (($level * 3 * $gauntlet->efficiency)/100 + 1));
}

Expand Down
1 change: 1 addition & 0 deletions var/www/public/changes.txt
Expand Up @@ -7,6 +7,7 @@
- Fix: Destroying IBS removes all influence.
- Fix: AIs' stations can now be destroyed.
- Fix: Make owner of star a bit more predictable in case of ties.
- Fix: Gauntlet now works at uni+1 level, too.

3.0915:
- Fix: Reduce the wild resource fluctuations during planet ticking.
Expand Down

0 comments on commit 4d2879f

Please sign in to comment.