![]() |
Routines |
Prev: 60785 | Up: Map | Next: 60838 |
Used by the routines at 60850, Process_GetAcorns, Process_GetUrn, Process_GetRope, Process_GetLadder, Process_GetCloak, 61392, 61612, 61919 and Process_GetStaff.
|
||||
60789 | CALL CheckObjectInInventory | Call CheckObjectInInventory. | ||
60792 | JR NZ,60824 | Jump to 60824 if the item isn't already in the players inventory. | ||
60794 | POP HL | Restore HL from the stack. | ||
Print "You're already carrying ".
|
||||
60795 | LD HL,43516 | HL=Messaging_YoureAlreadyCarrying. | ||
This entry point is used by the routines at 60856 and IsPlayerCarryingItem.
|
||||
60798 | CALL PrintString | Call PrintString. | ||
60801 | LD HL,60780 | HL=60780. | ||
60804 | LD A,E | A=E. | ||
60805 | LD BC,1 | BC=0001. | ||
60808 | CPIR | CPIR. | ||
60810 | JR Z,60818 | Jump to 60818 if DE is equal to 55. | ||
Print "it.".
|
||||
60812 | LD HL,43543 | HL=Messaging_It. | ||
60815 | JP 60781 | Jump to 60781. | ||
Print "them.".
|
||||
60818 | LD HL,43547 | HL=Messaging_Them. | ||
60821 | JP 60781 | Jump to 60781. | ||
60824 | LD A,(42896) | Compare *Count_InventoryItems with 5. | ||
60827 | CP 5 | |||
60829 | LD B,E | B=E. | ||
60830 | RET NZ | Return if *Count_InventoryItems was not equal to 5. | ||
60831 | POP HL | Restore HL from the stack. | ||
Print "You can't carry any more.".
|
||||
60832 | LD HL,43553 | HL=Messaging_YouCantCarryAnyMore. | ||
60835 | JP 60781 | Jump to 60781. |
Prev: 60785 | Up: Map | Next: 60838 |