Quest system fixed.
This commit is contained in:
@@ -25,7 +25,7 @@ func start() -> void:
|
||||
assert(started == false)
|
||||
started = true
|
||||
|
||||
func update(delta:float) -> void:
|
||||
func update(_delta:float) -> void:
|
||||
assert(started == true)
|
||||
assert(ended == false)
|
||||
|
||||
|
17
scripts/Event/Quest/EventShowQuest.gd
Normal file
17
scripts/Event/Quest/EventShowQuest.gd
Normal file
@@ -0,0 +1,17 @@
|
||||
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.showQuestsMenu(quest)
|
||||
pass
|
||||
|
||||
func isDone() -> bool:
|
||||
if !super.isDone():
|
||||
return false
|
||||
|
||||
if waitUntilClosed:
|
||||
return false
|
||||
|
||||
return true
|
1
scripts/Event/Quest/EventShowQuest.gd.uid
Normal file
1
scripts/Event/Quest/EventShowQuest.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://dd6ppw243a5x7
|
Reference in New Issue
Block a user