benilla-re systems structs docs

ClearDuelState

function · ui · orchestration

Address
0x4d47d0 · 56 bytes, up to 0x4d4807
Meaning
Clears the current duel and kills the countdown 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 1

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