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

@@ -1,14 +1,11 @@
extends PlantMutation
class_name AncientMutation
const DEFAULT_DAY_FACTOR = 3
const DEFAULT_DAY_FACTOR = 4
func get_icon() -> Texture:
return preload("res://common/icons/wood.svg")
func get_base_rarity() -> int:
return 0
func get_mutation_id() -> String:
return "ANCIENT"
@@ -16,10 +13,18 @@ func get_mutation_name() -> String:
return tr("ANCIENT")
func get_mutation_description() -> String:
return tr("ANCIENT_EFFECT_TEXT_LEVEL_%d") % get_day_factor()
return tr("ANCIENT_EFFECT_TEXT_LEVEL").format(
{
"score_increase": get_score_increase(),
"day_factor": get_day_factor()
}
)
func get_day_factor():
return max(1, DEFAULT_DAY_FACTOR - level + 1)
return max(1, DEFAULT_DAY_FACTOR - level)
func get_score_increase():
return max(1, level - DEFAULT_DAY_FACTOR)
func mutate_score(data : PlantData, score) -> int:
if data.get_state() != PlantData.State.MATURE: