Skip to content

feat: FINALV1TERRITORYLOSSSOUND - Territory loss anvil falling audio alert - #26

Merged
burgerfan41 merged 3 commits into
EdenGuild:masterfrom
Good627:FINALV1TERRITORYLOSSSOUND
Oct 13, 2026
Merged

burgerfan41 merged 3 commits into
EdenGuild:masterfrom
Good627:FINALV1TERRITORYLOSSSOUND

Conversation

@Good627

@Good627 Good627 commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

Overview

Plays an anvil falling sound (\�lock.anvil.land) when a territory is taken by an opposing guild.

Key Changes

  • Client-Side Territory Loss Detection (\TerritoryLossTracker):
    • Matches server-wide Wynncraft territory capture announcements: [] has taken control of !\ (3-4 letter guild tags).
    • Operates purely on the client without requiring a backend/bot WebSocket connection.
    • Safely ignores Eden's own captures ([EDN], [Eden]) and standard chat prefixes ([Guild], [Party], [Allies]).
    • Plays \SoundEvents.ANVIL_LAND\ on the UI sound channel with a 500ms debounce to prevent audio stacking.
  • Configurable Territory Blacklist (\BridgeConfig):
    • \ erritoryLossSound: Master feature toggle, off by default (\ alse).
    • \ erritoryLossBlacklistEnabled: Master toggle for the blacklist, on by default (\ rue). When disabled, all captures play the sound.
    • \ erritoryLossBlacklist: Configurable list of territories that suppress the sound (case-insensitive matching).
    • Pre-populated with 20 default territories: Timeworn Arch, Pine Pillar Forest, Evergreen Outbreak, Burning Farm, Waterfall Cave, Paper Trail, Big Mushroom Cave, Collapsed Bridge, Mycelial Expanse, Dodegar's Forge, Unicorn Trail, Guardian of the Forest, Heavenly Ingress, Luminous Plateau, Primal Fen, Field of Life, Path to Light, Otherworldly Monolith, Azure Frontier, Nexus of Light.
  • In-Game Configuration GUI (\TerritoryLossBlacklistScreen\ & \BridgeConfigScreen):
    • Adds feature toggle, blacklist toggle, and interactive blacklist management button under War & Territory in /eden config.
    • Dedicated interactive \TerritoryLossBlacklistScreen\ allowing players to browse blacklisted territories, add custom territories via an input box, remove existing entries, or reset to defaults.
  • Unit Tests (\TerritoryLossTrackerTest):
    • Comprehensive unit test suite verifying regex capture rules, tag lengths, color code/private glyph cleaning, default blacklist suppression, blacklist master toggle, Eden capture exclusions, and non-war chat filtering.

Good627 and others added 3 commits October 12, 2026 14:37
…alert

- Plays an anvil falling sound (block.anvil.land) when a territory is captured from the player
- Verified purely on the client side via chat announcements, requiring no backend or bot WebSocket connection
- Matches Wynncraft server-wide capture announcements: '[<tag>] has taken control of <territory>!' (3-4 letter guild tags)
- Ignores Eden captures ([EDN] / [Eden]) and standard chat channels ([Guild], [Party], [Allies])
- Suppresses audio cue for blacklisted territories (case-insensitive) when blacklist is enabled
- Configurable blacklist with master toggle (default On) pre-populated with 20 default territories
- Master feature toggle (default Off) under War & Territory in /eden config
- Interactive TerritoryLossBlacklistScreen GUI for adding, removing, and resetting blacklisted territories
- Unit test suite verifying parsing, tag constraints, color codes, glyph filtering, and blacklist suppression
@burgerfan41
burgerfan41 force-pushed the FINALV1TERRITORYLOSSSOUND branch from 3799fef to e7e3021 Compare October 13, 2026 07:50
@burgerfan41
burgerfan41 merged commit 51ed61c into EdenGuild:master Oct 13, 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