Quest system done
This commit is contained in:
parent
9bff79e019
commit
231ff2bb1d
10 changed files with 52 additions and 9 deletions
|
|
@ -2,3 +2,13 @@ extends Control
|
|||
|
||||
## Base which provided this menu
|
||||
var base: Base
|
||||
|
||||
func _ready():
|
||||
get_tree().create_timer(0.05).timeout.connect(check_for_delivery)
|
||||
|
||||
func check_for_delivery():
|
||||
var player_ship = get_tree().current_scene.player_ship
|
||||
if player_ship.quest == null:
|
||||
return
|
||||
if player_ship.quest.type == Quest.Type.Delivery and player_ship.quest.data["base_name"] == base.base_name:
|
||||
player_ship.quest.do_progress()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue