Prev: AAE0 Up: Map Next: AB0B
AAF9: The wine's own handler: the player drinks it
The wine carries this for action 0 in its record, so nothing branches to it and it showed as data; drinking the wine is what runs it. Only the player is affected. It also starts timer 7 in TIMERS, copying its length of five turns into its count, and when that runs out WINE_WEARS_OFF sobers the player up again.
WINE_DRUNK AAF9 LD A,(ACTING) Only the player
AAFC CP $00
AAFE RET NZ
AAFF LD A,$01 Drunk: from now on every S is followed by an H
AB01 LD (DRUNK),A
AB04 LD A,(TIMER7) Start timer 7: sober again in five turns
AB07 LD (TIMER7_COUNT),A
AB0A RET
Prev: AAE0 Up: Map Next: AB0B