[gd_scene load_steps=10 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/despensa/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/items/inventory/turno_cocina_patata_grande.tscn" type="PackedScene" id=7]
[ext_resource path="res://gymkhana/rooms/turno_cocina/despensa/assets/columna.png" type="Texture" id=8]

[sub_resource type="NavigationPolygon" id=60]
vertices = PoolVector2Array( 1137, 615, 1143, 660, 501, 666, 503, 650, 837, 624, 597, 610, 503, 628 )
polygons = [ PoolIntArray( 0, 1, 2, 3, 4 ), PoolIntArray( 5, 4, 3, 6 ) ]
outlines = [ PoolVector2Array( 503, 650, 503, 628, 597, 610, 837, 624, 1137, 615, 1143, 660, 501, 666 ) ]

[node name="ESCRoom2" type="Node2D"]
script = ExtResource( 1 )
global_id = "despensa"
esc_script = "res://gymkhana/rooms/turno_cocina/despensa/esc/despensa.esc"
player_scene = ExtResource( 2 )
camera_limits = [ Rect2( 0, 0, 1280, 577 ) ]
editor_debug_mode = 1

[node name="background" type="Sprite" parent="."]
position = Vector2( 636, 289.125 )
texture = ExtResource( 3 )

[node name="ESCTerrain" type="Navigation2D" parent="."]
position = Vector2( 206, -4 )
script = ExtResource( 4 )
scale_min = 1.0
scale_max = 1.5
player_speed_multiplier = 0.5

[node name="NavigationPolygonInstance" type="NavigationPolygonInstance" parent="ESCTerrain"]
position = Vector2( -272, 117 )
navpoly = SubResource( 60 )

[node name="puerta_exterior" type="Area2D" parent="."]
pause_mode = 1
position = Vector2( 863, 175 )
script = ExtResource( 6 )
global_id = "turno_cocina_despensa_puerta_exterior"
esc_script = "res://gymkhana/rooms/turno_cocina/despensa/esc/puerta_exterior.esc"
is_exit = true
combine_when_selected_action_is_in = [  ]
dialog_color = Color( 1, 1, 1, 1 )
animations = null
tooltips = {
    "action1": "Salir fuera"
}

[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="puerta_exterior"]
position = Vector2( 129, -721 )
scale = Vector2( 0.963362, 1.99167 )
polygon = PoolVector2Array( -5.19006, 640.474, 5.19019, 273.946, 85.1187, 269.428, 166.085, 311.899, 166.085, 589.367, 84.0806, 639.469 )

[node name="ESCLocation" type="Position2D" parent="puerta_exterior"]
position = Vector2( 151, 575 )
script = ExtResource( 5 )

[node name="start" type="Position2D" parent="."]
position = Vector2( 899, 758 )
script = ExtResource( 5 )
global_id = "start"
is_start_location = true
player_orients_on_arrival = false

[node name="cebolla izq" type="Area2D" parent="."]
pause_mode = 1
position = Vector2( 452, 192 )
script = ExtResource( 6 )
global_id = "turno_cocina_despensa_cebolla_izq"
esc_script = "res://gymkhana/rooms/turno_cocina/despensa/esc/cebolla_izq.esc"
combine_when_selected_action_is_in = [  ]
dialog_color = Color( 1, 1, 1, 1 )
tooltips = {
    "action1": "Mirar cebollas",
    "action2": "Coger cebollas"
}
animations = null

[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="cebolla izq"]
position = Vector2( 60.6594, -46.582 )
scale = Vector2( 0.865036, 0.883608 )
polygon = PoolVector2Array( -37.755, 99.1186, -24, 109, 82, 109, 85, 19, 81.3152, -29.8979, 77.8471, -43.4786, -26.1948, -36.6882, -35, -27, -38.911, 31.2152 )

[node name="ESCLocation" type="Position2D" parent="cebolla izq"]
position = Vector2( 56, 553 )
script = ExtResource( 5 )

[node name="cebolla der" type="Area2D" parent="."]
pause_mode = 1
position = Vector2( 941, 385 )
script = ExtResource( 6 )
global_id = "turno_cocina_despensa_cebolla_der"
esc_script = "res://gymkhana/rooms/turno_cocina/despensa/esc/cebolla_der.esc"
combine_when_selected_action_is_in = [  ]
dialog_color = Color( 1, 1, 1, 1 )
tooltips = {
    "action1": "Mirar cebollas",
    "action2": "Coger cebollas"
}
animations = null

[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="cebolla der"]
position = Vector2( -305.617, -238.789 )
scale = Vector2( 0.829392, 0.888258 )
polygon = PoolVector2Array( -45, 103, -24, 109, 82, 109, 95, 16, 72, -39, 63, -54, -31, -56, -46, -53, -51, -31, -52.307, 11.0204 )

[node name="ESCLocation" type="Position2D" parent="cebolla der"]
position = Vector2( -337, 368 )
script = ExtResource( 5 )

[node name="bidon_der" type="Area2D" parent="."]
pause_mode = 1
position = Vector2( 941, 385 )
script = ExtResource( 6 )
global_id = "turno_cocina_despensa_bidon_der"
esc_script = "res://gymkhana/rooms/turno_cocina/despensa/esc/bidon_der.esc"
combine_when_selected_action_is_in = [  ]
dialog_color = Color( 1, 1, 1, 1 )
tooltips = {
    "action1": "Mirar dentro",
    "action2": "Coger"
}
animations = null

[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="bidon_der"]
position = Vector2( -129, 84 )
scale = Vector2( 0.9425, 0.837376 )
polygon = PoolVector2Array( -42.4403, 130.169, -24.4032, 131.363, 57.2944, 130.169, 62.5995, 109.867, 64.7215, 78.8176, 67.9045, 17.9131, 62.5995, -9.55365, 67.9045, -20.3015, 63.6605, -37.0204, 56.2335, -51.3509, 20.1592, -59.7103, -6.36603, -59.7103, -29.7082, -53.7393, -36.0742, -44.1857, -38.1963, -26.2725, -31.8302, -10.7479, -35, 9, -39.2573, 37.0204 )

[node name="ESCLocation" type="Position2D" parent="bidon_der"]
position = Vector2( -97, 370 )
script = ExtResource( 5 )

[node name="bidon_izq" type="Area2D" parent="."]
pause_mode = 1
position = Vector2( 941, 385 )
script = ExtResource( 6 )
global_id = "turno_cocina_despensa_bidon_izq"
esc_script = "res://gymkhana/rooms/turno_cocina/despensa/esc/bidon_izq.esc"
combine_when_selected_action_is_in = [  ]
dialog_color = Color( 1, 1, 1, 1 )
tooltips = {
    "action1": "Mirar dentro",
    "action2": "Coger"
}
animations = null

[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="bidon_izq"]
position = Vector2( -300, 61 )
scale = Vector2( 0.836355, 1.05961 )
polygon = PoolVector2Array( -38.2613, -9.43741, -11.9567, -14.1561, 17.935, -16.0436, 40.6526, -12.2686, 45.4352, -14.1561, 49.0222, -17.9311, 46.6309, -23.5936, 45.4352, -29.256, 41.8483, -33.9748, 35.8699, -36.806, 10.761, -40.581, -19.1306, -40.581, -37, -37, -51, -31, -52.6093, -25.481, -51.4136, -20.7623, -51.4136, -14.1561, -44.2396, -10.3812 )

[node name="ESCLocation" type="Position2D" parent="bidon_izq"]
position = Vector2( -270, 372 )
script = ExtResource( 5 )

[node name="turno_cocina_patata_grande" parent="." instance=ExtResource( 7 )]
position = Vector2( 440, 161 )
scale = Vector2( 0.880435, 0.88735 )
tooltips = {
    "action1": "Mirar",
    "action2": "Rascar por el fondo",
    "action3": "Mirar",
    "action4": "Usar"
}

[node name="ESCLocation2" type="Position2D" parent="turno_cocina_patata_grande"]
position = Vector2( 40.8889, 672.79 )
script = ExtResource( 5 )

[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="turno_cocina_patata_grande"]
polygon = PoolVector2Array( 21.5802, 76.6327, 32.9383, 42.8241, 37.4815, 21.4121, 37.4815, -25.9199, 36.3457, -61.9823, -39.7531, -63.1093, -42.0247, 80.0135 )

[node name="foreground" type="Sprite" parent="."]
position = Vector2( 304, 351 )
scale = Vector2( 0.994367, 0.994367 )
z_index = 4096
texture = ExtResource( 8 )

[node name="bidon_cntr" type="Area2D" parent="."]
pause_mode = 1
position = Vector2( 941, 385 )
script = ExtResource( 6 )
global_id = "turno_cocina_despensa_bidon_cntr"
esc_script = "res://gymkhana/rooms/turno_cocina/despensa/esc/bidon_cntr.esc"
combine_when_selected_action_is_in = [  ]
dialog_color = Color( 1, 1, 1, 1 )
tooltips = {
    "action1": "Mirar dentro",
    "action2": "Coger"
}
action3_target_texts = {
"turno_cocina_bol": "Coger lentejas a ojo",
"turno_cocina_peso_bol": "Coger las lentejas exactas"
}
target_when_selected_action_is_in = [ "action3" ]
animations = null

[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="bidon_cntr"]
position = Vector2( -245, 95 )
scale = Vector2( 0.9425, 0.837376 )
polygon = PoolVector2Array( -39.2573, 118.226, -23.3422, 117.032, 63.6605, 118.226, 63.6605, 11.942, 57.2944, -7.16528, 59.4164, -13.1363, 60.4775, -23.8842, 59.4164, -32.2436, 54.1114, -42.9915, 45.6234, -50.1567, 30.7692, -56.1277, 13.7931, -58.5162, -4.24402, -58.5162, -21.2202, -53.7393, -33.9523, -47.7683, -44, -26, -43.5013, -17.9131, -40.3183, -10.7479, -42.4404, 9.55365, -41.3793, 50.1567 )

[node name="ESCLocation" type="Position2D" parent="bidon_cntr"]
position = Vector2( -189, 372 )
script = ExtResource( 5 )
