Skip to content

Configurable bell ping for territory and in-war start warnings - #41

Merged
burgerfan41 merged 5 commits into
EdenGuild:masterfrom
Good627:FINALV2WARSTARTPING
Oct 27, 2026
Merged

burgerfan41 merged 5 commits into
EdenGuild:masterfrom
Good627:FINALV2WARSTARTPING

Conversation

@Good627

@Good627 Good627 commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Two bell pings for guild wars, both in /eden config -> War and off by default.

  • War start bell (25s) (warBattleStartBell, on/off): rings when the in-war battle countdown starts ("The war battle will start in 25 seconds."). If lag drops that line, the next countdown line rings instead, down to the final "5 seconds..." lines. Rings once per war; cleared when the battle begins, the attack is cancelled, or on a world change or disconnect.
  • Attack timer bell (in territory) (warAttackTimerBellSeconds, Off to 120s in 5s steps): rings once when an attack timer (sidebar or chat-filled) for the territory you're standing in (the pink row) is at that many seconds or less. Walking in late still rings; a timer briefly dropping off the sidebar doesn't ring it again; a new attack on the same territory does.

Details

  • The attack timer bell rides on AttackTimerMenu.onTick's existing per-tick scan and only looks up where you stand once some timer is due, so it costs nothing measurable per frame.
  • Ringing state is cleared when an attack ends (forgetTerritory) and on a full reset.
  • Tests in WarStartPingTrackerTest cover once-per-war/attack ringing, the missed-line fallback, standing-in checks, chat filtering and the lazy territory lookup.

@Good627 Good627 changed the title feat: FINALV2WARSTARTPING - Configurable bell ping for territory and in-war start warnings Configurable bell ping for territory and in-war start warnings Oct 22, 2026
@Good627
Good627 force-pushed the FINALV2WARSTARTPING branch from 22fd573 to 9ba5aae Compare October 22, 2026 13:57
@Good627
Good627 force-pushed the FINALV2WARSTARTPING branch from 9ba5aae to e86e55d Compare October 22, 2026 17:43
# Conflicts:
#	src/tel/eden/mod/EdenModClient.java
The territory bell no longer waits for the "will start in 30 seconds" chat line and
runs its own countdown. It now rings when an attack timer (sidebar or chat-filled)
is at the chosen number of seconds or less while you stand in that territory, the
same check that turns the timer row pink. Each attack rings once, walking in late
still rings, and a timer briefly dropping off the sidebar doesn't ring it again.
The setting goes up to 120s, and the queued-only toggle is gone since standing in
the territory replaces it.

The check rides on the attack timer's existing per-tick scan and only looks up
where you stand once some timer is due. The in-war 25s battle bell is unchanged.
…ines

The bell now rings as soon as the in-war countdown starts (the 25s line) instead of
after a chosen delay. If lag drops that line, the next countdown line rings instead,
down to the final "5 seconds..." ones, and it still rings only once per war.
Match the final "5 seconds..." lines only when the line is just the countdown (or follows a font tag), so other countdowns like "teleported in 5 seconds..." can't ring the war bell outside a war.
@burgerfan41
burgerfan41 merged commit 9bf6a03 into EdenGuild:master Oct 27, 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