Repository navigation
Place structures in the workshop automatically - #166
Open
tastybento wants to merge 2 commits into
Open
tastybento wants to merge 2 commits into
tastybento wants to merge 2 commits into
Conversation
/boxadmin areas structures auto takes a list of structures and how many of each, from a dialog or typed, and places them: what advancements cannot do without first, then what helps, then the rest, and repeats last. Each goes in a biome it belongs in, taken from the game's own rules, inside the box and clear of other structures. What has nowhere to go is left out and reported. The structures the game can now build whole (pyramids, swamp hut, mineshaft, monument, buried treasure) are no longer marked as impossible in the requirements. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HBXcjZkd22rGNW5ZyL1git
The sliders held a whole sentence, which did not fit. Each now shows the structure's name and the number, coloured by what it does for the score, and the dialog explains the colours once. Building a whole structure on finished land made the game log a warning for every block it would have tidied up later in a new chunk, hundreds of lines for a stronghold. Those are turned off while it builds. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HBXcjZkd22rGNW5ZyL1git
|
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.



What it does
/boxadmin areas structures autoplaces structures on the workshop's land.auto village:3 mansion igloo:2 bee. The console with no names lists what there is.requirements.ymlas needed, helps, or no effect on score.structure-places.yml, generated from the game's own data), inside the box, clear of other structures and of the start. Scoring ones go nearest the middle, others anywhere. Underground structures can sit under surface ones.Also: pyramids, swamp hut, mineshaft, monument and buried treasure are no longer
neverinrequirements.yml, since the game can build them whole.Tested
Unit tests for the order, the choice of place and the ratings. On a scratch server from the console, asking for 213 structures placed 12 (2 villages, 2 igloos, ancient city, jungle temple, trial chambers, outpost, bastion, 3 bees) and reported the rest: no desert or swamp, no room for a mansion or more villages.
Not tested: the dialog, which needs a player.
Known
requirements.yml, as Score advancements by how hard they are #164 does, in different places.🤖 Generated with Claude Code
https://claude.ai/code/session_01HBXcjZkd22rGNW5ZyL1git