Lowered mutation chance
This commit is contained in:
parent
3fe1a8283c
commit
934c632b13
@ -207,7 +207,7 @@ class Plant(object):
|
|||||||
def mutate_check(self):
|
def mutate_check(self):
|
||||||
# Create plant mutation
|
# Create plant mutation
|
||||||
# Increase this # to make mutation rarer (chance 1 out of x each second)
|
# Increase this # to make mutation rarer (chance 1 out of x each second)
|
||||||
CONST_MUTATION_RARITY = 5000
|
CONST_MUTATION_RARITY = 10000
|
||||||
mutation_seed = random.randint(1,CONST_MUTATION_RARITY)
|
mutation_seed = random.randint(1,CONST_MUTATION_RARITY)
|
||||||
if mutation_seed == CONST_MUTATION_RARITY:
|
if mutation_seed == CONST_MUTATION_RARITY:
|
||||||
# mutation gained!
|
# mutation gained!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user