![]()  | 
Routines | 
| Prev: AED1 | Up: Map | Next: AEE0 | 
| 
 
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, 00 for when the item is disabled or 01 for the players inventory.
 
 | 
||||||||||||
| CheckObjectInInventory | AEDA | CALL ItemLocator | Call ItemLocator. | |||||||||
| AEDD | CP $01 | Compare A with 01 (inventory). | ||||||||||
| AEDF | RET | Return. | ||||||||||
| 
 
View the equivalent code in The Jewels Of Babylon.
 
 | 
||||||||||||
| Prev: AED1 | Up: Map | Next: AEE0 |