Ajout d'un effet visuel sur les nouvelles graines, et dev en cours de l'imprimante 3D

This commit is contained in:
2026-06-22 20:16:27 +02:00
parent af91337017
commit 5bdf8db609
17 changed files with 166 additions and 8 deletions

View File

@@ -40,11 +40,9 @@ func use_text() -> String:
return tr("HARVEST")
func can_use(_player : Player, zone : Player.ActionZone) -> bool:
print(zone)
var areas = get_usage_objects_affected(zone.get_affected_areas(), zone)
if len(areas) > 0:
return true
print("nope")
return false
func use(player : Player, zone : Player.ActionZone) -> bool:

View File

@@ -160,6 +160,15 @@ func get_particles() -> Array[EffectParticles.Parameters]:
return param
func get_rarity_color() -> Color:
var higher_rarity : int = -1
var higher_color : Color = Color.WHITE
for m in plant_mutations:
if m.get_rarity() > higher_rarity:
higher_rarity = m.get_rarity()
higher_color = PlantMutation.get_rarity_color(higher_rarity)
return higher_color
static func generate_first_mutations(rarity := 0) -> Array[PlantMutation]:
if rarity < 0: