Complete lab, quest, garrison, and energy tickets

This commit is contained in:
Loïc Wisniewski 2026-09-03 00:12:08 +02:00
commit 0f7edff15a
20 changed files with 238 additions and 45 deletions

View file

@ -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