More work on taking quests

This commit is contained in:
2025-08-06 04:17:27 -04:00
parent 2c99ece532
commit d705ed0496
22 changed files with 270 additions and 72 deletions

View File

@@ -1,6 +1,12 @@
class_name Quest extends Object
enum Status{
OPEN,
TAKEN,
IN_PROGRESS,
COMPLETED
}
var name : String = "A Basic Quest"
@@ -20,9 +26,19 @@ var current_step : int = 0
var taken : bool = false
var questor : AdventurerData = null
var entry : QuestLogEntry = null
signal status_changed(status : Status)
func initiate(member : AdventurerData) -> void:
questor = member
taken = true
entry.update()
status_changed.emit(Status.TAKEN)
func difficulty_name() -> String:
match(difficulty):
0: return "None"
1: return "Trivial"
2: return "Moderate"
3: return "Severe"
4: return "Extreme"
5: return "Legendary"
_: return "Unknown"