Prev: 62544 Up: Map Next: 62673
62648: Handler: Eating
Used by the routine at 62544.
Monster has eaten something, work out what.
Handler_Eating 62648 CP 4 Anything with an ID lower than 4 is food, if so jump to Handler_EatFood.
62650 JR C,Handler_EatFood
Else it's something inedible so fetch the monster state and handle it.
62652 LD A,(57157) A=*Temp_MonsterID.
62655 CALL SetIYMonsterData Call SetIYMonsterData.
Take 6 away from the monsters energy level.
62658 LD A,6 A=6.
62660 CALL Handler_DecreaseEnergy Call Handler_DecreaseEnergy.
62663 LD (IY+0),29 Write 29 to monster state (*IY+0).
62667 LD (IY+7),4 Write 4 to *IY+7.
62671 JR 62578 Jump to 62578.
Prev: 62544 Up: Map Next: 62673