[gd_scene load_steps=16 format=2]

[ext_resource path="res://addons/escoria-core/game/core-scripts/esc_room.gd" type="Script" id=1]
[ext_resource path="res://gymkhana/characters/oier/oier.tscn" type="PackedScene" id=2]
[ext_resource path="res://gymkhana/rooms/turno_cocina/cocina/assets/background.png" type="Texture" id=3]
[ext_resource path="res://addons/escoria-core/game/core-scripts/esc_terrain.gd" type="Script" id=4]
[ext_resource path="res://addons/escoria-core/game/core-scripts/esc_location.gd" type="Script" id=5]
[ext_resource path="res://gymkhana/addons/escoria-ui-return-monkey-island/esc_item_with_tooltip.gd" type="Script" id=6]
[ext_resource path="res://gymkhana/rooms/turno_cocina/cocina/assets/depth.png" type="Texture" id=7]
[ext_resource path="res://gymkhana/rooms/turno_cocina/cocina/assets/foreground-mesa.png" type="Texture" id=8]
[ext_resource path="res://gymkhana/rooms/turno_cocina/cocina/assets/foreground-silla.png" type="Texture" id=9]
[ext_resource path="res://gymkhana/items/inventory/turno_cocina_peso.tscn" type="PackedScene" id=10]
[ext_resource path="res://gymkhana/items/inventory/turno_cocina_bol.tscn" type="PackedScene" id=11]
[ext_resource path="res://gymkhana/items/inventory/turno_cocina_olla_llena.tscn" type="PackedScene" id=12]
[ext_resource path="res://gymkhana/items/inventory/assets/turno_cocina_patata.png" type="Texture" id=13]
[ext_resource path="res://gymkhana/items/inventory/turno_cocina_libro_de_cocina.tscn" type="PackedScene" id=14]

[sub_resource type="NavigationPolygon" id=3]
vertices = PoolVector2Array( 2398, 485, 2442, 499, 2446, 617, 2409, 597, 2283, 493, 144, 568, 3, 570, -56, 524, 111, 445, 162, 471, 229, 445, 200, 465, 252, 478, 305, 524, 273, 570, 2287, 687, 2062, 635, 2113, 565, 696, 737, 512, 591, 703, 699, 1269, 739, 1241, 699, 1502, 646, 1409, 752, 1345, 667, 1489, 627, 1347, 563, 1480, 587, 1466, 514, 1345, 505, 1382, 439, 2109, 424, 2238, 386, 1788, 325, 2018, 419, 1787, 383, 1466, 412, 1493, 479, 1305.5, 467, 1337.5, 449, 1306.5, 498 )
polygons = [ PoolIntArray( 0, 1, 2, 3, 4 ), PoolIntArray( 5, 6, 7, 8, 9 ), PoolIntArray( 9, 8, 10, 11 ), PoolIntArray( 12, 11, 10 ), PoolIntArray( 12, 10, 13 ), PoolIntArray( 14, 12, 13 ), PoolIntArray( 15, 16, 17, 4, 3 ), PoolIntArray( 18, 14, 13, 19, 20 ), PoolIntArray( 21, 18, 20, 22 ), PoolIntArray( 23, 24, 21, 22, 25, 26 ), PoolIntArray( 26, 25, 27, 28 ), PoolIntArray( 29, 28, 27, 30, 31 ), PoolIntArray( 4, 17, 32, 33 ), PoolIntArray( 34, 33, 32, 35, 36 ), PoolIntArray( 37, 34, 36, 38, 31 ), PoolIntArray( 31, 38, 29 ), PoolIntArray( 39, 40, 31, 30, 41 ) ]
outlines = [ PoolVector2Array( 1347, 563, 1345, 505, 1306.5, 498, 1305.5, 467, 1337.5, 449, 1382, 439, 1466, 412, 1788, 325, 2238, 386, 2283, 493, 2398, 485, 2442, 499, 2446, 617, 2409, 597, 2287, 687, 2062, 635, 2113, 565, 2109, 424, 2018, 419, 1787, 383, 1493, 479, 1466, 514, 1480, 587, 1489, 627, 1502, 646, 1409, 752, 1269, 739, 696, 737, 273, 570, 252, 478, 200, 465, 162, 471, 144, 568, 3, 570, -56, 524, 111, 445, 229, 445, 305, 524, 512, 591, 703, 699, 1241, 699, 1345, 667 ) ]

