spaceship/buildings
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Loïc Wisniewski 0810c99f08 #116: the Spacial Workshop, and the drones that mend what waves break
Modelled on the transport hub, deliberately and closely: drones belong to a
workshop rather than to the player, are provisioned when it is built, are
never a production order, and are upgraded at a ship lab like any other
vessel. Anything that already knows how hub transporters behave knows how
these do, and Drone Bays raises the count at workshops already standing -
the same shape as Freight Yards and Garrison Bays.

What a repair COSTS is the one new idea. It is a share of the building's own
price, in proportion to how much of its health is gone: levelling a crafter
and rebuilding it costs its full price, and patching one up after a wave
costs a fraction, the fraction being the damage. The ore is spent when a
drone LEAVES, so two drones cannot be sent to the same wall and spend twice
for one load of repair, and a building demolished in transit sends its load
home rather than swallowing it.

"Required resources are sent to the spacial workshop": the workshop asks hub
logistics for the ore its outstanding repairs will need, exactly as a gas
burner asks for gas, because building_logistics_deficit now takes the larger
of the definition's static buffer and what the world actually demands. There
is a ceiling on that, so one badly-mauled base cannot pull the whole bank
into a single workshop and starve everything else.

Worst first: the structure closest to coming down is the one a repair is
worth most on.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-23 21:59:51 +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 #101 (#97c): waves attack buildings 2026-08-23 13:53:17 +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 #116: the Spacial Workshop, and the drones that mend what waves break 2026-08-23 21:59:51 +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
BuildingHitbox.gd #101 (#97c): waves attack buildings 2026-08-23 13:53:17 +02:00
BuildingHitbox.gd.uid Add the .uid files Godot generated for the new scripts 2026-08-23 19:23:50 +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 #117: the crafter and the lab animate only while they are working 2026-08-23 21:58:59 +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 #117: the crafter and the lab animate only while they are working 2026-08-23 21:58:59 +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 Garrison laser vessels and gas bombers, on a shared ability seam 2026-08-23 19:23:35 +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
OutpostBuildingDefinition.tres #102/#103 (#97d/#97e): the outpost, and the garrison you compose for it 2026-08-23 14:02:20 +02:00
OutpostBuildingVisual.gd #102/#103 (#97d/#97e): the outpost, and the garrison you compose for it 2026-08-23 14:02:20 +02:00
OutpostBuildingVisual.gd.uid Add the .uid files Godot generated for the new scripts 2026-08-23 19:23:50 +02:00
OutpostBuildingVisual.tscn #102/#103 (#97d/#97e): the outpost, and the garrison you compose for it 2026-08-23 14:02:20 +02:00
PlanningBuildingDefinition.tres #106/#107 (#98a/#98b): the Planning Center 2026-08-23 14:21:52 +02:00
PlanningBuildingVisual.gd #106/#107 (#98a/#98b): the Planning Center 2026-08-23 14:21:52 +02:00
PlanningBuildingVisual.gd.uid Add the .uid files Godot generated for the new scripts 2026-08-23 19:23:50 +02:00
PlanningBuildingVisual.tscn #106/#107 (#98a/#98b): the Planning Center 2026-08-23 14:21:52 +02:00
ShipLabBuildingDefinition.tres #99 (#97a): buildings have health, and can be destroyed 2026-08-23 13:37:40 +02:00
ShipLabBuildingVisual.gd #117: the crafter and the lab animate only while they are working 2026-08-23 21:58:59 +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
WorkshopBuildingDefinition.tres #116: the Spacial Workshop, and the drones that mend what waves break 2026-08-23 21:59:51 +02:00
WorkshopBuildingVisual.gd #116: the Spacial Workshop, and the drones that mend what waves break 2026-08-23 21:59:51 +02:00
WorkshopBuildingVisual.tscn #116: the Spacial Workshop, and the drones that mend what waves break 2026-08-23 21:59:51 +02:00