Prev: 26224 Up: Map Next: 26263
26239: Deal with a character who's been dethroned (2)
The address of this uninterruptible subcommand routine is placed into bytes 17 and 18 of a character's buffer by the routine at 26224.
Input
H Dethroned character's number (183-209)
26239 LD L,19 Byte 19 of the character's buffer holds the delay counter
26241 DEC (HL) Is it time for the character to get up off the floor yet?
26242 RET NZ Return if not
26243 LD L,17 Replace the address of this routine in bytes 17 and 18 of the character's buffer with 26263
26245 LD (HL),151
26247 CALL 25012 Update the SRB for the character's current animatory state and location
26250 AND 248 A=animatory state of the character standing up
26252 LD C,A Store this in C temporarily
26253 LD A,H A=number of the character knocked out of the chair
26254 CP 208 Is this EINSTEIN?
26256 JR Z,26259 Jump if so
26258 DEC E E=x-coordinate of the character upon standing up (everyone but EINSTEIN will get up and try the seat in front)
26259 LD A,C A=animatory state of the character standing up
26260 JP 24880 Update the character's animatory state and location and update the SRB
Prev: 26224 Up: Map Next: 26263