Skip to content

fix: my_island placeholders fall back to team island for members - #560

Merged
tastybento merged 1 commit into
developfrom
fix/559-team-member-placeholders
Aug 29, 2026
Merged

fix: my_island placeholders fall back to team island for members#560
tastybento merged 1 commit into
developfrom
fix/559-team-member-placeholders

Conversation

@tastybento

Copy link
Copy Markdown
Member

Summary

Fixes #559.

Since the getUsersIsland() rewrite that shipped in 1.26.0 (9ec2530), the my_island_* placeholders only resolved islands the player owns. A plain team member (who owns no island of their own) got the empty defaults — 0, 0%, Unknown — even though the placeholder docs say they work for the island owner or team member.

Fix

getUsersIsland() now uses a preference order instead of a hard owner-only filter:

  1. An island the player owns (preserves the 9ec2530 fix for players who own an island while also being a member of another team with disallow-team-member-islands: false).
  2. Otherwise, the team island the player is a member of.
  3. Otherwise, empty (existing default values).

Testing

  • New regression test testTeamMemberWithoutOwnedIsland covering the Placeholder Bug #559 scenario.
  • Full test suite passes (575 tests, 0 failures).

🤖 Generated with Claude Code

https://claude.ai/code/session_01PtmXKNJ5fSZ9sEumeFDEBc

Since the getUsersIsland() rewrite that shipped in 1.26.0, the my_island_*
placeholders only resolved islands the player owns, so plain team members
(who own no island) got the empty defaults (0, 0%, Unknown). Prefer an
owned island as before, but fall back to the team island the player is a
member of when they own none.

Fixes #559

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PtmXKNJ5fSZ9sEumeFDEBc
@sonarqubecloud

Copy link
Copy Markdown

@tastybento
tastybento merged commit fa30a00 into develop Aug 29, 2026
3 checks passed
@tastybento
tastybento deleted the fix/559-team-member-placeholders branch August 29, 2026 00:52
@tastybento tastybento mentioned this pull request Aug 29, 2026
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.

Placeholder Bug

1 participant