Routines

24296: 'F' pressed - fire catapult


The address of this routine is found in the keypress table

24296 CD4FE2 CALL 57935 Give up right now if the catapult pellet's buffer is already in use
24299 3E0A LD A,10 10: animatory state of ERIC raising arm to fire catapult
24301 CDB75E CALL 24247 Adjust ERIC's animatory state, update SRB, and return to 24304 when it's time to deal with ERIC again
24304 3E02 LD A,2 Message number 2: NO CATAPULTS
24306 CD98F8 CALL 63640 Make any teachers nearby give ERIC lines
24309 3E0B LD A,11 11: animatory state of ERIC firing catapult
24311 CDB75E CALL 24247 Adjust ERIC's animatory state, update SRB, and return to 24314 when it's time to deal with ERIC again
24314 06D6 LD B,214 214: ERIC's catapult pellet
24316 CD75F9 CALL 63861 Prepare the pellet's buffer and make an "ERIC has fired" sound effect
24319 3E0B LD A,11 11: animatory state of ERIC firing catapult
24321 CDB75E CALL 24247 Adjust ERIC's animatory state, update SRB, and return to 24324 when it's time to deal with ERIC again
24324 3E0A LD A,10 10: animatory state of ERIC raising arm to fire catapult
24326 18D9 JR 24289 This is a bug. It should be: JR 24287