![]() |
Routines |
| Prev: 38696 | Up: Map | Next: 38829 |
|
Used by the routine at ActionBurn.
The player has died. The current object is marked broken, its copies are cleared, the tie is cut, and the character slots are walked.
|
||||
|
Test the current object.
|
||||
| Turn_ThePlayerHasDied | 38780 | LD A,(46824) | Jump to YouAreDead if *CurrentObject is zero. | |
|
This entry point is used by the routines at Action_Shoot, Action_Attack, Action_AddToThePlayersStrength, ActionBurn and Event_DayDawnsOnTheTrolls.
|
||||
| Turn_ThePlayerHasDied_0 | 38783 | AND A | ||
| 38784 | JP Z,YouAreDead | } | ||
| 38787 | PUSH BC | Save BC, IY and IX, and keep the object id in C. | ||
| 38788 | PUSH IY | |||
| 38790 | PUSH IX | |||
| 38792 | LD C,A | |||
|
Find the object's record.
|
||||
| 38793 | CALL LocateObject | Call LocateObject to locate object. | ||
| 38796 | SET 3,(IX+7) | Mark the object broken. | ||
| 38800 | CALL Condition_WhereTheObjectIs_0 | Call Condition_WhereTheObjectIs_0 to find where the object is. | ||
| 38803 | LD A,C | Use the current object again. | ||
| 38804 | CALL TableFindASpecialObject | Call TableFindASpecialObject to find the special-object record. | ||
| 38807 | CP 255 | Jump to Turn_ThePlayerHasDied_ClearTheTieOnTheObject if this object has no special-object record. | ||
| 38809 | LD A,C | |||
| 38810 | JR Z,Turn_ThePlayerHasDied_ClearTheTieOnTheObject | |||
| 38812 | LD (IY+0),0 | Clear the special-object id. | ||
| Turn_ThePlayerHasDied_ClearTheTieOnTheObject | 38816 | CALL Action_ClearTheTie | Call Action_ClearTheTie to clear the tie on the object. | |
| 38819 | LD A,C | Use the current object again. | ||
| 38820 | CALL Inglish_WalkTheCharacterSlots | Call Inglish_WalkTheCharacterSlots to walk the character slots. | ||
| 38823 | POP IX | Restore IX, IY and BC from the stack. | ||
| 38825 | POP IY | |||
| 38827 | POP BC | |||
| 38828 | RET | Return. | ||
| Prev: 38696 | Up: Map | Next: 38829 |