[node name="ESCRoom" type="Node2D"]
script = ExtResource( 1 )
__meta__ = {
"_edit_lock_": true
}
global_id = "cocina"
esc_script = "res://gymkhana/rooms/turno_cocina/cocina/esc/cocina.esc"
player_scene = ExtResource( 2 )
camera_limits = [ Rect2( 0, 0, 2925, 577 ) ]
editor_debug_mode = 1

[node name="background" type="Sprite" parent="."]
position = Vector2( 1462.5, 289 )
texture = ExtResource( 3 )
__meta__ = {
"_edit_lock_": true
}

[node name="ESCTerrain" type="Navigation2D" parent="."]
position = Vector2( 302.5, 0 )
script = ExtResource( 4 )
scales = ExtResource( 7 )
scale_max = 1.4
player_speed_multiplier = 1.2
player_doubleclick_speed_multiplier = 2.0

[node name="Foreground-mesa" type="Sprite" parent="ESCTerrain"]
position = Vector2( 1786, 424 )
z_index = 1000
texture = ExtResource( 8 )

[node name="NavigationPolygonInstance" type="NavigationPolygonInstance" parent="ESCTerrain"]
navpoly = SubResource( 3 )

[node name="Foreground-silla" type="Sprite" parent="ESCTerrain/NavigationPolygonInstance"]
position = Vector2( 202, 499 )
z_index = 4096
texture = ExtResource( 9 )

[node name="puerta_detras" type="Area2D" parent="."]
pause_mode = 1
position = Vector2( 302.5, 0 )
script = ExtResource( 6 )
global_id = "cocina_puerta_detras"
esc_script = "res://gymkhana/rooms/turno_cocina/cocina/esc/puerta_detras.esc"
is_exit = true
combine_when_selected_action_is_in = [  ]
dialog_color = Color( 1, 1, 1, 1 )
tooltips = {
"action1": "Ir detrás"
}
animations = null

[node name="puerta_detras_collision" type="CollisionPolygon2D" parent="puerta_detras"]
position = Vector2( 1710, -167 )
scale = Vector2( 0.963362, 0.9875 )
polygon = PoolVector2Array( 30.1029, 490.127, 25.9508, 330.127, 78.8904, 318.987, 127.678, 327.089, 130.792, 486.076 )

[node name="puerta_detras_start" type="Position2D" parent="puerta_detras"]
position = Vector2( 1791, 370 )
script = ExtResource( 5 )
global_id = "puerta_detras_start"

[node name="puerta_delante" type="Area2D" parent="."]
pause_mode = 1
position = Vector2( 302.5, 0 )
script = ExtResource( 6 )
global_id = "cocina_puerta_delante"
esc_script = "res://gymkhana/rooms/turno_cocina/cocina/esc/puerta_delante.esc"
is_exit = true
combine_when_selected_action_is_in = [  ]
dialog_color = Color( 1, 1, 1, 1 )
tooltips = {
"action1": "Salir de la cocina"
}
animations = null

[node name="puerta_delante_collision" type="CollisionPolygon2D" parent="puerta_delante"]
position = Vector2( 2385, -81 )
scale = Vector2( 0.963362, 0.9875 )
polygon = PoolVector2Array( 9.34229, 531.646, 10.3804, 161.013, 124.564, 97.2152, 107.955, 583.291 )

[node name="puerta_delante_start" type="Position2D" parent="puerta_delante"]
position = Vector2( 2379, 526 )
script = ExtResource( 5 )
global_id = "puerta_delante_start"

[node name="turno_cocina_peso" parent="." instance=ExtResource( 10 )]
position = Vector2( 2505, 160 )
scale = Vector2( 0.880435, 0.88735 )

[node name="turno_cocina_peso_collision" type="CollisionPolygon2D" parent="turno_cocina_peso"]
position = Vector2( 15.9014, -11.2695 )
polygon = PoolVector2Array( -2.27197, 1.12694, -2.27197, 23.666, -27.2595, 24.7929, -27.2595, 1.12694 )

[node name="turno_cocina_peso_location" type="Position2D" parent="turno_cocina_peso"]
position = Vector2( -3.40724, 268.214 )
script = ExtResource( 5 )

