![]() |
Routines |
| Prev: 40663 | Up: Map | Next: 40760 |
|
Used by the routine at AdvanceGardenerAfterMove.
Stores the character's new state, marks the object moved, and writes the location offset back into the timetable.
|
||||||||||||||||
| UpdateCharacterStateAndLocation | 40734 | LD (HL),A | Store the new state, point IX at the current character at CurrentCharacterData, and write B at offset 15. | |||||||||||||
| 40735 | LD IX,(40983) | |||||||||||||||
| 40739 | LD (IX+15),B | |||||||||||||||
| 40742 | LD (IX+1),255 | Mark the object as moved. | ||||||||||||||
|
Update character's location in timetable.
|
||||||||||||||||
| 40746 | LD L,(IY+6) | Add the offset in the source to the word at offset 6 of this record. | ||||||||||||||
| 40749 | LD H,(IY+7) | |||||||||||||||
| 40752 | ADD HL,DE | |||||||||||||||
| 40753 | LD (IY+6),L | Store the low byte of the schedule time. | ||||||||||||||
| 40756 | LD (IY+7),H | Store the high byte of the schedule time. | ||||||||||||||
| 40759 | RET | Return. | ||||||||||||||
| Prev: 40663 | Up: Map | Next: 40760 |