Routines |
Prev: D5FE | Up: Map | Next: D651 |
Used by the routine at D5FE.
|
||||||||||||||||||||
The following spells have a 'trickle' drain/heal effect on Maroc's energy while they're in effect:
Each 'trickle' of drain/restore takes place every 16 game cycles:
|
||||||||||||||||||||
D63A | LD A,($EAAA) | Incrementing game counter | ||||||||||||||||||
D63D | LD C,A | (This instruction/C register not needed) | ||||||||||||||||||
D63E | AND $0F | Check if any of bits 0-3 are set | ||||||||||||||||||
D640 | CP $00 | |||||||||||||||||||
D642 | JR NZ,$D651 | If so, don't do anything but instead skip to next routine | ||||||||||||||||||
Every 16th game cycle:
|
||||||||||||||||||||
D644 | LD A,($EAE9) | Currently active 'effect' spell | ||||||||||||||||||
D647 | CP $00 | |||||||||||||||||||
D649 | JR Z,$D651 | If no active effect spells, jump to next routine | ||||||||||||||||||
D64B | LD A,($EBD5) | Ongoing effect spell - amount of energy to drain/heal (see table) | ||||||||||||||||||
D64E | CALL $E3CC | Increase/decrease Maroc's energy accordingly |
Prev: D5FE | Up: Map | Next: D651 |