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

17
quest_board.gd Normal file
View File

@@ -0,0 +1,17 @@
extends Interactable
@onready var polygon : CollisionPolygon2D = $CollisionPolygon2D
@onready var window : QuestBoardWindow = $QuestBoardWindow
func _input(event : InputEvent) -> void:
var evt : InputEventMouseButton = event as InputEventMouseButton
if evt and evt.button_index == MOUSE_BUTTON_LEFT and evt.pressed:
if Geometry2D.is_point_in_polygon(evt.position - polygon.global_position, polygon.polygon):
Game.player.try_interact(self)
get_viewport().set_input_as_handled()
func interact(interactor, type : String = "") -> void:
if interactor is Player:
window.populate(Guild.quests.keys())
window.popup_centered()