Let the fleet grow past twenty vessels
max_fleet_size() clamped itself to DEFAULT_FORMATION.size(), so the ceiling on the fleet was a property of the LAYOUT - the wedge ran out of authored positions at twenty - rather than a rule anyone decided on. Capacity is the supplied Fleet Offices and nothing else now. Dropping the clamp alone would index off the end of the formation array, so the wedge continues by rule instead of stopping: formation_slot() grows it on demand, each further pair stepping 30 further out and 40 further back, which is what the authored rows already do - the first twenty slots come back unchanged. A grown slot is rotated by formation_rotation so a fleet that outgrows the array after the player has pivoted does not sprout hulls facing the original heading, and that angle is saved with the layout. Two "fleet is full" messages pointed at the vanished ceiling. Both now say what actually buys a berth, and the hangar's stops claiming it is research, which it has not been since #219. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QR2Mdk42ghEpeyXPe4UFyn
This commit is contained in:
parent
f1292db40a
commit
93bfe62e76
7 changed files with 113 additions and 23 deletions
|
|
@ -47,7 +47,7 @@ const FIELDS: Array = [
|
|||
"unlocked", "research_points", "vessel_levels",
|
||||
# The fleet itself.
|
||||
"fleet_position", "fleet_vessel_types", "surviving_ship_count",
|
||||
"surviving_vessel_types", "formation", "stored_vessels",
|
||||
"surviving_vessel_types", "formation", "formation_rotation", "stored_vessels",
|
||||
"vessel_targets", "vessel_deliveries", "repair_drones",
|
||||
"max_fleet_speed_multiplier", "fleet_speed_multiplier", "build_time_scale",
|
||||
# The world as the player has seen it.
|
||||
|
|
|
|||
Loading…
Reference in a new issue