feat: add multi-floor dungeon transitions
This commit is contained in:
@@ -4,6 +4,7 @@ extends CanvasLayer
|
||||
const DOOR_PROMPT := "Espace — Ouvrir la porte"
|
||||
const CHEST_PROMPT := "Espace — Ouvrir le coffre"
|
||||
const STAIRS_PROMPT := "Espace — Descendre l’escalier"
|
||||
const STAIRS_UP_PROMPT := "Espace — Monter l’escalier"
|
||||
const EXIT_REACHED_PROMPT := "Sortie atteinte — prochain étage bientôt disponible"
|
||||
|
||||
@onready var player_health_label: Label = $PlayerHealthLabel
|
||||
@@ -40,7 +41,7 @@ func get_context_prompt() -> String:
|
||||
&"closed_door":
|
||||
return DOOR_PROMPT
|
||||
&"stairs":
|
||||
return STAIRS_PROMPT
|
||||
return STAIRS_UP_PROMPT if _state.floor_state.floor_number > 0 and _state.player.cell == _state.floor_state.entrance else STAIRS_PROMPT
|
||||
&"exit_reached":
|
||||
return EXIT_REACHED_PROMPT
|
||||
_:
|
||||
|
||||
Reference in New Issue
Block a user