Prev: 8EA0 Up: Map Next: 8EEF
8ED7: Take thirty-two off the life force
Used by the routine at MONSTER_CAUGHT_PLAYER.
The heaviest of the three penalties, and the one MOVE_ACTOR's hit path uses. Unlike the other two this one clamps to zero rather than underflowing, then dies anyway -- the roast is redrawn empty before the life is taken, so the bar is seen to run out.
LOSE_FOOD_THIRTY_TWO 8ED7 LD A,($5E28) Thirty-two, against sixteen and eight elsewhere.
8EDA SUB $20
8EDC JR Z,LOSE_FOOD_THIRTY_TWO_0 Exactly zero, or past it: either way the player is dead.
8EDE JR NC,LOSE_FOOD_THIRTY_TWO_1
8EE0 XOR A
LOSE_FOOD_THIRTY_TWO_0 8EE1 LD ($5E28),A Show the empty bar first, then lose the life.
8EE4 CALL DRAW_FOOD
8EE7 JR LOSE_LIFE
LOSE_FOOD_THIRTY_TWO_1 8EE9 LD ($5E28),A
8EEC JP DRAW_FOOD
Prev: 8EA0 Up: Map Next: 8EEF