File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ gdscript/warnings/untyped_declaration=1
3535editor/new_file_template ="# SPDX-FileCopyrightText: The Threadbare Authors
3636# SPDX-License-Identifier: MPL-2.0
3737~ start
38- {{npc_name}}: [[Hi|Hello|Greetings]], {{player_name}}
38+ [[Hi|Hello|Greetings]], {{player_name}}
3939=> END
4040"
4141runtime/balloon_path ="uid://dhydhpp43urah"
Original file line number Diff line number Diff line change @@ -42,10 +42,9 @@ func _ready() -> void:
4242 return
4343 interact_area .interaction_started .connect (_on_interaction_started )
4444
45- if get_parent () is NPC :
46- var npc := get_parent () as NPC
47- if npc .npc_name :
48- interact_area .action = "Talk to %s " % npc .npc_name
45+ var npc := get_parent () as NPC
46+ if npc and npc .npc_name :
47+ interact_area .action = "Talk to %s " % npc .npc_name
4948
5049
5150func _on_interaction_started (player : Player , _from_right : bool ) -> void :
You can’t perform that action at this time.
0 commit comments