Repository navigation
feat!: age void dragons through life stages until they die of old age - #95
Merged
Merged
Conversation
Closes #36 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A grown Void Dragon is young, adult, senior or old by the cargo it has unloaded, each stage multiplying its speed and load. Only an adult lays eggs, owed ones carrying into senior once. An old dragon whose stage runs out dies at a stop after unloading, setting any rider down on the rim and laying what it owes, its presence playing a short Ender Dragon death. An egg's price counts its owner's living dragons, so a death lowers it. Jade shows the stage and the presence is sized by it. Old saves load young. Closes #54 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ded well An old dragon whose stage runs out now dies once its stop is over, at a Well whose chunk is loaded, carrying nothing and having laid every egg it owes, setting down any rider still on its back. At a Well that is not loaded it lives on to its next loaded stop, so no egg is lost. A dragon the remove command takes out no longer counts toward its owner's egg price either. The death show is spawned through the presences' one spawn path and no longer bursts into explosions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LifeStages holds each stage's speed and load as one Factors in an EnumMap, built from the server config once a load or reload of it rather than every step. The presence's size and the stage's Jade key leave the LifeStage enum for VoidDragon and DragonReport. A dragon's count toward its next egg is towardEgg, as it is saved. The death beams' numbers are named and VoidDragon's synced data sits with its other statics. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`/voidworks dragon age <stage>` sets the grown dragon the operator looks at to the start of that stage, owing no egg, to see each stage without carrying a life's motes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… death shows Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…log names lose Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A grown Void Dragon ages by the cargo it unloads, through four life stages, and dies of old age (ADR 0010).
/voidworks dragon removelowers it./voidworks dragon age <stage>sets the dragon an operator looks at to the start of a stage.lifeStageMotes,lifeStageSpeeds,lifeStageLoads.mainthat was never pushed.Evidence
After:
sh ./gradlew buildpasses 355 JUnit tests (LifeStagesTest, plusRoutingTestfor dying only at a loaded stop and no lost eggs, andHatcheryTest).runGameTestServerpasses all 225 game tests, including threelife_stage_*ones: dying at a Well, a rider set down on the Well it picked, and a rider still mounted through the last unload.Merge Danger
Door: one-way
Saves change: dragons gain a
cargocount, the egg count moves totoward_egg(old counts dropped, dragons start young), and the Hatchery savesgone. Once players lose dragons to old age, that can't be walked back.Blast Radius: saves
Breaking for Consumers of the API:
RoutingandVoidDragonRecordconstructors change,VoidDragonRecord.speed()moves toLifeStages.speed(dragon), andDragonReportgains astage.Closes #54
🤖 Generated with Claude Code