18 lines
356 B
GDScript
18 lines
356 B
GDScript
class_name EventShowQuest extends "res://scripts/Event/Event.gd"
|
|
|
|
@export var quest:QuestSystem.QuestKey = QuestSystem.QuestKey.TEST_QUEST
|
|
@export var waitUntilClosed:bool = true
|
|
|
|
func start():
|
|
UI.QUEST_MENU.open(quest)
|
|
pass
|
|
|
|
func isDone() -> bool:
|
|
if !super.isDone():
|
|
return false
|
|
|
|
if waitUntilClosed:
|
|
return !UI.QUEST_MENU.isOpen()
|
|
|
|
return true
|