From 7f027f90e7a23abf0be6ac2f6c46e53e8570e7e8 Mon Sep 17 00:00:00 2001 From: CobaltXII Date: Fri, 4 Jan 2019 17:18:19 -0500 Subject: [PATCH] Implemented inline unsigned int growth_8 --- src/inc/plant.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/inc/plant.hpp b/src/inc/plant.hpp index 26d8d51..f203f83 100644 --- a/src/inc/plant.hpp +++ b/src/inc/plant.hpp @@ -1,3 +1,10 @@ +// Choose a growth timer for a plant that has 8 stages of growth. + +inline unsigned int growth_8() +{ + return 120 + (rand() % 120) - (rand() % 120); +} + // Types of growing plants. enum growing_plant_type