From e557dbab8f0023ee30f1c8279558dac045aa8cd9 Mon Sep 17 00:00:00 2001 From: Jake Funke Date: Thu, 4 May 2017 18:49:29 +0000 Subject: [PATCH] Generation system updated, readme updated --- README.md | 5 ++++- botany.py | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 52e88aa..c72efa8 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,8 @@ If your plant goes 5 days without water, it will die! * Curses-based menu system, optimized for 80x24 terminal * 20+ Species of plants w/ ASCII art for each * Persistent aging system that allows your plant to grow even when app is closed +* Generations: each plant you bring to its full growth potential rewards you + with 20% growth speed for the next plant * Random and rare mutations can occur at any point in a plant's life * SQLite Community Garden of other users' plants (for shared unix servers) * Data files are created in the user's home (~) directory, along with a JSON file that can be used in other apps. @@ -45,6 +47,7 @@ If your plant goes 5 days without water, it will die! "owner":"jakefunke", "is_dead":false, "last_watered":1489113197 +"generation": 2 } ``` @@ -61,7 +64,7 @@ If your plant goes 5 days without water, it will die! * Server API to have rain storms, heat waves, insects * Name your plant * Reward for keeping plant alive - * Hybridization, multiple generations, lineage tracking + * Hybridization, lineage tracking ## requirements * Unix-based OS (Mac, Linux) diff --git a/botany.py b/botany.py index e2eab0b..075a42b 100755 --- a/botany.py +++ b/botany.py @@ -236,7 +236,9 @@ class Plant(object): if not self.dead: next_generation = self.generation + 1 else: - next_generation = 1 + # Should this reset to 1? Seems unfair.. for now generations will + # persist through death. + next_generation = self.generation self.write_lock = True self.kill_plant()