Add quest objectives to quest menu
This commit is contained in:
@@ -2,16 +2,18 @@ class_name EventShowQuest extends "res://scripts/Event/Event.gd"
|
||||
|
||||
@export var quest:QuestSystem.QuestKey = QuestSystem.QuestKey.TEST_QUEST
|
||||
@export var waitUntilClosed:bool = true
|
||||
@export var showQuest:bool = true
|
||||
|
||||
func start():
|
||||
UI.QUEST_MENU.open(quest)
|
||||
if showQuest:
|
||||
UI.QUEST_MENU.open(quest)
|
||||
pass
|
||||
|
||||
func isDone() -> bool:
|
||||
if !super.isDone():
|
||||
return false
|
||||
|
||||
if waitUntilClosed:
|
||||
if waitUntilClosed and showQuest:
|
||||
return !UI.QUEST_MENU.isOpen()
|
||||
|
||||
return true
|
||||
|
Reference in New Issue
Block a user