Skip to content

Commit 78225da

Browse files
committed
okay it should work now? ill have to update the other two
1 parent 1d3bda6 commit 78225da

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

addons/journalgd/QuestNode/quest_engine.gd

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ extends Node
66
## When functions ask for a "Quest path", they are referring to a string in the format of [code]quest_name/step_name/goal_name[/code].
77

88

9+
static var instance:QuestEngine
10+
911
## Array of IDs of all the quests that are currently active.
1012
var active_quests: Array[String]
1113
## Array of IDs of all the quests the player has completed.
@@ -23,6 +25,10 @@ signal step_updated(quest_path:String, data:Dictionary)
2325
signal quest_updated(quest_path:String, data:Dictionary)
2426

2527

28+
func _ready() -> void:
29+
instance = self
30+
31+
2632
## Loads all quests from the [code]biznasty/quests_directory[/code] project setting, and then instantiates them as child [QuestObject]s.
2733
func load_quest_objects():
2834
_load_dir(ProjectSettings.get_setting("journalgd/quests_path"))

0 commit comments

Comments
 (0)