ennemy default vessel should explose when hitting a player vessel #82
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
metaheavens/spaceship#82
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Done in
baac11a, live at https://metaheavens.de/spaceship/A chaser is now destroyed by the impact when it reaches a vessel. It used to pass through the wreck untouched and line up another pass, which made a ramming enemy strictly better than any other.
Data-driven per enemy (
dies_on_contact) rather than a blanket rule about touching: the chaser rams because ramming is its whole behaviour, while a sniper that happens to drift into a ship has not spent itself doing it. Routed throughtake_damage, so it dies exactly as it dies to gunfire - same explosion, samedestroyedsignal.One ordering detail that matters: the enemy is told about the impact before the ship resolves its own damage, because resolving it can free the ship. A vessel that dies to a ramming chaser must still take the chaser with it.
test_chaser_ramscovers the trade, that a sniper survives the same collision, and that a shielded vessel absorbs the ram and still destroys the chaser.