From 024c4c6bcd91d3cbae20ae4c654541c051fd84ae Mon Sep 17 00:00:00 2001 From: JT Smith Date: Tue, 21 Sep 2010 16:04:25 -0500 Subject: [PATCH] added a whole lot of free resources --- lib/Lacuna/Tutorial.pm | 34 ++++++++++++++++++++ var/messages/tutorial/counter_spy.txt | 2 +- var/messages/tutorial/essentia.txt | 2 +- var/messages/tutorial/get_food.txt | 2 +- var/messages/tutorial/keep_the_lights_on.txt | 2 +- var/messages/tutorial/the_end.txt | 2 ++ var/messages/tutorial/university.txt | 2 +- 7 files changed, 41 insertions(+), 5 deletions(-) diff --git a/lib/Lacuna/Tutorial.pm b/lib/Lacuna/Tutorial.pm index 406c6824..848c1184 100644 --- a/lib/Lacuna/Tutorial.pm +++ b/lib/Lacuna/Tutorial.pm @@ -71,6 +71,11 @@ sub get_food { if ($finish) { my $malcud = $home->get_building_of_class('Lacuna::DB::Result::Building::Food::Malcud'); if (defined $malcud && $malcud->level >= 1) { + $home->add_trona(700); + $home->add_bread(700); + $home->add_energy(700); + $home->add_water(700); + $home->update; $self->start('drinking_water'); return undef; } @@ -87,6 +92,11 @@ sub keep_the_lights_on { if ($finish) { my $geo = $home->get_building_of_class('Lacuna::DB::Result::Building::Energy::Geo'); if (defined $geo && $geo->level >= 1) { + $home->add_trona(700); + $home->add_bread(700); + $home->add_energy(700); + $home->add_water(700); + $home->update; $self->start('mine'); return undef; } @@ -199,9 +209,15 @@ sub pawn { sub counter_spy { my ($self, $finish) = @_; my $empire = $self->empire; + my $home = $empire->home_planet; if ($finish) { my $counter = Lacuna->db->resultset('Lacuna::DB::Result::Spies')->search({empire_id => $empire->id, task=>'Counter Espionage'})->count; if ($counter >= 2) { + $home->add_trona(700); + $home->add_bread(700); + $home->add_energy(700); + $home->add_water(700); + $home->update; $self->start('observatory'); return undef; } @@ -246,7 +262,14 @@ sub explore { sub the_end { my ($self, $finish) = @_; + my $empire = $self->empire; + my $home = $empire->home_planet; if ($finish) { + $home->add_bauxite(2000); + $home->add_cheese(2000); + $home->add_energy(2000); + $home->add_water(2000); + $home->update; $self->start('turing'); return undef; } @@ -295,6 +318,11 @@ sub university { if ($finish) { my $building = $home->get_building_of_class('Lacuna::DB::Result::Building::University'); if (defined $building && $building->level >= 1) { + $home->add_trona(700); + $home->add_bread(700); + $home->add_energy(700); + $home->add_water(700); + $home->update; $self->start('storage'); return undef; } @@ -402,9 +430,15 @@ sub fool { sub essentia { my ($self, $finish) = @_; my $empire = $self->empire; + my $home = $empire->home_planet; if ($finish) { my $now = DateTime->now; if ($empire->food_boost >= $now && $empire->water_boost >= $now && $empire->ore_boost >= $now && $empire->energy_boost >= $now) { + $home->add_trona(700); + $home->add_bread(700); + $home->add_energy(700); + $home->add_water(700); + $home->update; $self->start('energy'); return undef; } diff --git a/var/messages/tutorial/counter_spy.txt b/var/messages/tutorial/counter_spy.txt index 82dfa248..32159264 100644 --- a/var/messages/tutorial/counter_spy.txt +++ b/var/messages/tutorial/counter_spy.txt @@ -10,4 +10,4 @@ Not Tou Re Ell (I'm evil, you just don't know it yet!) Lacuna Expanse Corp Task: Train another spy and assign them duties. -Reward: None. +Reward: Free resources. diff --git a/var/messages/tutorial/essentia.txt b/var/messages/tutorial/essentia.txt index bf910674..dfa7aa22 100644 --- a/var/messages/tutorial/essentia.txt +++ b/var/messages/tutorial/essentia.txt @@ -12,5 +12,5 @@ Not Tou Re Ell (TRE in TLE working for LEC, and that's enough initials for me! H Lacuna Expanse Corp Task: Spend some essentia to boost your production of water, energy, food, and ore. -Reward: None. +Reward: Free resources. diff --git a/var/messages/tutorial/get_food.txt b/var/messages/tutorial/get_food.txt index 3c906e68..8478a8f8 100644 --- a/var/messages/tutorial/get_food.txt +++ b/var/messages/tutorial/get_food.txt @@ -14,4 +14,4 @@ Tou Re Ell Lacuna Expanse Corp Task: Build the free Malcud Fungus Farm. -Reward: None. +Reward: Free resources. diff --git a/var/messages/tutorial/keep_the_lights_on.txt b/var/messages/tutorial/keep_the_lights_on.txt index 766c4065..6ea54b90 100644 --- a/var/messages/tutorial/keep_the_lights_on.txt +++ b/var/messages/tutorial/keep_the_lights_on.txt @@ -12,4 +12,4 @@ Tou Re Ell Lacuna Expanse Corp Task: Build a Geo Energy Plant. -Reward: None. +Reward: Free resources. diff --git a/var/messages/tutorial/the_end.txt b/var/messages/tutorial/the_end.txt index 6be2f750..b70da69e 100644 --- a/var/messages/tutorial/the_end.txt +++ b/var/messages/tutorial/the_end.txt @@ -4,6 +4,8 @@ Unfortunately, our journey has come to an end. As our final gift, we've shipped We would like very much to be your first trading partner. We have a nearly infinite amount of resources at our disposal, but very little Essentia. If you're willing to part with some Essentia when you come across it, we'll trade with you for any goods that you need. This will be our exclusive deal with you. Keep in mind all the help we've given you to get started. With this in mind, I believe, I hope, that you will consider trading with us whenever you are in need. +As a show of good faith, I've restocked your storage a bit. You'll find I've topped off your storage with 2000 of each resource. + Your Trading Partner, Tou Re Ell diff --git a/var/messages/tutorial/university.txt b/var/messages/tutorial/university.txt index cee1ec13..58bf43c2 100644 --- a/var/messages/tutorial/university.txt +++ b/var/messages/tutorial/university.txt @@ -12,4 +12,4 @@ Tou Re Ell Lacuna Expanse Corp Task: Build a University. -Reward: None. +Reward: Free resources. -- 2.51.2