Skip to content

feat(map): integrate war queuer and going-to heads on territory map - #67

Merged
burgerfan41 merged 14 commits into
EdenGuild:masterfrom
Good627:feat/map-war-queuer
Dec 2, 2026
Merged

burgerfan41 merged 14 commits into
EdenGuild:masterfrom
Good627:feat/map-war-queuer

Conversation

@Good627

@Good627 Good627 commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on #66 — merge #66 first. The War Queuer & Going-To integration diff is the final commit feat/territory-map..feat/map-war-queuer (b830e42).

Summary

Integrates guild War Queuer and Going-To heads and right-click toggling directly into the interactive Territory Map (TerritoryMapScreen), synced bidirectionally with AttackTimerMenu and guarded behind both server-side and client-side membership checks (mod_version remains 1.6.6).

Changes

  • Member-only isolation:
    • Client-side TerritoryMapScreen renders and activates War Queuer / Going-To overlays and right-click toggle only when mod.isFullMember().
    • Server-side in EdenBot (bridge/ws.py), traveler connections do not receive war_attack_status / war_queuer / war_going state and cannot mutate guild war going state, so travelers or modified clients receive no war-squad data.
  • Close-zoom War Squad heads on the map (TerritoryMapScreen):
    • At close zoom (detail && sw >= 26 && sh >= 26), renders the Queuer's 10x10 player skin head (PlayerSkinResolver / PlayerFaceRenderer) centered directly above the (scaled) guild tag and up to 5 Going-To heads centered directly below the guild tag (no empty placeholder boxes, with +N overflow badge when > 5).
    • Green outline (0xFF44FF44) when inside the territory, red (0xFFFF5050) when not yet inside; hovering a head shows IGN (AttackTimerMenu.displayName), role ((Queuer)), and Inside territory when inside (without "En route").
    • Red attack border and ⚔ <time> countdown remain visible at all zooms for active attacks inside the framed viewport.
  • Right-click Going To toggle & Inspect Panel (AttackTimerMenu, TerritoryMapScreen):
    • Extracted shared AttackTimerMenu.toggleGoing(String territory) (also used by HUD right-click), checking client.isFullMember() and resetting the pending/last inside state cleanly.
    • Plain Right-Click on an attacked territory (or its attack overlay box) toggles Going To; Shift + Right-Click still runs /gu territory <name>.
    • Inspect panel includes a WAR SQUAD section listing the Queuer and Going-To players with skin heads, inside/outside outline color, and "Inside" label when inside (without "En route"); Our attack stat row appends · <queuerName>.
  • Territory key normalization (TerritoryMapData):
    • Added TerritoryMapData.normalizeTerritoryKey (normalizing typographic apostrophes, whitespace, and lowercase) so scoreboard/WarBoard territory names reliably match Wynncraft API territory names.

Verification

  • .\gradlew.bat build --console=plain: BUILD SUCCESSFUL (spotlessApply, compileJava, spotlessCheck, check, remapJar, test, build).
  • Unit tests (build/test-results/test/*.xml): 83 suites, 547 tests, 0 failures, 0 errors, 4 skipped (unrelated upstream tests), including TerritoryMapDataTest (10 passed).
  • git diff --stat feat/territory-map..feat/map-war-queuer touches only AttackTimerMenu.java, TerritoryMapData.java, TerritoryMapScreen.java, and TerritoryMapDataTest.java; git diff --name-only upstream/master -- gradle.properties is empty.
  • Not verified live in-game: live server WarBoard WebSocket updates, skin rendering, and right-click UI feel in Minecraft runtime.

@Good627
Good627 force-pushed the feat/map-war-queuer branch from a7da3a8 to 5bc18fa Compare December 1, 2026 14:20
@Good627
Good627 force-pushed the feat/map-war-queuer branch from 5bc18fa to b830e42 Compare December 1, 2026 14:49
@Good627
Good627 force-pushed the feat/map-war-queuer branch from b830e42 to 6ea513e Compare December 1, 2026 15:32
@burgerfan41
burgerfan41 merged commit a7af08e into EdenGuild:master Dec 2, 2026
1 check passed
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