Repository navigation
Add a global hunt mode and restore the 2500-block detection range - #31
Conversation
source.mode picks who hunts which source. player keeps a cache per character near them; global buries one cache anywhere in the area that every hunter reads, and the first to open it takes the loot before a new one is buried. /geiger mode [player|global] shows or switches the mode, saved to config.yml. Each mode keeps its own sources in sources.yml, so switching back resumes the old hunts. In global mode /geiger locate and /geiger move [x z] act on the shared cache. detection.max-detection-distance defaults to 2500 again. Config v8 adds source.mode and raises the range from 1000 to 2500 where it was still at that value; the v6 cap at reroll-distance is gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Summary
Merge Risk: ⚪ Minimal · up to
|
Adds a server-wide switch between a cache per character and one shared cache, and puts the detection range back to 2,500 blocks.
source.mode: playeris the current behaviour.source.mode: globalburies one cache anywhere inside the configured area, read by every hunter holding a live detector; the first to open it takes the loot and the next hold buries a new one anywhere in the area. The shared cache is not re-rolled by distance. Collection limits stay per account in both modes./geiger mode [player|global]shows or switches the mode, saving it toconfig.ymland reloading. The shared cache is kept insources.ymlunder its own key, so switching back to player mode resumes every character's old hunt.In global mode
/geiger locate(console too) and/geiger move [x z]act on the shared cache, with their ownadmin.shared-*messages; tab completion follows the mode.detection.max-detection-distancedefaults to 2500. Config v8 addssource.modeand raises the range from 1000 to 2500 where it was still at that value. The v6 step that capped the range atreroll-distanceis removed, since v8 would undo it.Docs: TF-Minecraft/Docs#275.
Tests:
mvn clean verifypasses, 170 tests at 100% coverage.🤖 Generated with Claude Code