Vast improvements and a working finite state machine, working on new guild member registration.

This commit is contained in:
2025-07-24 08:41:19 -04:00
parent 90151369de
commit dc30d1b15c
100 changed files with 1987 additions and 194 deletions

15
guildhall.gd Normal file
View File

@@ -0,0 +1,15 @@
class_name Guildhall extends Node2D
var employees : Dictionary[String, GuildEmployee] = {}
func _ready() -> void:
Guild.hall = self
for child in get_children():
if child is GuildEmployee:
register_employee(child)
func register_employee(employee: GuildEmployee) -> void:
employees[employee.name] = employee
func add_sprite(sprite : Adventurer) -> void:
add_child(sprite)