Routines

26239: Control character after he's been knocked out of a chair


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

H Number of character knocked out of chair

26239 2E13 LD L,19
26241 35 DEC (HL) Is it time for the character to get up off the floor yet?
26242 C0 RET NZ Return if not
26243 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 26263
26245 3697 LD (HL),151
26247 CDB461 CALL 25012 Update SRB for character's current animatory state and location
26250 E6F8 AND 248
26252 4F LD C,A
26253 7C LD A,H
26254 FED0 CP 208 Is this EINSTEIN?
26256 2801 JR Z,26259 Jump if so
26258 1D DEC E Everyone but EINSTEIN will try the seat in front
26259 79 LD A,C A=animatory state of character standing up
26260 C33061 JP 24880 Update SRB for character's new animatory state and location