Skip to content

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.

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

Copy link
Author

Choose a reason for hiding this comment

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

I can refactor this for readability, but that won’t change performance: we still need to inspect all POIs at least once without a precomputed type index. To actually reduce iteration cost, we’d need to add a typed lookup/index in world POI storage, which is a larger design change. If that already exists and I missed it, please let me know.

@Kiousu Kiousu requested a review from nickxiv February 6, 2026 00:47
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