fix(ItemWithTooltip): call super._ready() on _ready()

This commit is contained in:
2025-01-23 23:56:18 +01:00
parent 5a5f5466f0
commit 137d696a21
2 changed files with 6 additions and 5 deletions

View File

@@ -17,6 +17,7 @@ var components: Dictionary = {}
func _ready():
super._ready()
register_components()

View File

@@ -344,7 +344,7 @@ func get_object(global_id: String, room: ESCRoom = null) -> ESCObject:
else:
escoria.logger.warn(
self,
"Object with global id %s in room instance (%s, %s) not found."
"Object with global id %s in room instance (%s, %s) not found. This can be safely ignored if a room was being searched for."
% [global_id, room_key.room_global_id, room_key.room_instance_id]
)
if escoria.inventory_manager.inventory_has(global_id):
@@ -460,10 +460,10 @@ func save_game(p_savegame: ESCSaveGame) -> void:
func get_start_location() -> ESCLocation:
if _room_exists(current_room_key):
for object in _get_room_objects_objects(current_room_key).values():
if is_instance_valid(object.node) \
and object.node is ESCLocation \
and object.node.is_start_location:
return object
if is_instance_valid(object.node):
var loc := object.node as ESCLocation
if loc and loc.is_start_location:
return loc
escoria.logger.warn(
self,