fix mutations
Bi-Rabittoh andronacomarco@gmail.com
Sun, 25 Sep 2022 11:16:26 +0200
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
Gardening.py
→
Gardening.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