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
|
|
@ -22,6 +22,8 @@ var targeted_node: Node2D = null
|
|||
var player_ship: PlayerShip
|
||||
## Pause controller reference
|
||||
var pause_controller: Control
|
||||
## All bases in the system
|
||||
var bases: Array[Base]
|
||||
|
||||
func _ready():
|
||||
player_ship = get_node_or_null("FactionPlayer/PlayerShip")
|
||||
|
|
@ -61,3 +63,11 @@ func set_targeted_node(node):
|
|||
|
||||
func clear_targeted_node():
|
||||
targeted_node = null
|
||||
|
||||
## Returns base with given name
|
||||
func find_base_by_name(base_name: String) -> Base:
|
||||
for base in bases:
|
||||
if base.base_name == base_name:
|
||||
return base
|
||||
return null
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue