Prev: 43117 Up: Map Next: 43199
43158: Wake current character up if possible
Used by the routine at 64623.
43158 CALL 45411 Point IX at Current Character's current stats
43161 BIT 7,(IX+6) If character's asleep flag is set then reset zero flag
43165 LD HL,52707 Point HL at "[Current Character's short name] IS ALREADY AWAKE" text
43168 JP Z,64313 If character is awake then display "[Character] IS ALREADY AWAKE" window (29) and return to game
43171 LD A,(IX+2) If character's stamina is less than 30...
43174 AND 127 ...
43176 CP 30 ...then set carry flag, otherwise reset it
43178 LD HL,52719 Point HL at "[Current Character's short name] IS TOO TIRED TO WAKE UP" text
43181 JP C,64313 If carry flag is set then display "[Character] IS TOO TIRED TO WAKE UP" window (29) and return to game
43184 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...
43186 CALL 45423 ...
43189 RES 7,(IX+6) Reset character's asleep flag
43193 LD HL,52731 Point HL at "[Current Character's short name] HAS WOKEN UP" text
43196 JP 64313 Display "[Character] HAS WOKEN UP" window (29) and return to game
Prev: 43117 Up: Map Next: 43199