Buy fleet berths with Fleet Offices
#219: fleet capacity is a built, supplied thing rather than a researched one. The eight fleet-size doctrines are gone; capacity is one berth free plus one per Fleet Office standing. An office charges every 25s for the vessel in its berth, priced off that vessel's own build cost so an expensive hull is expensive to keep, and drawn from its own store the way a gas burner draws gas. An office that cannot pay goes dark, its vessel is scuttled, and the player is told through the same queue quest lines use - which reaches them on a planet surface too. An empty berth is idle rather than starved: an office is only failing while there is something in it to fail, and holding it disabled would leave a berth that could never be crewed and so could never be paid for again. Ships have no hit points and a shield absorbs a hit wholesale, so the lost vessel is scuttled rather than damaged - otherwise a shielded hull would survive its own eviction. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019AJMdB7iuHuLFZM1aBu3GD
This commit is contained in:
parent
6e13b6397c
commit
1f5fecd371
60 changed files with 695 additions and 243 deletions
|
|
@ -171,6 +171,15 @@ func take_damage(_amount: int) -> bool:
|
|||
for child in get_children():
|
||||
if child.has_method("absorb_hit") and child.absorb_hit():
|
||||
return true
|
||||
scuttle()
|
||||
return false
|
||||
|
||||
|
||||
# Lost for a reason no shield can answer - #219's Fleet Office running dry,
|
||||
# rather than something hitting it. Same ending as a lethal hit, deliberately:
|
||||
# what the player sees is a vessel they had and no longer have, and giving
|
||||
# that its own quieter exit would read as the ship simply vanishing.
|
||||
func scuttle() -> void:
|
||||
# #130: the hull comes off the formation and explodes further out, rather
|
||||
# than going up on the spot. The wreck is its own node - this one is
|
||||
# still freed on this frame, so nothing about who is in the fleet, who
|
||||
|
|
@ -182,7 +191,6 @@ func take_damage(_amount: int) -> bool:
|
|||
Sfx.play(get_tree(), Sfx.SHIP_DEATH)
|
||||
destroyed.emit()
|
||||
queue_free()
|
||||
return false
|
||||
|
||||
|
||||
# Which way is "out of the fleet". Away from the formation's own centre, so a
|
||||
|
|
|
|||
Loading…
Reference in a new issue