Prev: 35420 Up: Map Next: 35536
35495: Set Magic Knight's available action flags
Used by the routines at 26906, 29446, 30222 and 32390.
35495 CALL 35536 Set the command-a-character-enabled flag if carrying the Wand of Command
35498 CALL 35567 Set the locate-enabled flag if carrying the Crystal Ball
35501 CALL 35598 Set the teleport-enabled flag if carrying the Teleport Key
35504 CALL 35629 Set the read-enabled flag if carrying a readable object
35507 CALL 35669 Set the throw-enabled flag if carrying a throwable object
35510 CALL 35709 Set the cast-a-spell-enabled flag if carrying a magic object
35513 CALL 35749 Set the blow-enabled flag if carrying a blowable object
35516 CALL 35789 Set the call-lift-enabled flag if in the first room of a floor
35519 CALL 35815 Set the move-lift-enabled flag if in the lift
35522 LD A,(65529) Load A with Magic Knight's current room...
35525 OR A ...and if he is not in the lift...
35526 RET NZ ...then return
35527 LD A,(65532) If he is in the lift...
35530 RES 1,A ...reset the locate-enabled flag (i.e. false)...
35532 LD (65532),A ...
35535 RET Return
Prev: 35420 Up: Map Next: 35536