Added delivery quest (very crappy realisation)

This commit is contained in:
gotfishmakesticks 2023-11-21 12:59:19 +03:00
commit c6bf51f1b0
9 changed files with 71 additions and 13 deletions

View file

@ -17,6 +17,9 @@ func _on_body_entered(body):
menu_inst.base = get_parent()
body.find_child("GUI").add_child(menu_inst)
body.minimap.visible = false
if body.quest.type == Quest.TYPE.DELIVERY:
if body.quest.data['destination'] == get_parent():
body.quest.do_progress()
func _on_body_exited(body):
if body is MainShip: