35 lines
799 B
GDScript
35 lines
799 B
GDScript
extends RoomWithBoard
|
|
class_name VolunteerRoom
|
|
|
|
func _ready() -> void:
|
|
super._ready() # UwU, superclass _ready is not called by Godot automatically...
|
|
prints("volunteer_room.gd", "_ready()", self)
|
|
|
|
|
|
func get_ready_async() -> void:
|
|
await super.get_ready_async()
|
|
|
|
%TherapyVoluntaryInteractable.visible = not save_game.subway_burnout
|
|
%TherapyUniInteractable.visible = save_game.subway_burnout
|
|
|
|
card_board.board_completed.connect(func():
|
|
save_game.childhood_board_complete = true
|
|
#%DoorInteractable.show()
|
|
)
|
|
|
|
|
|
func start_room_async():
|
|
await super.start_room_async()
|
|
# Give player control immediately, then open
|
|
%PlayerController.process_mode = Node.PROCESS_MODE_INHERIT
|
|
Scenes.player_enable.emit(true)
|
|
|
|
await Main.curtain.open()
|
|
|
|
|
|
func prepare_transition():
|
|
pass
|
|
|
|
func unload():
|
|
pass
|