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

@@ -20,10 +20,12 @@ func get_mutation_description() -> String:
func _start_day_effect(plant: Plant):
var cut_left := get_cutable_per_day()
for p in plant.data.nearby_plants:
if cut_left > 0 && p.is_mature():
p.harvest()
cut_left -= 1
# Ne fonctionnera pas, nearby plants c'est des plantData donc on peut pas faire d'action dessus
# for p in plant.data.nearby_plants:
# if cut_left > 0 && p.is_mature():
# p.harvest()
# cut_left -= 1
func get_cutable_per_day() -> int:
return level