adjust mutation rarity to account for reduced number of life iterations
parent
9162888a7d
commit
26df7b5a1f
2
plant.py
2
plant.py
|
@ -276,7 +276,7 @@ class Plant:
|
|||
def mutate_check(self):
|
||||
# Create plant mutation
|
||||
# Increase this # to make mutation rarer (chance 1 out of x each second)
|
||||
CONST_MUTATION_RARITY = 20000
|
||||
CONST_MUTATION_RARITY = 10000
|
||||
mutation_seed = random.randint(1,CONST_MUTATION_RARITY)
|
||||
if mutation_seed == CONST_MUTATION_RARITY:
|
||||
# mutation gained!
|
||||
|
|
Loading…
Reference in New Issue