Prev: 30804 Up: Map Next: 30842
30810: Send current character to sleep if possible
Used by the routine at 55726.
30810 CALL 33546 Point IX at Current Character's current stats
30813 BIT 7,(IX+6) If character's asleep flag is set...
30817 JP NZ,55227 ...then display "[Character] IS ALREADY ASLEEP" window (29) and return to game
30820 LD A,(IX+2) If character's stamina is 70 or more...
30823 AND 127 ...
30825 CP 70 ...
30827 JP NC,55232 ...then display "[Character] IS TOO WAKEFUL TO SLEEP" window (29) and return to game
30830 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...
30832 CALL 33558 ...
30835 SET 7,(IX+6) Set character's asleep flag
30839 JP 55354 Display "[Character] HAS GONE TO SLEEP" window (29) and return to game
Prev: 30804 Up: Map Next: 30842