mirror of
https://github.com/kodzukye/scrap-signal.git
synced 2026-04-27 00:57:33 +00:00
- 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
14 lines
404 B
GDScript
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()
|