![]() |
Routines |
| Prev: 40001 | Up: Map | Next: 40074 |
|
Used by the routines at Action_RefuseIfNotCarried, Action_Pickup, Action_Give, Turn_RunTheHandlerIfPresent and ActionTie.
Tests whether the object is being carried.
|
||||
| ConditionIsTheObjectCarried | 40056 | LD A,(46824) | Read *CurrentObject. | |
|
This entry point is used by the routines at Action_Shoot, Turn_RunTheHandlerIfPresent and Turn_ReportWhoIsCarryingAnObject.
|
||||
| ConditionIsTheObjectCarried_0 | 40059 | LD HL,46826 | Point HL at the character whose turn it is. | |
|
This entry point is used by the routine at Action_Putdown.
|
||||
| ConditionIsTheObjectCarried_1 | 40062 | CP 255 | Compare the object id with 255. | |
| 40064 | SCF | If the object matches, return with carry set: it is carried. | ||
| 40065 | RET Z | Return if no object was named. | ||
| 40066 | PUSH IX | Call Condition_TestTheObjectIsHeld to see whether the object's location is this character. | ||
| 40068 | CALL Condition_TestTheObjectIsHeld | |||
| 40071 | POP IX | Restore IX from the stack. | ||
| 40073 | RET | Return. | ||
|
View the equivalent code in;
|
||||
| Prev: 40001 | Up: Map | Next: 40074 |