[gd_scene load_steps=27 format=3 uid="uid://c1abgp6quvo3o"]

[ext_resource type="Texture2D" uid="uid://b5baxx5o21qy1" path="res://resources/sprites/Sub/Sub.png" id="1_a6v5r"]
[ext_resource type="Script" path="res://scripts/Day.cs" id="1_cko08"]
[ext_resource type="PackedScene" uid="uid://coogmsw6rsdun" path="res://prefabs/Door.tscn" id="2_qedp5"]
[ext_resource type="PackedScene" uid="uid://c5ndo6b0unkst" path="res://prefabs/NPC.tscn" id="3_t4e54"]
[ext_resource type="SpriteFrames" uid="uid://dsgqo48qikwsn" path="res://resources/sprites/npcs/cock.tres" id="4_ephn1"]
[ext_resource type="SpriteFrames" uid="uid://bwssm27bm14s7" path="res://resources/sprites/npcs/captain.tres" id="5_o0reb"]
[ext_resource type="SpriteFrames" uid="uid://1r4r5gmf5kdo" path="res://resources/sprites/npcs/doctor.tres" id="6_vd74o"]
[ext_resource type="SpriteFrames" uid="uid://532buo56y4q2" path="res://resources/sprites/npcs/crewmate.tres" id="7_j5wfn"]
[ext_resource type="PackedScene" uid="uid://dfdsnwub212o6" path="res://prefabs/Player.tscn" id="8_csxln"]
[ext_resource type="AudioStream" uid="uid://be35iuapayv0u" path="res://resources/music/Day1.wav" id="9_43nb0"]
[ext_resource type="SpriteFrames" uid="uid://wu7pmuvjw5qm" path="res://resources/sprites/npcs/Empty.tres" id="10_medl6"]
[ext_resource type="AudioStream" uid="uid://cw6y35jglsn1" path="res://resources/sounds/nightmares/D1nm.wav" id="12_jjnbw"]
[ext_resource type="PackedScene" uid="uid://x6pqolxtgwvy" path="res://prefabs/Interactable.tscn" id="12_p32yk"]
[ext_resource type="PackedScene" uid="uid://ca2cali2s1y6x" path="res://prefabs/Day1Cutscene.tscn" id="14_t3ylj"]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_h0540"]
size = Vector2(640, 24)

[sub_resource type="RectangleShape2D" id="RectangleShape2D_i40av"]
size = Vector2(25.5, 104)

[sub_resource type="RectangleShape2D" id="RectangleShape2D_ki2nk"]
size = Vector2(25.5, 38)

[sub_resource type="RectangleShape2D" id="RectangleShape2D_3xi1q"]
size = Vector2(25.5, 104)

[sub_resource type="RectangleShape2D" id="RectangleShape2D_nl627"]
size = Vector2(1697, 24)

[sub_resource type="RectangleShape2D" id="RectangleShape2D_f1hcn"]
size = Vector2(33.75, 199)

[sub_resource type="RectangleShape2D" id="RectangleShape2D_hgf7s"]
size = Vector2(681, 24)

[sub_resource type="RectangleShape2D" id="RectangleShape2D_3d2ji"]
size = Vector2(2311, 24)

[sub_resource type="RectangleShape2D" id="RectangleShape2D_1dgo4"]
size = Vector2(23, 302.5)

[sub_resource type="RectangleShape2D" id="RectangleShape2D_ogw0u"]
size = Vector2(32.75, 104)

[sub_resource type="RectangleShape2D" id="RectangleShape2D_bafxi"]
size = Vector2(640, 24)

[sub_resource type="AudioStreamPlaylist" id="AudioStreamPlaylist_7838k"]
fade_time = 1.0
stream_count = 1
stream_0 = ExtResource("9_43nb0")

[node name="Test" type="Node2D"]
script = ExtResource("1_cko08")
NextScene = "Day2"
IsCaptainDisabled = true

[node name="Sprite2D" type="Sprite2D" parent="."]
texture = ExtResource("1_a6v5r")

