Repository navigation
Blockilization: workers barbarians capture walk back to their camp, Civ V style - #38
Merged
Merged
Conversation
…iv V style A worker (or settler) the barbarians caught became theirs and was then run as a raider: it headed for the nearest of its old owner's units and "attacked" them, dying at once, so it seemed to vanish. Now a captive is led back to its captors' camp (the nearest, if theirs is gone) and waits there, beside it if another captive is already in it. Any civ can take it back by stepping a soldier onto it on the way, or by clearing the camp. Captives don't count toward the raiders a camp keeps out, so a camp holding one still sends raiders. A capture clears the worker's automation, stance and settler site, and the note says where it's being taken; the civ that frees one is told. On the map, a unit's owner is kept current, so a captured worker walking out of sight no longer looks like it died. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NTPcknrRzzKZVG96rQjwXG
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.
Requested by Patrick · project thread
What this is
A fix. When barbarians caught a worker, it became theirs, and then
barbarianTurnran it as a raider. It went for the nearest of its old owner's units and "attacked" them with 0 strength, so it died at once. It looked like it had simply vanished.Now, Civ V style:
Before and after, from 6 bot games on small maps (160 turns each, barbarians on):
Screenshot or clip
None. I didn't check this in the browser because the wasm toolchain isn't in my environment. The rules tests and bot games above cover the behaviour.
Checklist
npm run buildpasses (CI). Locally, type-check is clean for Blockilization and the boundary check passes.npm run test:headlesspasses (CI). The rules suite (tests/effects.ts) passes 258/258, including a new test for this. The new test fails onmain.🤖 Generated with Claude Code
https://claude.ai/code/session_01NTPcknrRzzKZVG96rQjwXG