ajout de la porte et équilibrage des mutations

This commit is contained in:
2026-03-06 18:15:10 +01:00
parent 263f6c42a7
commit 2cd16acd6a
92 changed files with 1420 additions and 582 deletions

View File

@@ -2,10 +2,7 @@ extends PlantMutation
class_name EphemeralMutation
func get_icon() -> Texture:
return preload("res://common/icons/chevrons-up.svg")
func get_base_rarity() -> int:
return 0
return preload("res://common/icons/butterfly.svg")
func get_mutation_id() -> String:
return "EPHEMERAL"
@@ -17,7 +14,7 @@ func get_mutation_description() -> String:
return tr("EPHEMERAL_EFFECT_TEXT_LEVEL").format({"seed_number": level, "lifetime_change": get_lifetime_change()})
func mutate_lifetime(_plant_data: PlantData, lifetime: int) -> int:
return lifetime - get_lifetime_change()
return lifetime + get_lifetime_change()
func mutate_seed_number(_plant_data: PlantData, seed_number: int):
return seed_number + level
@@ -26,4 +23,4 @@ func get_seed_increase() -> int:
return floori((level + 1.0) / 2)
func get_lifetime_change() -> int:
return maxi(0, 6 - get_seed_increase())
return -2