Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Tuning jackpot a bit more

  • Loading branch information...
commit 65faf51624ee589ed68bb012021804e9a373a331 1 parent a9e7b62
Mark Lemming lemming552 authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 lib/Lacuna/AI/Jackpot.pm
11 lib/Lacuna/AI/Jackpot.pm
View
@@ -56,6 +56,7 @@ sub colony_structures {
['Lacuna::DB::Result::Building::SpacePort', 15],
['Lacuna::DB::Result::Building::SpacePort', 15],
['Lacuna::DB::Result::Building::Observatory',15],
+ ['Lacuna::DB::Result::Building::Oversight',15],
['Lacuna::DB::Result::Building::Archaeology',10],
['Lacuna::DB::Result::Building::Trade', 15],
['Lacuna::DB::Result::Building::SAW',15],
@@ -120,6 +121,12 @@ sub run_hourly_colony_updates {
sub reset_stuff {
my ($self, $colony) = @_;
+ print "Resetting Happiness\n";
+ if ($colony->happiness < 1_000_000_000_000) {
+ $colony->happiness(1_000_000_000_000);
+ $colony->update;
+ }
+
print "Resetting Buildings\n";
my %structures = map { $_->[0] => $_->[1] } $self->colony_structures;
@@ -166,6 +173,10 @@ sub reject_badspy {
my $spies = Lacuna->db->resultset('Spies')->search({
'me.on_body_id' => $colony->id,
'me.empire_id' => {'!=' => $colony->empire_id },
+ 'me.task' => { 'not in' => ['Killed In Action',
+ 'Travelling',
+ 'Captured',
+ 'Prisoner Transport'] },
'empire.university_level' => { '>' => 15 },
},{
join => 'empire',
Please sign in to comment.
Something went wrong with that request. Please try again.