spaceship/buildings
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Loïc Wisniewski c221584848 #99 (#97a): buildings have health, and can be destroyed
Nothing can attack a structure that cannot be hurt, so this is the floor the
rest of #97 stands on.

max_hp is per definition - an extractor bolted to a rock is not the
mothership - and the current value lives on the RECORD in GameState, not on
the Building node. Main.tscn is torn down and rebuilt on every trip to a
planet surface, so damage kept on a node would heal itself the moment the
player landed.

A record written before this carries no hp field at all. That reads as
undamaged rather than as zero, or an existing save would open on a field of
wrecks.

The mothership cannot be destroyed - it floors at 1hp. The bank, the hangar
and research all live there and a wiped fleet rebuilds there, so losing it
would be a soft-lock with no route back. Keyed on the "bank" capability
rather than on the type: whatever building holds the bank is the one that
cannot be lost.

Destroying a hub retires its transporters. Everything else keyed on a
building id already copes with the building being gone - a transporter
mid-delivery puts its cargo back rather than destroying it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-23 13:37:40 +02:00
..
Building.gd #99 (#97a): buildings have health, and can be destroyed 2026-08-23 13:37:40 +02:00
Building.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
Building.tscn #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
BuildingActionProvider.gd #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
BuildingActionProvider.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
BuildingDefinition.gd #99 (#97a): buildings have health, and can be destroyed 2026-08-23 13:37:40 +02:00
BuildingDefinition.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
BuildingDefinitions.gd #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
BuildingDefinitions.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
BuildingField.gd #99 (#97a): buildings have health, and can be destroyed 2026-08-23 13:37:40 +02:00
BuildingField.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
BuildingLogisticsProfile.gd #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
BuildingLogisticsProfile.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
BuildingVisualBase.gd #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
BuildingVisualBase.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
CommandBuildingDefinition.tres #99 (#97a): buildings have health, and can be destroyed 2026-08-23 13:37:40 +02:00
CommandBuildingVisual.gd #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
CommandBuildingVisual.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
CommandBuildingVisual.tscn #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
CrafterBuildingDefinition.tres #99 (#97a): buildings have health, and can be destroyed 2026-08-23 13:37:40 +02:00
CrafterBuildingVisual.gd #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
CrafterBuildingVisual.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
CrafterBuildingVisual.tscn #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
ExtractorBuildingDefinition.tres #99 (#97a): buildings have health, and can be destroyed 2026-08-23 13:37:40 +02:00
GasBurnerBuildingDefinition.tres #99 (#97a): buildings have health, and can be destroyed 2026-08-23 13:37:40 +02:00
GasBurnerBuildingVisual.gd #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
GasBurnerBuildingVisual.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
GasBurnerBuildingVisual.tscn #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
MothershipBuildingDefinition.tres #99 (#97a): buildings have health, and can be destroyed 2026-08-23 13:37:40 +02:00
MothershipBuildingVisual.gd #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
MothershipBuildingVisual.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
MothershipBuildingVisual.tscn #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
ShipLabBuildingDefinition.tres #99 (#97a): buildings have health, and can be destroyed 2026-08-23 13:37:40 +02:00
ShipLabBuildingVisual.gd #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
ShipLabBuildingVisual.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
ShipLabBuildingVisual.tscn #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
TransportHubBuildingDefinition.tres #99 (#97a): buildings have health, and can be destroyed 2026-08-23 13:37:40 +02:00
TransportHubBuildingVisual.gd #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
TransportHubBuildingVisual.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
TransportHubBuildingVisual.tscn #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00