Prev: 30810 Up: Map Next: 30874
30842: Wake current character up if possible
Used by the routine at 55726.
30842 CALL 33546 Point IX at Current Character's current stats
30845 BIT 7,(IX+6) If character's asleep flag is reset...
30849 JP Z,55242 ...then display "[Character] IS ALREADY AWAKE" window (29) and return to game
30852 LD A,(IX+2) If character's stamina is less than 30...
30855 AND 127 ...
30857 CP 30 ...
30859 JP C,55247 ...then display "[Character] IS TOO TIRED TO WAKE UP" window (29) and return to game
30862 LD B,30 If character's happiness is less than 30 then show "[Character] DOES NOT WANT TO BE COMMANDED..." and jump to main game loop...
30864 CALL 33558 ...
30867 RES 7,(IX+6) Reset character's asleep flag
30871 JP 55359 Display "[Character] HAS WOKEN UP" window (29) and return to game
Prev: 30810 Up: Map Next: 30874