NPCs can take quests!
This commit is contained in:
7
quest.gd
7
quest.gd
@@ -28,11 +28,18 @@ var taken : bool = false
|
||||
var questor : AdventurerData = null
|
||||
signal status_changed(status : Status)
|
||||
|
||||
func _init() -> void:
|
||||
print("TEST!")
|
||||
|
||||
func initiate(member : AdventurerData) -> void:
|
||||
questor = member
|
||||
taken = true
|
||||
status_changed.emit(Status.TAKEN)
|
||||
|
||||
#TODO: Put in quest requirements
|
||||
func is_eligible(member : AdventurerData) -> bool:
|
||||
return !taken
|
||||
|
||||
func difficulty_name() -> String:
|
||||
match(difficulty):
|
||||
0: return "None"
|
||||
|
||||
Reference in New Issue
Block a user