Fix divers beta 1.4

* Changement du son de récupération d'objet
* Ajout d'une couleur de rareté et suppression de la boucle sur la couleur de rareté
* Changement de la mutation Prolifique : n'ajoute des graines que si mature
* Changement de la mutation Rapide : réduction du debuff de temps de vie par 2
* Modification de la mutation Vivace : Augmentation des points ajoutés
* Les graines données sur des plantes non mature ne mutent plus
* Fix sur la plantation, on ne peut plus planter là où il y a de la roche
* Fix visuel : les particule de vent ne s'affichent plus lorsqu'il pleut
This commit is contained in:
2026-05-17 16:40:22 +02:00
parent 1e31fe19e4
commit 4c4b051f3f
15 changed files with 29 additions and 21 deletions

View File

@@ -72,7 +72,7 @@ func set_announce_artefact(artefact := announce_artefact):
if not visible:
%AnimationPlayer.play("appear")
Input.mouse_mode = Input.MOUSE_MODE_VISIBLE
AudioManager.play_sfx("Reveal")
AudioManager.play_sfx("Unlock_tool")
elif artefact == null and visible:
%AnimationPlayer.play_backwards("appear")

View File

@@ -68,7 +68,7 @@ func set_announce_mutation(mutation := announce_mutation):
if not visible:
%AnimationPlayer.play("appear")
Input.mouse_mode = Input.MOUSE_MODE_VISIBLE
AudioManager.play_sfx("Reveal")
AudioManager.play_sfx("Unlock_tool")
elif mutation == null and visible:
%AnimationPlayer.play_backwards("appear")

View File

@@ -118,10 +118,11 @@ static func get_rarity_text(rarity) -> String:
static func get_rarity_color(rarity: int) -> Color:
var rarity_colors: Array[Color] = [
Color("2364AA"),
Color("25C147"),
Color("8B2DFF"),
Color("FF006E"),
Color("FFA617"),
]
return rarity_colors[rarity%len(rarity_colors)]
return rarity_colors[min(rarity, len(rarity_colors) - 1)]

View File

@@ -13,7 +13,9 @@ func get_mutation_description() -> String:
"seeds_icon": Text.bbcode_icon(Plant.SEED_ICON)
})
func mutate_seed_number(_plant_data: PlantData, seed_number: int) -> int:
func mutate_seed_number(data: PlantData, seed_number: int) -> int:
if data.get_state() != PlantData.State.MATURE:
return seed_number
return get_seed_change() + seed_number
func get_seed_change():

View File

@@ -33,4 +33,4 @@ func get_score_increase() -> int:
return level * 2
func get_lifetime_change() -> int:
return -3
return -2

View File

@@ -19,4 +19,4 @@ func mutate_score(data : PlantData, score : int) -> int:
return score
func get_score_change():
return level * 2
return level * 3

View File

@@ -27,7 +27,10 @@ static func generate_from_parent(plant_data : PlantData) -> Seed:
mutations = mutate_mutations(plant_data.mutations)
mutation_probability -= 1
if randf() < GameInfo.game_data.current_run.plant_info.get_mutation_probability():
if (
plant_data.get_state() == PlantData.State.MATURE
and randf() < GameInfo.game_data.current_run.plant_info.get_mutation_probability()
):
return Seed.new(
plant_data.plant_name,
mutate_mutations(mutations)