![]() |
Routines |
| Prev: 31904 | Up: Map | Next: 31980 |
|
Used by the routine at 31636.
|
||||
| 31920 | CALL 34350 | Check if Current Character is asleep and display "[CHARACTER] IS ASLEEP" window if so | ||
| 31923 | LD A,(30615) | Load A with index of Current Character | ||
| 31926 | LD E,0 | Point HL at strength... | ||
| 31928 | CALL 34174 | ...of character whose index is A | ||
| 31931 | PUSH HL | Switch pointer from HL to IX... | ||
| 31932 | POP IX | ... | ||
| 31934 | LD A,(IX+4) | Load A with food level of Current Character | ||
| 31937 | OR A | If food level is zero... | ||
| 31938 | JP Z,34526 | ...then display "[CHARACTER] HAS NO FOOD LEFT" window and exit | ||
| 31941 | LD A,(IX+2) | Load A with stamina of Current Character... | ||
| 31944 | CP 20 | ...and if this is anything up to 20... | ||
| 31946 | JP C,34532 | ...then display "[CHARACTER] IS TOO TIRED TO EAT OR DRINK" window and exit | ||
| 31949 | LD A,(IX+1) | Load A with the happiness of Current Character... | ||
| 31952 | CP 30 | ...and if this is anything up to 30... | ||
| 31954 | JP C,34490 | ...then display "[CHARACTER] DOES NOT WANT TO BE COMMANDED BY YOU" window and exit | ||
| 31957 | LD A,(IX+0) | Load A with the strength of Current Character... | ||
| 31960 | CP 100 | ...and if this is equal to 100... | ||
| 31962 | JP Z,34756 | ...then display "[CHARACTER] HAS TAKEN REFRESHMENT" window and exit | ||
| 31965 | DEC (IX+4) | Decrease food level by one | ||
| 31968 | INC (IX+0) | Increase strength by one | ||
| 31971 | LD A,(IX+4) | If food level is not zero... | ||
| 31974 | OR A | ... | ||
| 31975 | JR NZ,31957 | ...then loop back to 31957 | ||
| 31977 | JP 34756 | ...then display "[CHARACTER] HAS TAKEN REFRESHMENT" window and exit | ||
| Prev: 31904 | Up: Map | Next: 31980 |