[node name="StaticBody2D" type="StaticBody2D" parent="Sprite2D"]

[node name="CollisionShape2D" type="CollisionShape2D" parent="Sprite2D/StaticBody2D"]
position = Vector2(560, 51)
shape = SubResource("RectangleShape2D_h0540")

[node name="CollisionShape2D2" type="CollisionShape2D" parent="Sprite2D/StaticBody2D"]
position = Vector2(232, 11)
shape = SubResource("RectangleShape2D_i40av")

[node name="CollisionShape2D18" type="CollisionShape2D" parent="Sprite2D/StaticBody2D"]
position = Vector2(377, 29)
shape = SubResource("RectangleShape2D_ki2nk")

[node name="CollisionShape2D19" type="CollisionShape2D" parent="Sprite2D/StaticBody2D"]
position = Vector2(321, 266)
shape = SubResource("RectangleShape2D_ki2nk")

[node name="CollisionShape2D20" type="CollisionShape2D" parent="Sprite2D/StaticBody2D"]
position = Vector2(916, -244)
shape = SubResource("RectangleShape2D_ki2nk")

[node name="CollisionShape2D3" type="CollisionShape2D" parent="Sprite2D/StaticBody2D"]
position = Vector2(889, 11)
shape = SubResource("RectangleShape2D_3xi1q")

[node name="CollisionShape2D4" type="CollisionShape2D" parent="Sprite2D/StaticBody2D"]
position = Vector2(883, 171)
shape = SubResource("RectangleShape2D_nl627")

[node name="CollisionShape2D5" type="CollisionShape2D" parent="Sprite2D/StaticBody2D"]
position = Vector2(34.875, 83.5)
shape = SubResource("RectangleShape2D_f1hcn")

[node name="CollisionShape2D6" type="CollisionShape2D" parent="Sprite2D/StaticBody2D"]
position = Vector2(1727, 127)
shape = SubResource("RectangleShape2D_3xi1q")

[node name="CollisionShape2D7" type="CollisionShape2D" parent="Sprite2D/StaticBody2D"]
position = Vector2(1397, 51)
shape = SubResource("RectangleShape2D_hgf7s")

[node name="CollisionShape2D8" type="CollisionShape2D" parent="Sprite2D/StaticBody2D"]
position = Vector2(1727, 5)
shape = SubResource("RectangleShape2D_3xi1q")

[node name="CollisionShape2D9" type="CollisionShape2D" parent="Sprite2D/StaticBody2D"]
position = Vector2(1068, 5)
shape = SubResource("RectangleShape2D_3xi1q")

[node name="CollisionShape2D10" type="CollisionShape2D" parent="Sprite2D/StaticBody2D"]
position = Vector2(576.5, 292)
shape = SubResource("RectangleShape2D_3d2ji")

[node name="CollisionShape2D11" type="CollisionShape2D" parent="Sprite2D/StaticBody2D"]
position = Vector2(-568.5, 135.25)
shape = SubResource("RectangleShape2D_1dgo4")

[node name="CollisionShape2D12" type="CollisionShape2D" parent="Sprite2D/StaticBody2D"]
position = Vector2(1540, 243)
shape = SubResource("RectangleShape2D_3xi1q")

[node name="CollisionShape2D13" type="CollisionShape2D" parent="Sprite2D/StaticBody2D"]
position = Vector2(552.625, 246)
shape = SubResource("RectangleShape2D_ogw0u")

[node name="CollisionShape2D14" type="CollisionShape2D" parent="Sprite2D/StaticBody2D"]
position = Vector2(231, 248)
shape = SubResource("RectangleShape2D_i40av")

[node name="CollisionShape2D15" type="CollisionShape2D" parent="Sprite2D/StaticBody2D"]
position = Vector2(829, -268)
shape = SubResource("RectangleShape2D_i40av")

[node name="CollisionShape2D16" type="CollisionShape2D" parent="Sprite2D/StaticBody2D"]
position = Vector2(1172, -268)
shape = SubResource("RectangleShape2D_i40av")

