Skip to content

Commit

Permalink
Slight change.
Browse files Browse the repository at this point in the history
  • Loading branch information
lemming552 committed Dec 4, 2013
1 parent fdc3d6b commit 137a275
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 15 deletions.
7 changes: 3 additions & 4 deletions lib/Lacuna/RPC/Building/IntelTraining.pm
Expand Up @@ -55,11 +55,10 @@ around 'view' => sub {
my $building = $self->get_building($empire, $building_id, skip_offline => 1);
my $out = $orig->($self, $empire, $building);
my $boost = (time < $empire->spy_training_boost->epoch) ? 1.25 : 1;
my $points_hour = $building->level * 2 * $boost;
my $points_per = $building->level * 2 * $boost;
$out->{spies} = {
# training_costs => $building->training_costs,
points_per_hour => $points_hour,
in_training => $building->spies_in_training_count,
points_per => $points_per,
in_training => $building->spies_in_training_count,
};
return $out;
};
Expand Down
7 changes: 3 additions & 4 deletions lib/Lacuna/RPC/Building/MayhemTraining.pm
Expand Up @@ -55,11 +55,10 @@ around 'view' => sub {
my $building = $self->get_building($empire, $building_id, skip_offline => 1);
my $out = $orig->($self, $empire, $building);
my $boost = (time < $empire->spy_training_boost->epoch) ? 1.25 : 1;
my $points_hour = $building->level * 2 * $boost;
my $points_per = $building->level * 2 * $boost;
$out->{spies} = {
# training_costs => $building->training_costs,
points_per_hour => $points_hour,
in_training => $building->spies_in_training_count,
points_per => $points_per,
in_training => $building->spies_in_training_count,
};
return $out;
};
Expand Down
7 changes: 3 additions & 4 deletions lib/Lacuna/RPC/Building/PoliticsTraining.pm
Expand Up @@ -55,11 +55,10 @@ around 'view' => sub {
my $building = $self->get_building($empire, $building_id, skip_offline => 1);
my $out = $orig->($self, $empire, $building);
my $boost = (time < $empire->spy_training_boost->epoch) ? 1.25 : 1;
my $points_hour = $building->level * 2 * $boost;
my $points_per = $building->level * 2 * $boost;
$out->{spies} = {
# training_costs => $building->training_costs,
points_per_hour => $points_hour,
in_training => $building->spies_in_training_count,
points_per => $points_per,
in_training => $building->spies_in_training_count,
};
return $out;
};
Expand Down
5 changes: 2 additions & 3 deletions lib/Lacuna/RPC/Building/TheftTraining.pm
Expand Up @@ -55,10 +55,9 @@ around 'view' => sub {
my $building = $self->get_building($empire, $building_id, skip_offline => 1);
my $out = $orig->($self, $empire, $building);
my $boost = (time < $empire->spy_training_boost->epoch) ? 1.25 : 1;
my $points_hour = $building->level * 2 * $boost;
my $points_per = $building->level * 2 * $boost;
$out->{spies} = {
# training_costs => $building->training_costs,
points_per_hour => $points_hour,
points_per => $points_per,
in_training => $building->spies_in_training_count,
};
return $out;
Expand Down

0 comments on commit 137a275

Please sign in to comment.