Skip to content

Add console command to reveal cave and dungeon names#9495

Open
Kiousu wants to merge 6 commits intoCard-Forge:masterfrom
Kiousu:master
Open

Add console command to reveal cave and dungeon names#9495
Kiousu wants to merge 6 commits intoCard-Forge:masterfrom
Kiousu:master

Conversation

@Kiousu
Copy link

@Kiousu Kiousu commented Jan 12, 2026

Summary

  • Add a new adventure console command: reveal caves dungeons.
  • Marks all cave/dungeon POIs as visited so their names show up in the map “Names” view.

System.out.println("POI Names - Types\n" + String.join("\n", poiNames));
return "POI lists dumped to stdout.";
});
registerCommand(new String[]{"reveal", "caves", "dungeons"}, s -> {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Author

@Kiousu Kiousu Jan 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@Kiousu Kiousu requested a review from nickxiv January 30, 2026 15:52
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()) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants