Resolve pending gameplay tickets

This commit is contained in:
Loïc Wisniewski 2026-09-02 13:43:56 +02:00
commit c2ebbfaa2d
28 changed files with 618 additions and 188 deletions

View file

@ -70,13 +70,10 @@ func _explode() -> void:
# Asteroids too - a blast that clears everything around it but leaves the
# rocks untouched would need explaining, and they take damage the same way.
#
# #165: and STRUCTURES. The blast used to stop politely at anything the
# player owned, which made a bomb dropped on a besieged mothership a free
# way to clear the attackers off it. Everything inside the radius is
# inside the radius; where it lands is the decision the weapon asks for.
# #176: player weapons never damage player buildings. A bomb may be thrown
# into a siege without punishing the structure it is meant to defend.
for target_node in get_tree().get_nodes_in_group("enemies") \
+ get_tree().get_nodes_in_group("asteroids") \
+ get_tree().get_nodes_in_group("player_buildings"):
+ get_tree().get_nodes_in_group("asteroids"):
if is_instance_valid(target_node) and target_node is Node2D \
and target_node.global_position.distance_to(target) <= AOE_RADIUS:
target_node.take_damage(damage)