Ajout d'un effet visuel sur les nouvelles graines, et dev en cours de l'imprimante 3D
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user