Prev: DD4D Up: Map Next: DD6C
DD52: Sets IY To Monster Data
Input
A Monster ID
Output
IY Monster data
SetIYMonsterData DD52 CP $01 Jump to SetIYMonsterData_Lizzy if A is not equal to 01.
DD54 JR NZ,SetIYMonsterData_Lizzy
A is 01; set to George:
DD56 LD IY,$CFD2 IY=George_State.
DD5A RET Return.
If it's not 01 is it 02?
SetIYMonsterData_Lizzy DD5B CP $02 Jump to SetIYMonsterData_Ralph if A is not equal to 02.
DD5D JR NZ,SetIYMonsterData_Ralph
A is 02; set to Lizzy:
DD5F LD IY,$D001 IY=Lizzy_State.
DD63 RET Return.
Just return if A is none of 01 02 or 03.
SetIYMonsterData_Ralph DD64 CP $03 Return if A is not equal to 03.
DD66 RET NZ
A is 03; set to Ralph:
DD67 LD IY,$D030 IY=Ralph_State.
DD6B RET Return.
Prev: DD4D Up: Map Next: DD6C