Routines

26224: Control character when he's knocked out of his chair


The address of this routine is placed into bytes 17 and 18 of a character's buffer by the routine at 26175 when he's knocked out of his chair

H Number of character knocked out of chair

26224 2E13 LD L,19 Set parameter controlling the delay before the character gets up to look for another seat
26226 3604 LD (HL),4
26228 2E11 LD L,17 Replace the address of this routine in bytes 17 and 18 of the character's buffer with that of the routine at 26239
26230 367F LD (HL),127
26232 CDB461 CALL 25012 Update SRB for character's current animatory state and location
26235 3C INC A A=animatory state of character sitting on the floor
26236 C33061 JP 24880 Update SRB for character's new animatory state