Routines

28992: 'D' pressed - drop stinkbomb


The address of this routine is found in the keypress table at 58624

28992 3AEB7F LD A,(32747) Inventory flags
28995 07 RLCA Does ERIC have any stinkbombs?
28996 D0 RET NC Return if not
28997 CD506E CALL 28240 Is ERIC on a staircase?
29000 D8 RET C Return if so
29001 CD36E2 CALL 57910 Prepare buffer 213 for stinkbomb cloud (if available)
29004 3E07 LD A,7 7: animatory state of ERIC dropping stinkbomb (arm up)
29006 2162F8 LD HL,63586 Routine at 63586: deal with stinkbomb
29009 C32AE1 JP 57642