Ajout des mutation Nettoyage, Ermite, Tropicale, Rhizome et Spontanée

This commit is contained in:
2026-06-28 19:19:36 +02:00
parent 94dc231c01
commit 281f42d90c
29 changed files with 398 additions and 81 deletions

View File

@@ -125,7 +125,8 @@ func calculate_plant_score(
func harvest():
var do_produce_seeds := true
for m in data.mutations:
do_produce_seeds = do_produce_seeds && m.produce_seeds()
if m.nullify_seed_production():
do_produce_seeds = false
if do_produce_seeds:
for i in range(data.get_seed_number()):
@@ -156,13 +157,14 @@ func mature():
func die():
for m in data.mutations:
m._start_dead_effect(self)
var do_produce_seeds := true
for m in data.mutations:
do_produce_seeds = do_produce_seeds && m.produce_seeds_on_maturation()
if m.nullify_seed_production():
do_produce_seeds = false
if do_produce_seeds:
for i in range(data.get_seed_number()):
for i in range(data.get_seed_number(data.get_state())):
await produce_seed()
AudioManager.play_sfx("Harvest")