all repos — groupgardenbot @ d752172475554e59798085f5ad66e7ac2dd8552b

An extension of the game "botany", originally designed for unix-based systems, to the Telegram Bot API.

fix mutations
Bi-Rabittoh andronacomarco@gmail.com
Sun, 25 Sep 2022 11:16:26 +0200
commit

d752172475554e59798085f5ad66e7ac2dd8552b

parent

1ec1debfd56b3a392a334872571b618d50472845

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M Gardening.pyGardening.py

@@ -100,10 +100,10 @@ return 4

def mutate_check(self, increase): # Create plant mutation - mutation_seed = random.randint(increase, mutation_rarity) + mutation_seed = mutation_rarity if increase >= mutation_rarity else random.randint(increase, mutation_rarity) if mutation_seed == mutation_rarity: # mutation gained! - mutation = random.randint(0, len(self.mutation_list) - 1) + mutation = random.randint(0, len(mutation_list) - 1) if self.mutation == 0: self.mutation = mutation return True