[node name="CollisionShape2D17" type="CollisionShape2D" parent="Sprite2D/StaticBody2D"]
position = Vector2(1032, -221)
shape = SubResource("RectangleShape2D_bafxi")

[node name="Doors" type="Node2D" parent="."]

[node name="Door_3F" parent="Doors" node_paths=PackedStringArray("Exit") instance=ExtResource("2_qedp5")]
position = Vector2(788, 14)
Exit = NodePath("../Door_3F2")

[node name="Door_3F2" parent="Doors" node_paths=PackedStringArray("Exit") instance=ExtResource("2_qedp5")]
position = Vector2(790, 134)
Exit = NodePath("../Door_3F")

[node name="Door_MEDBAY" parent="Doors" node_paths=PackedStringArray("Exit") instance=ExtResource("2_qedp5")]
position = Vector2(474, 134)
Exit = NodePath("../Door_MEDBAY2")

[node name="Door_MEDBAY2" parent="Doors" node_paths=PackedStringArray("Exit") instance=ExtResource("2_qedp5")]
position = Vector2(474, 255)
Exit = NodePath("../Door_MEDBAY")

[node name="Door_SONAR" parent="Doors" node_paths=PackedStringArray("Exit") instance=ExtResource("2_qedp5")]
position = Vector2(1180, 134)
Exit = NodePath("../Door_SONAR2")

[node name="Door_SONAR2" parent="Doors" node_paths=PackedStringArray("Exit") instance=ExtResource("2_qedp5")]
position = Vector2(1179, 14)
Exit = NodePath("../Door_SONAR")

[node name="Door_QUOTERS" parent="Doors" node_paths=PackedStringArray("Exit") instance=ExtResource("2_qedp5")]
position = Vector2(1436, 134)
Exit = NodePath("../Door_QUOTERS2")

[node name="Door_ENGINE" parent="Doors" node_paths=PackedStringArray("Exit") instance=ExtResource("2_qedp5")]
position = Vector2(91, 134)
Exit = NodePath("../Door_ENGINE2")

[node name="Door_ENGINE2" parent="Doors" node_paths=PackedStringArray("Exit") instance=ExtResource("2_qedp5")]
position = Vector2(54, 255)
Exit = NodePath("../Door_ENGINE")

[node name="Door_CAPTAIN" parent="Doors" node_paths=PackedStringArray("Exit") instance=ExtResource("2_qedp5")]
position = Vector2(980, 134)
Exit = NodePath("../Door_CAPTAIN2")

[node name="Door_CAPTAIN2" parent="Doors" node_paths=PackedStringArray("Exit") instance=ExtResource("2_qedp5")]
position = Vector2(1019, -258)
Exit = NodePath("../Door_CAPTAIN")

[node name="Door_QUOTERS2" parent="Doors" node_paths=PackedStringArray("Exit") instance=ExtResource("2_qedp5")]
position = Vector2(1442, 255)
Exit = NodePath("../Door_QUOTERS")

[node name="NPCs" type="Node2D" parent="."]

[node name="Cook" parent="NPCs" instance=ExtResource("3_t4e54")]
position = Vector2(351, 14)
NPCName = "Cook"
Frames = ExtResource("4_ephn1")
DefaultDialogLine = "Get your ration"
DialogLines = ["Ahoy, mate. What kind of food do you want?", "Let me see what we've got here", "Hmm... canned tuna", "canned bitroots", "canned carrots", "canned potato knishes", "Oh, look surstromming", "It should certanly be banned as bio weapon"]

[node name="Captain" parent="NPCs" instance=ExtResource("3_t4e54")]
position = Vector2(889, -258)
NPCName = "Captain"
Frames = ExtResource("5_o0reb")
DefaultDialogLine = "You should go check engine"
DialogLines = ["Expedition is going good", "We got many new samples of", "the deep-sea wildlife", "Those sounds you heard", "it might be a magnificent creature", "You should go check engine", "I dont want to miss an opportunity", "to catch a new species"]

