New art assets, work on implementing more adventurer behavior and making them work better together, and steps towards completing the first quest loop.
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
class_name Guildhall extends Node2D
|
||||
|
||||
var employees : Dictionary[String, GuildEmployee] = {}
|
||||
var board : QuestBoard
|
||||
@onready var sprite_node : Node2D = $Sprites
|
||||
@onready var nav_region : NavigationRegion2D = $RoomRegion
|
||||
|
||||
func _ready() -> void:
|
||||
Guild.hall = self
|
||||
for child in get_children():
|
||||
for child in sprite_node.get_children():
|
||||
if child is GuildEmployee:
|
||||
register_employee(child)
|
||||
|
||||
@@ -14,4 +17,4 @@ func register_employee(employee: GuildEmployee) -> void:
|
||||
|
||||
|
||||
func add_sprite(sprite : Adventurer) -> void:
|
||||
add_child(sprite)
|
||||
sprite_node.add_child(sprite)
|
||||
|
||||
Reference in New Issue
Block a user