H | Character number (183-189, 204 or 209) |
31092 | 2E11 | LD L,17 | Replace the address of this routine in bytes 17 and 18 of the character's buffer with that of 31078 |
31094 | 3666 | LD (HL),102 | |
31096 | CDB461 | CALL 25012 | |
31099 | 2E14 | LD L,20 | Store the character's current animatory state in byte 20 of her buffer temporarily |
31101 | 77 | LD (HL),A | |
31102 | 2C | INC L | |
31103 | 3600 | LD (HL),0 | Initialise byte 21 to 0 |
31105 | 15 | DEC D | Jump up |
31106 | D5 | PUSH DE | |
31107 | 2E00 | LD L,0 | |
31109 | CBBE | RES 7,(HL) | Pretend character is facing left |
31111 | CDD465 | CALL 26068 | Check whether this character is beside a chair |
31114 | D1 | POP DE | |
31115 | 2E15 | LD L,21 | |
31117 | A7 | AND A | Is this character standing beside a chair? |
31118 | 2001 | JR NZ,31121 | Jump if not |
31120 | 34 | INC (HL) | Signal: there's a chair here to stand on |
31121 | 2D | DEC L | Retrieve character's animatory state from byte 20 |
31122 | 7E | LD A,(HL) | |
31123 | E6F8 | AND 248 | A=animatory state of character jumping |
31125 | C33061 | JP 24880 | Update SRB for character's new animatory state and location |