Back to Skool Routines
28992: 'D' pressed - drop stinkbomb
The address of this routine is found in the keypress table at 58624.
28992 LD A,(32747) 32747 holds the inventory flags
28995 RLCA Does ERIC have any stinkbombs?
28996 RET NC Return if not
28997 CALL 28240 Is ERIC on a staircase?
29000 RET C Return if so
29001 CALL 57910 Prepare buffer 213 (normally used by BOY WANDER's pellet) for the stinkbomb cloud
29004 LD A,7 7: animatory state of ERIC dropping a stinkbomb (arm up)
29006 LD HL,63586 Routine at 63586: deal with stinkbomb
29009 JP 57642 Update ERIC's animatory state and drop the stinkbomb