Quest restrictions (2/3) and current quest info
This commit is contained in:
parent
c6d8ae8be0
commit
9bff79e019
13 changed files with 53 additions and 16 deletions
|
|
@ -26,5 +26,8 @@ func destroy():
|
|||
docking_base = null
|
||||
selected_node = null
|
||||
if quest != null:
|
||||
if Quest.Restriction.NoDeaths in quest.restrictions:
|
||||
quest.fail()
|
||||
quest.trigger_restriction(Quest.Restriction.NoDeaths)
|
||||
|
||||
func on_quest_failed(_bool: bool):
|
||||
quest.quest_failed.disconnect(on_quest_failed)
|
||||
quest = null
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue