#42 ajout d'un inspecteur

This commit is contained in:
2025-08-21 14:29:49 +02:00
parent 52b2df8639
commit 49e16d12f8
19 changed files with 165 additions and 15 deletions

View File

@@ -4,13 +4,13 @@ class_name Compost
@export var value_per_seed : float = 0.5
var fill_value : float = 0.
@onready var fill_value : float = 0.
func _process(_delta):
%ProgressBar.value = lerp(%ProgressBar.value, fill_value * 100, 0.5)
func _ready():
fill_value = 0.
func inspected_text():
return "Compost"
func can_interact(p : Player) -> bool:
return p.inventory.get_item() and p.inventory.get_item() is Seed