![]()  | 
Routines | 
| Prev: 44753 | Up: Map | Next: 44768 | 
| 
 
Used by the routines at Process_PreEnterCrystalCavern, Process_PreEnterCauseway, Process_EnterSmallClearing, Process_EnterSwamp_02, Process_EnterSwamp_01, Process_EnterSwamp_03, Process_EnterSwamp_04, Process_EnterSwamp_05, Check_PlayerInventory, Handler_DropItem, IsPlayerCarryingItem, IsPlayerCarryingSword, Process_KillBear and Process_LoseSalt.
 
Checks if a given item is in the players inventory or not.
 
 
  | 
||||||||||||
| 
 
The ItemLocator routine returns with A containing the room ID of the requested object, 0 for when the item is disabled or 1 for the players inventory.
 
 | 
||||||||||||
| CheckObjectInInventory | 44762 | CALL ItemLocator | Call ItemLocator. | |||||||||
| 44765 | CP 1 | Compare A with 1 (inventory). | ||||||||||
| 44767 | RET | Return. | ||||||||||
| 
 
View the equivalent code in The Jewels Of Babylon.
 
 | 
||||||||||||
| Prev: 44753 | Up: Map | Next: 44768 |