Add console command to reveal cave and dungeon names#9495
Open
Kiousu wants to merge 6 commits intoCard-Forge:masterfrom
Open
Add console command to reveal cave and dungeon names#9495Kiousu wants to merge 6 commits intoCard-Forge:masterfrom
Kiousu wants to merge 6 commits intoCard-Forge:masterfrom
Conversation
nickxiv
reviewed
Jan 15, 2026
| System.out.println("POI Names - Types\n" + String.join("\n", poiNames)); | ||
| return "POI lists dumped to stdout."; | ||
| }); | ||
| registerCommand(new String[]{"reveal", "caves", "dungeons"}, s -> { |
There was a problem hiding this comment.
This could be rewritten to take in the PointOfInterest type as an argument instead of being hardcoded to caves and dungeons. This way we could reveal cities and capitals as well.
Author
There was a problem hiding this comment.
I've updated the function so that it takes POI type as an argument, but Towns and Capitals don't show names on the map, so while it will "reveal" them, there is no update on the map. The command now covers Castles, though.
nickxiv
reviewed
Feb 5, 2026
| return "Please specify at least one PointOfInterest type (e.g. \"reveal cave\", \"reveal dungeon\", \"reveal town\", \"reveal capital\")."; | ||
| } | ||
| int revealed = 0; | ||
| for (PointOfInterest poi : save.getWorld().getAllPointOfInterest()) { |
There was a problem hiding this comment.
This looks like it's currently iterating over every POI, regardless of if it matches the type passed in. Could enhance performance by filtering these down to just the ones that match the passed in type(s).
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
reveal caves dungeons.