Quest taking and rejecting
This commit is contained in:
parent
8a40de576e
commit
c6d8ae8be0
12 changed files with 87 additions and 14 deletions
|
|
@ -42,6 +42,10 @@ func _process(_delta) -> void:
|
|||
ship.shield.can_recharge_laser = false
|
||||
|
||||
func shoot() -> void:
|
||||
if ship is PlayerShip:
|
||||
if ship.quest != null:
|
||||
if Quest.Restriction.NoWeapon in ship.quest.restrictions:
|
||||
ship.quest.fail()
|
||||
for spawner in spawner_points:
|
||||
var projectile_instance = projectile.instantiate()
|
||||
ProjectileContainer.instance.add_child(projectile_instance)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue