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:
2025-07-31 08:44:26 -04:00
parent c0a2c058ba
commit 38a7ed85b0
66 changed files with 1112 additions and 658 deletions

View File

@@ -1,8 +1,18 @@
extends Interactable
class_name QuestBoard extends Interactable
@onready var polygon : CollisionPolygon2D = $CollisionPolygon2D
@onready var window : QuestBoardWindow = $QuestBoardWindow
var busy : bool
signal interaction_complete()
func _ready() -> void:
register_board.call_deferred()
func register_board() -> void:
Guild.hall.board = self
func _input(event : InputEvent) -> void:
var evt : InputEventMouseButton = event as InputEventMouseButton
if evt and evt.button_index == MOUSE_BUTTON_LEFT and evt.pressed:
@@ -15,3 +25,8 @@ func interact(interactor, type : String = "") -> void:
if interactor is Player:
window.populate(Guild.quests.keys())
window.popup_centered()
elif type == "quest":
#Go through all quests and create a list of open quests suitable for their level
#If that list is zero, return without giving them a quest
#Else pick a random quest from the list and assign it to them
pass