Routines
Prev:
EDB8
Up:
Map
Next:
EDDB
EDD0: Is Player Carrying Item?
Used by the routines at
Process_ExamineUrn
,
Process_ExamineHelmet
,
Process_ExamineSword
,
Process_ExamineAmulet
,
Process_ExamineStaff
,
Process_ExamineTorc
,
Process_DropStaff
,
Process_ThrowMeatToBear
,
Process_ThrowMeatToWolves
,
Process_GiveAcornsToRaven
,
Process_GiveSaltToWarrior
,
Process_GiveSaltToGuard
,
Process_BuyMeatFromTraderWithIron
,
Process_GiveIronToTrader
,
Process_ThrowFoodToBear
,
Process_ThrowFoodToWolves
,
Process_WearTorc
,
Process_WearHelmet
,
Process_WearAmulet
,
Process_DropAmulet
,
Process_WearShield
,
Process_WearCloak
,
Process_EatFood
,
Process_EatMeat
,
Process_PlaceLadderAgainstPlatform
,
Process_PlaceSwordOnSlab
,
IsPlayerCarryingSword
and
Process_KillHareWithSword
.
Input
A
Item ID
Output
F
Z flag set if the item is in the players inventory
IsPlayerCarryingItem
EDD0
CALL
CheckObjectInInventory
Call
CheckObjectInInventory
.
EDD3
RET Z
Return if the item is in the players inventory.
EDD4
POP HL
Discard the return address on the stack.
Print "You're not carrying ".
EDD5
LD HL,$AA9B
HL
=
Messaging_YoureNotCarrying
.
EDD8
JP
PrintStringAndItThemHandler
Jump to
PrintStringAndItThemHandler
.
Prev:
EDB8
Up:
Map
Next:
EDDB