[node name="Doctor" parent="NPCs" instance=ExtResource("3_t4e54")]
position = Vector2(286, 255)
NPCName = "Doctor"
Frames = ExtResource("6_vd74o")
DefaultDialogLine = "Get back to your work. Laziness is the worst illness."
DialogLines = ["Anything hurts?", "Tough luck, kiddo", "We need to save those ", "medicine for real deal."]

[node name="Ivan" parent="NPCs" instance=ExtResource("3_t4e54")]
position = Vector2(1307, 254)
NPCName = "Ivan"
Frames = ExtResource("7_j5wfn")
DefaultDialogLine = "New day new joke"
DialogLines = ["Do you want to hear a joke?", "Two inmates are sitting in the cell.", "And one asks another:", "\"How did you get here?\"", "\"I opened a window on a work\"", "\"BS they don't jail people for that!", "Where did you work?\"", "\"I work on the submarine\"", "HAHAHA HA", "Nevermind. Get to the sonar room.", "Eugene want to see you."]

[node name="Eugene" parent="NPCs" instance=ExtResource("3_t4e54")]
position = Vector2(1326, 14)
NPCName = "Eugene"
Frames = ExtResource("7_j5wfn")
DefaultDialogLine = "I must go back to the sonars"
DialogLines = ["That was quite intresting sound", "Never heard anything like this before", "Just Imagine what king of creature", "makes sounds like this", "Ah yes, I have one problem", "I sometimes get some random noises", "that clearly comes from the engine", "you should go and check it"]

[node name="Nikolai" parent="NPCs" instance=ExtResource("3_t4e54")]
position = Vector2(575, -6)
NPCName = "Nikolai"
Frames = ExtResource("7_j5wfn")
DefaultDialogLine = "I'm sick of the canned bread"
DialogLines = ["I am sick of this canned food", "when I fall asleep I dream about", "some good old pizza", "And than I wake up", "Damn"]

[node name="Computer" parent="NPCs" instance=ExtResource("3_t4e54")]
position = Vector2(1597, -12)
NPCName = "Computer"
Frames = ExtResource("10_medl6")
DefaultDialogLine = "Sonar output processing are in progress"
DialogLines = ["Welcome authorized user", "Unfortunatly you can't access database now", "Sonar output processing is in progress"]

[node name="Engine" parent="NPCs" instance=ExtResource("3_t4e54")]
position = Vector2(-359, 245)
NPCName = "Engine"
Frames = ExtResource("10_medl6")
DefaultDialogLine = "You can go back to your room now"
DialogLines = ["Tighten up the loose screws", "This should work for now", "Now I can return to my room"]

[node name="Player" parent="." instance=ExtResource("8_csxln")]
position = Vector2(1054, 255)
Speed = 100.0

[node name="Music" type="AudioStreamPlayer" parent="."]
stream = SubResource("AudioStreamPlaylist_7838k")
autoplay = true
bus = &"Music"

[node name="Nightmare" type="AudioStreamPlayer" parent="."]
stream = ExtResource("12_jjnbw")
bus = &"Nightmare"

[node name="EndDay" parent="." instance=ExtResource("12_p32yk")]
position = Vector2(985, 245)
SpriteOffset = Vector2(0, -30)
AreaRadius = 20.0

[node name="Day1Cutscene" parent="." instance=ExtResource("14_t3ylj")]
position = Vector2(1275, 18)

[connection signal="DialogEnded" from="NPCs/Eugene" to="." method="EnableEngine"]
[connection signal="DialogEnded" from="NPCs/Engine" to="." method="EnableEndDay"]
[connection signal="finished" from="Nightmare" to="." method="ChangeScene"]
[connection signal="OnInteract" from="EndDay" to="." method="ChangeDay"]
[connection signal="PlayerLeft" from="EndDay" to="." method="RemoveEndDay"]
[connection signal="PlayerNearBy" from="EndDay" to="." method="AssignEndDay"]
[connection signal="Finished" from="Day1Cutscene" to="." method="EnableCaptain"]
