Skip to content

fix(region): compare /region codes with CONTINENT, not REGION - #69

Merged
hbrombeer merged 1 commit into
mainfrom
fix/region-continent
Oct 12, 2026
Merged

hbrombeer merged 1 commit into
mainfrom
fix/region-continent

Conversation

@hbrombeer

Copy link
Copy Markdown
Member

The REGIONS catalogue is keyed by continent (eu=eu.geo.grnds.io:30565, built per continent in grounds-pulumi core/src/platform/argocd.ts), but /region compared its codes with REGION, the datacentre (de-nbg1). So "(you are here)" never showed and /region eu transferred a player to the continent they were already on.

  • RegionCatalog.currentCode() returns CONTINENT, falling back to REGION when unset (a catalogue keyed by datacentre).
  • /region uses it for both the list marker and the already-here check.
  • Tests for both cases.

The REGIONS catalogue is keyed by continent (eu), while REGION names the
datacentre (de-nbg1). /region compared the two, so 'you are here' never
matched and /region eu transferred a player to where they already were.
Compare with CONTINENT and fall back to REGION when it is unset.
@hbrombeer
hbrombeer marked this pull request as ready for review October 12, 2026 16:38
@hbrombeer
hbrombeer merged commit d83e6c7 into main Oct 12, 2026
3 checks passed
@hbrombeer
hbrombeer deleted the fix/region-continent branch October 12, 2026 16:38
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.

1 participant