Global madness
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
[ext_resource type="Script" uid="uid://ceym82rf2qnxu" path="res://addons/escoria-ui-return-monkey-island/esc_item_with_tooltip.gd" id="1"]
|
||||
[ext_resource type="Texture2D" uid="uid://cueb8gkqhbads" path="res://gymkhana/items/inventory/assets/turno_cocina_ajo.png" id="2"]
|
||||
[ext_resource type="Script" uid="uid://bh55kesnba2x4" path="res://addons/escoria-ui-return-monkey-island/item_components/ESCItemComponentGlobalObserver.gd" id="6_fo2yn"]
|
||||
|
||||
|
||||
[node name="turno_cocina_ajo" type="Area2D"]
|
||||
process_mode = 1
|
||||
@@ -26,3 +28,9 @@ texture = ExtResource("2")
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
|
||||
polygon = PackedVector2Array(-7, -6, 7, -6, 7, 6, -7, 6)
|
||||
|
||||
[node name="ESCItemComponentGlobalBooleanObserver" type="Node" parent="."]
|
||||
script = ExtResource("6_fo2yn")
|
||||
targeted_global_variable = "turno_cocina_ingrediente_ajo_cogido"
|
||||
inverted = true
|
||||
metadata/_custom_type_script = "uid://bh55kesnba2x4"
|
||||
@@ -10,6 +10,10 @@
|
||||
say($player, "Parece un cuerno de algún animal. Lo usan para llamar a comer.", "cocina_cuerno_action3_say")
|
||||
|
||||
:action4
|
||||
global turno_cocina_ingrediente_patatas
|
||||
global turno_cocina_ingrediente_ajo_en_lentejas
|
||||
global turno_cocina_eneko_cata_ok
|
||||
|
||||
if turno_cocina_ingrediente_patatas and turno_cocina_ingrediente_ajo_en_lentejas and !turno_cocina_eneko_cata_ok:
|
||||
say($player, "Debería pedirle a Eneko que pruebe las lentejas antes de llamar a la gente.", "cocina_cuerno_action4_hint")
|
||||
stop
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://igj2f3midaad"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://ceym82rf2qnxu" path="res://addons/escoria-ui-return-monkey-island/esc_item_with_tooltip.gd" id="1"]
|
||||
[ext_resource type="Texture2D" uid="uid://d33c6oen4di3s" path="res://gymkhana/items/inventory/assets/turno_cocina_cuerno.png" id="2"]
|
||||
[ext_resource type="Texture2D" uid="uid://bmrurk8dpgeci" path="res://gymkhana/items/inventory/assets/turno_cocina_cuerno_inventario.png" id="3"]
|
||||
[ext_resource type="Texture2D" uid="uid://bpgvtgvlo10in" path="res://gymkhana/items/inventory/assets/turno_cocina_cuerno.png" id="2"]
|
||||
[ext_resource type="Texture2D" uid="uid://cgrhr8eh24tbv" path="res://gymkhana/items/inventory/assets/turno_cocina_cuerno_inventario.png" id="3"]
|
||||
|
||||
[node name="turno_cocina_cuerno" type="Area2D"]
|
||||
process_mode = 1
|
||||
script = ExtResource("1")
|
||||
global_id = "turno_cocina_cuerno"
|
||||
esc_script = "res://gymkhana/items/inventory/turno_cocina_cuerno.esc"
|
||||
combine_when_selected_action_is_in = []
|
||||
combine_when_selected_action_is_in = PackedStringArray()
|
||||
inventory_texture = ExtResource("3")
|
||||
dialog_color = Color(1, 1, 1, 1)
|
||||
inventory_texture_hovered = ExtResource("3")
|
||||
custom_data = {
|
||||
"tooltips": {
|
||||
"action1": "tooltip_turno_cocina_cuerno_action1",
|
||||
@@ -20,7 +20,6 @@ custom_data = {
|
||||
"action4": "tooltip_turno_cocina_cuerno_action4"
|
||||
}
|
||||
}
|
||||
animations = null
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
position = Vector2(8.125, -8.125)
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://d1ust40cvfjtw"]
|
||||
[gd_scene load_steps=7 format=3 uid="uid://d1ust40cvfjtw"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://ceym82rf2qnxu" path="res://addons/escoria-ui-return-monkey-island/esc_item_with_tooltip.gd" id="1"]
|
||||
[ext_resource type="Texture2D" uid="uid://breq706ufjdyy" path="res://gymkhana/items/inventory/assets/turno_cocina_olla_inv_con_agua.png" id="2"]
|
||||
[ext_resource type="Texture2D" uid="uid://bhdcferfexcgb" path="res://gymkhana/items/inventory/assets/turno_cocina_olla.png" id="3"]
|
||||
[ext_resource type="PackedScene" uid="uid://d7l30s558mvd" path="res://gymkhana/particles/SmokeParticles.tscn" id="4"]
|
||||
[ext_resource type="Script" uid="uid://con0lpnpm1118" path="res://gymkhana/items/inventory/scripts/turno_cocina_olla_llena_economica_encendida_observer.gd" id="5"]
|
||||
[ext_resource type="Script" uid="uid://bh55kesnba2x4" path="res://addons/escoria-ui-return-monkey-island/item_components/ESCItemComponentGlobalObserver.gd" id="6_fo2yn"]
|
||||
|
||||
[node name="turno_cocina_olla_llena" type="Area2D"]
|
||||
process_mode = 1
|
||||
@@ -21,6 +22,7 @@ global_id = "turno_cocina_olla_llena"
|
||||
esc_script = "res://gymkhana/items/inventory/turno_cocina_olla_llena.esc"
|
||||
combine_when_selected_action_is_in = PackedStringArray("action4")
|
||||
inventory_texture = ExtResource("2")
|
||||
inventory_texture_hovered = ExtResource("2")
|
||||
custom_data = {
|
||||
"tooltips": {
|
||||
"action1": "tooltip_common_look_inside",
|
||||
@@ -37,3 +39,8 @@ polygon = PackedVector2Array(-59, 25, -59, 47, -35, 56, 7, 58, 54, 52, 55, -13,
|
||||
|
||||
[node name="SmokeParticles" parent="." instance=ExtResource("4")]
|
||||
script = ExtResource("5")
|
||||
|
||||
[node name="ESCItemComponentGlobalBooleanObserver" type="Node" parent="."]
|
||||
script = ExtResource("6_fo2yn")
|
||||
targeted_global_variable = "turno_cocina_economica_con_olla"
|
||||
metadata/_custom_type_script = "uid://bh55kesnba2x4"
|
||||
|
||||
Reference in New Issue
Block a user