Complete lab, quest, garrison, and energy tickets
This commit is contained in:
parent
d413d1da9f
commit
0f7edff15a
20 changed files with 238 additions and 45 deletions
|
|
@ -1,5 +1,7 @@
|
|||
extends Area2D
|
||||
|
||||
const COMBAT_TARGET = preload("res://core/CombatTarget.gd")
|
||||
|
||||
signal destroyed
|
||||
|
||||
const ENEMY_DEFINITIONS = preload("res://enemies/EnemyDefinitions.gd")
|
||||
|
|
@ -30,10 +32,10 @@ var max_hp: int
|
|||
|
||||
func _ready() -> void:
|
||||
add_to_group("enemies")
|
||||
# Weapons discover anything the player may deliberately aim at through one
|
||||
# compositional contract. Asteroids implement the same contract without the
|
||||
# aim-assist code having to know either concrete type (#181).
|
||||
add_to_group("player_aim_targets")
|
||||
# Weapons discover anything the player may deliberately attack through one
|
||||
# compositional contract. Asteroids implement the same contract without
|
||||
# combat systems having to know either concrete type (#181, #186).
|
||||
COMBAT_TARGET.register(self, COMBAT_TARGET.DANGER_PRIORITY)
|
||||
definition = ENEMY_DEFINITIONS.get_definition(enemy_id)
|
||||
speed = definition.speed
|
||||
acceleration = definition.acceleration
|
||||
|
|
|
|||
Loading…
Reference in a new issue