![]() |
Routines |
| Prev: 62317 | Up: Map | Next: 62428 |
|
Used by the routine at 62178.
|
||||
| 62330 | LD A,(23460) | If number of 1/50 seconds elapsed in current minute is zero (i.e. start of new second)... | ||
| 62333 | OR A | ... | ||
| 62334 | CALL Z,62622 | ...then move character whose turn it is to move, if allowed | ||
| 62337 | LD A,(23460) | [EVERY 1/50 SECOND] Increase number of elapsed 1/50 seconds | ||
| 62340 | INC A | ... | ||
| 62341 | LD (23460),A | ... | ||
| 62344 | CP 50 | If new value isn't 50... | ||
| 62346 | RET NZ | ...then return | ||
| 62347 | XOR A | [EVERY 1 SECOND] Else, set the value to zero (start of next full second)... | ||
| 62348 | LD (23460),A | ... | ||
| 62351 | LD A,(23459) | Increase number of seconds elapsed... | ||
| 62354 | INC A | ... | ||
| 62355 | LD (23459),A | ... | ||
| 62358 | CP 60 | If new value isn't 60... | ||
| 62360 | RET NZ | ...then return | ||
| 62361 | XOR A | [EVERY 1 MINUTE] Else, set the value to zero (start of next minute)... | ||
| 62362 | LD (23459),A | ... | ||
| 62365 | CALL 62476 | Update all characters' stats (deteriorate or regenerate) and wake up / send to sleep if required | ||
| 62368 | CALL 62431 | Increase Magic Knight's current magic level by 10 (capped at 100) | ||
| 62371 | LD A,6 | If Magic Knight is wearing the Magic Talisman (6)... | ||
| 62373 | CALL 45505 | ... | ||
| 62376 | CALL Z,62428 | ...then increase Magic Knight's current magic level by 20 (capped at 100) | ||
| 62379 | LD A,(23713) | Increase index of current Crystal Ball substring... | ||
| 62382 | INC A | ... | ||
| 62383 | AND 7 | ...resetting to zero if above 7... | ||
| 62385 | LD (23713),A | ... | ||
| 62388 | LD A,(23714) | Increase index of current Scroll substring... | ||
| 62391 | INC A | ... | ||
| 62392 | AND 7 | ...resetting to zero if above 7... | ||
| 62394 | LD (23714),A | ... | ||
| 62397 | CALL 62443 | Make Chicken lay an egg if possible | ||
| 62400 | LD A,(23458) | Increase number of minutes elapsed... | ||
| 62403 | INC A | ... | ||
| 62404 | LD (23458),A | ... | ||
| 62407 | CP 5 | If new value isn't 5... | ||
| 62409 | RET NZ | ...then return | ||
| 62410 | XOR A | [EVERY 5 MINUTES] Else, set the value to zero (start of next "hour")... | ||
| 62411 | LD (23458),A | ... | ||
| 62414 | LD A,(23457) | Decrease number of hours left... | ||
| 62417 | DEC A | ... | ||
| 62418 | LD (23457),A | ... | ||
| 62421 | JP Z,62877 | If zero then show "out of time" game over message and return to control selection menu | ||
| 62424 | CALL 47897 | Play upward scale sound | ||
| 62427 | RET | Return | ||
| Prev: 62317 | Up: Map | Next: 62428 |