benilla-re systems structs docs

ProcessDuelCountdown

function · ui · primitive

Address
0x4d4930 · 145 bytes, up to 0x4d49c0
Meaning
Prints the remaining duel countdown seconds and re-arms the timer
Confidence
verified, proof one
Finding
ui/duel#countdown-and-result

Finding: Countdown and result in ui: duels

SMSG_DUEL_COUNTDOWN carries the time in milliseconds; the handler stores it divided by 1000 as the seconds and starts the ProcessCountdown timer: each second it prints DUEL_COUNTDOWN with the remaining seconds as a system line in the chat and re-arms itself until the count is 0. SMSG_DUEL_COMPLETE ends a duel that is current: a flag of 0 shows ERR_DUEL_CANCELLED (310); DUEL_FINISHED (383) is signalled, the flag GUID is cleared and the countdown timer is killed. SMSG_DUEL_WINNER prints DUEL_WINNER_KNOCKOUT for a flag of 0, DUEL_WINNER_RETREAT otherwise, with the two names, as a system line.

The derivation is in the doc.

Callers 1

Callees 4

Calls and jumps by a bare address, from tables/calls.tsv.