Files
scrap-signal/entities/items/item.gd
Kellan KOZUME decd182b3e feat(atelier): complete zone 2 level design and game systems
- Add atelier tilemap (14x14 tiles) with dark atmosphere
- Add Journal D-891 interactable with Matteo Corda narrative
- Add pushable frozen robot (reuses PushableBox logic)
- Add PassageTrigger to reveal hidden path via TileMapLayer
- Add RepairStation for SCRAP-09 self-repair mini-game
- Add scrap09 puzzle in RepairMinigame with valid connections
- Add door to cour unlocked by scrap09_repaired flag
2026-04-25 12:54:33 -04:00

14 lines
404 B
GDScript

class_name Item
extends Area2D
@export var item_id : String = "engrenage"
@export var item_name : String = "Engrenage"
@export var prompt_text : String = "[E] Take"
func interact() -> void:
GameState.add_item(item_id)
var hud := get_tree().get_first_node_in_group("hud")
if hud and hud.has_method("show_log"):
hud.show_log("LOG %s récupéré. Inventaire mis à jour." % item_id)
queue_free()