![]() |
Routines |
| Prev: 929C | Up: Map | Next: 92E8 |
|
Used by the routines at DO_DRINK and TROLLS_EAT.
Ten points of strength, and the thing is gone from everywhere. Strength reaching 128 kills the eater: "his foul gluttony has killed the ...". That is the end the trolls come to when they eat the player, whose own record has PLAYER_DIES after EAT.
|
||||
| DO_EAT | 92B5 | CALL FOR_REAL | ||
| 92B8 | LD A,$0A | |||
|
This entry point is used by the routine at DO_DRINK.
|
||||
| GAIN_STRENGTH | 92BA | LD IX,(ACTOR) | Stronger, unless it is too much | |
| 92BE | ADD A,(IX+$05) | |||
| 92C1 | CP $80 | |||
| 92C3 | JR NC,DO_EAT_1 | |||
| 92C5 | LD (IX+$05),A | |||
| 92C8 | LD IX,(TARGET_RECORD) | The thing is nowhere | ||
| 92CC | LD (IX+$01),$FF | |||
| 92D0 | LD B,(IX+$00) | |||
| DO_EAT_0 | 92D3 | LD (IX+$10),$00 | ||
| 92D7 | INC IX | |||
| 92D9 | DJNZ DO_EAT_0 | |||
| 92DB | RET | |||
| DO_EAT_1 | 92DC | LD HL,MSG_FOUL_GLUTTONY_HAS_KILL | Too much: dead of gluttony | |
| 92DF | CALL RUN_MESSAGE_HL | |||
| 92E2 | LD A,(ACTING) | |||
| 92E5 | JP KILL | |||
| Prev: 929C | Up: Map | Next: 92E8 |