| Routines

31078: Control a female character while she's standing on a chair or jumping (1)

The address of this uninterruptible subcommand routine is placed into bytes 17 and 18 of a female character's buffer by the routine at 31092. It deals with a female character while she is either standing on a chair or jumping up and down (to evade a mouse).
Input
H | Character number (183-189, 204 or 209)
31078 | LD L,19 | Byte 19 of the character's buffer holds a counter determining how much longer she will continue jumping
31080 | DEC (HL) | Is it time to stop jumping?
31081 | JR NZ,31128 | Jump if not
31083 | CALL 28978 | Return this character to the floor
31086 | LD L,18 | Remove the address of this routine from bytes 17 and 18 of the character's buffer
31088 | LD (HL),0
31090 | RET |