Quest restrictions (2/3) and current quest info
This commit is contained in:
parent
c6d8ae8be0
commit
9bff79e019
13 changed files with 53 additions and 16 deletions
|
|
@ -44,8 +44,7 @@ func _process(_delta) -> void:
|
|||
func shoot() -> void:
|
||||
if ship is PlayerShip:
|
||||
if ship.quest != null:
|
||||
if Quest.Restriction.NoWeapon in ship.quest.restrictions:
|
||||
ship.quest.fail()
|
||||
ship.quest.trigger_restriction(Quest.Restriction.NoWeapon)
|
||||
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