[node name="turno_cocina_bol" parent="." instance=ExtResource( 11 )]
position = Vector2( 1505, 160 )
scale = Vector2( 0.880435, 0.88735 )

[node name="turno_cocina_bol_collision" type="CollisionPolygon2D" parent="turno_cocina_bol"]
position = Vector2( 169.235, 210.74 )
polygon = PoolVector2Array( -7.95056, -30.4277, -4.54321, 21.412, -56.79, 37.1894, -73.827, -13.5234 )

[node name="turno_cocina_bol_location" type="Position2D" parent="turno_cocina_bol"]
position = Vector2( 198.765, 339.212 )
script = ExtResource( 5 )

[node name="fregadero_der" type="Area2D" parent="."]
pause_mode = 1
script = ExtResource( 6 )
global_id = "cocina_fregadero_der"
esc_script = "res://gymkhana/rooms/turno_cocina/cocina/esc/fregadero_der.esc"
combine_when_selected_action_is_in = [  ]
dialog_color = Color( 1, 1, 1, 1 )
tooltips = {
"action1": "Mirar fregadero",
"action2": "Usar"
}
action3_target_texts = {
"turno_cocina_olla_vacia": "Llenar la olla de agua"
}
target_when_selected_action_is_in = [ "action3" ]
animations = null

[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="fregadero_der"]
polygon = PoolVector2Array( 2327, 294, 2327, 302, 2395, 307, 2395, 296, 2401, 290, 2401, 257, 2334, 257, 2334, 286 )

[node name="ESCLocation" type="Position2D" parent="fregadero_der"]
position = Vector2( 2370, 395 )
script = ExtResource( 5 )

[node name="fregadero_izq" type="Area2D" parent="."]
pause_mode = 1
script = ExtResource( 6 )
global_id = "cocina_fregadero_izq"
esc_script = "res://gymkhana/rooms/turno_cocina/cocina/esc/fregadero_izq.esc"
combine_when_selected_action_is_in = [ "action4" ]
dialog_color = Color( 1, 1, 1, 1 )
tooltips = {
"action1": "Mirar el fregadero",
"action2": "Usar"
}
action3_target_texts = {
"turno_cocina_olla_vacia": "Llenar la olla de agua"
}
target_when_selected_action_is_in = [ "action3" ]
animations = null

[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="fregadero_izq"]
polygon = PoolVector2Array( 1806, 295, 1899, 287, 1900, 268, 1891, 245, 1851, 244, 1799, 240, 1798, 273 )

[node name="ESCLocation" type="Position2D" parent="fregadero_izq"]
position = Vector2( 1855, 400 )
script = ExtResource( 5 )

[node name="cuchillos" type="Area2D" parent="."]
pause_mode = 1
script = ExtResource( 6 )
global_id = "cocina_cuchillos"
esc_script = "res://gymkhana/rooms/turno_cocina/cocina/esc/cuchillos.esc"
combine_when_selected_action_is_in = [  ]
dialog_color = Color( 1, 1, 1, 1 )
tooltips = {
"action1": "Contar los cuchillos",
"action2": "Coger un buen cuchillo"
}
animations = null

[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="cuchillos"]
position = Vector2( 1452, -245 )
polygon = PoolVector2Array( 469, 375, 454, 391, 508, 399, 530, 385 )

[node name="ESCLocation" type="Position2D" parent="cuchillos"]
position = Vector2( 1987, 370 )
script = ExtResource( 5 )

[node name="debajo_sofa" type="Area2D" parent="."]
pause_mode = 1
script = ExtResource( 6 )
global_id = "cocina_debajo_sofa"
esc_script = "res://gymkhana/rooms/turno_cocina/cocina/esc/debajo_sofa.esc"
combine_when_selected_action_is_in = [ "action4" ]
dialog_color = Color( 1, 1, 1, 1 )
tooltips = {
"action1": "Mirar debajo del sofa",
"action2": "Meter la mano"
}
action3_target_texts = {
"turno_cocina_frontal": "Alumbrar debajo del sofa"
}
target_when_selected_action_is_in = [ "action3" ]
animations = null

[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="debajo_sofa"]
polygon = PoolVector2Array( 466, 382, 464, 421, 556, 423, 551, 415, 550, 409, 561, 386 )

[node name="ESCLocation" type="Position2D" parent="debajo_sofa"]
position = Vector2( 420, 494 )
script = ExtResource( 5 )

[node name="cocina_patata" type="Area2D" parent="."]
pause_mode = 1
position = Vector2( 2202, 343 )
rotation = -0.270526
scale = Vector2( 0.65, 0.65 )
z_index = 1001
script = ExtResource( 6 )
global_id = "cocina_patata"
esc_script = "res://gymkhana/rooms/turno_cocina/cocina/esc/patata.esc"
combine_when_selected_action_is_in = [  ]
inventory_texture = ExtResource( 13 )
dialog_color = Color( 1, 1, 1, 1 )
tooltips = {
"action1": "Admirar la patata",
"action2": "Cogerla"
}
count_textures = [ {
"start": 1,
"texture": "res://gymkhana/items/inventory/assets/turno_cocina_patata.png"
}, {
"start": 2,
"texture": "res://gymkhana/items/inventory/assets/turno_cocina_dos_patatas.png"
}, {
"start": 3,
"texture": "res://gymkhana/items/inventory/assets/turno_cocina_tres_patatas.png"
}, {
"start": 4,
"texture": "res://gymkhana/items/inventory/assets/turno_cocina_cuatro_patatas.png"
} ]
animations = null

[node name="Sprite" type="Sprite" parent="cocina_patata"]
position = Vector2( -2, 0 )
scale = Vector2( 0.5, 0.5 )
texture = ExtResource( 13 )

[node name="turno_cocina_patata_collision" type="CollisionPolygon2D" parent="cocina_patata"]
position = Vector2( 9.0867, -13.5233 )
z_index = 1001
polygon = PoolVector2Array( 1.61475, 3.71887, 8.86548, 12.1157, 5.32715, 19.1171, -2.24731, 23.4026, -16.8235, 24.1499, -29.7551, 18.9672, -29.593, 12.626, -23.5007, 7.92932, -14.0325, 2.57251 )

[node name="turno_cocina_patata_location" type="Position2D" parent="cocina_patata"]
position = Vector2( 93.1357, 65.3632 )
script = ExtResource( 5 )

[node name="turno_cocina_economica" type="Area2D" parent="."]
pause_mode = 1
position = Vector2( 1299, 506 )
script = ExtResource( 6 )
global_id = "turno_cocina_economica"
esc_script = "res://gymkhana/rooms/turno_cocina/cocina/esc/economica.esc"
combine_when_selected_action_is_in = [  ]
dialog_color = Color( 1, 1, 1, 1 )
tooltips = {
"action1": "Mirar",
"action2": "Usar"
}
action3_target_texts = {
"turno_cocina_madera": "Meter leña en la económica",
"turno_cocina_olla_llena": "Poner encima de la económica"
}
target_when_selected_action_is_in = [ "action3" ]
animations = null

[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="turno_cocina_economica"]
position = Vector2( -6, -4 )
polygon = PoolVector2Array( -65, -18, -138, 48, -37, 73, 226, 71, 253, -5 )

[node name="ESCLocation" type="Position2D" parent="turno_cocina_economica"]
position = Vector2( -182, 205 )
script = ExtResource( 5 )

[node name="turno_cocina_libro_de_cocina" parent="." instance=ExtResource( 14 )]
position = Vector2( 2547, 244 )
scale = Vector2( 1.06318, 1.06318 )
tooltips = {
"action1": "Mirar",
"action2": "Coger",
"action3": "Mirar"
}

[node name="ESCLocation" type="Position2D" parent="turno_cocina_libro_de_cocina"]
position = Vector2( -16.9304, 145.789 )
script = ExtResource( 5 )

[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="turno_cocina_libro_de_cocina"]
polygon = PoolVector2Array( -44.207, -15.9898, -44.207, 23.5143, 41.3853, 22.5738, 42.3259, 10.3463, 56.4346, 10.3463, 55.4939, 2.82172, 63.959, 1.88113, 63.0186, -16.9304 )

[node name="turno_cocina_olla_llena" parent="." instance=ExtResource( 12 )]
position = Vector2( 1281, 491 )
scale = Vector2( 1.06318, 1.06318 )

[node name="ESCLocation" type="Position2D" parent="turno_cocina_olla_llena"]
position = Vector2( -160.838, 201.283 )
script = ExtResource( 5 )
interaction_direction = 3
