Skip to content

Commit

Permalink
fix a bug where you can softlock at the cove
Browse files Browse the repository at this point in the history
  • Loading branch information
cgsdev0 committed Apr 10, 2023
1 parent 32bda40 commit e30af8d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions Characters/treasure_door.gd
Expand Up @@ -10,6 +10,7 @@ func _input(event):
return
if event.is_action_pressed("interact"):
if !$CameraController.active:
Story.in_dialogue = true
$CameraController.active = true
Story.you_win.emit()
$OpenDoor.play()
Expand Down
2 changes: 2 additions & 0 deletions Islands/cove.gd
Expand Up @@ -20,9 +20,11 @@ func trigger_music():
func _on_area_3d_body_entered(body):
if GameState.next_map() != 4 || played:
return
Story.in_dialogue = true # block dialogue, or you can get stuck talking to parrot
played = true
trigger_music()
$CameraController.active = true
$level/AnimationPlayer.play("rise")
await $level/AnimationPlayer.animation_finished
$CameraController.previous_camera()
Story.in_dialogue = false
1 change: 1 addition & 0 deletions UI/FontScale.gd
Expand Up @@ -10,6 +10,7 @@ func _process(delta):
if !waiting && $%EndSequence.visible:
$%EndSequence/AnimationPlayer.play("RESET")
$%EndSequence.visible = false
Story.in_dialogue = false
Input.mouse_mode = Input.MOUSE_MODE_CAPTURED

func _ready():
Expand Down

0 comments on commit e30af8d

Please sign in to comment.