![]() |
Routines |
| Prev: C213 | Up: Map | Next: C26F |
|
Used by the routines at Parser_ResolvePhrase, Parser_SkipToken, Events_WoodNymph, Events_Spider, Events_SlimeMonster, Events_Demons, Events_Wizard, Handler_InjuryCheck, Action_Help, Action_Examine, Action_ExamineItem, Handler_NotCarryingIt, Action_Climb, Action_Give, Handler_FightOpponent, Handler_KillTheWarrior, Handler_KillTheWitch, Handler_KillTheBlacksmith, Handler_KissThePrincess, Handler_OpenTheChest, Handler_CloseTheChest, Action_Enter, Action_Touch, Action_Tie, Action_Swearing and Action_Unlock.
Set the zero flag when this object is in this room or in the scenic list.
|
||||||||||||
| IsObjectInCurrentRoom | C24F | PUSH HL | Jump to IsObjectInCurrentRoom_Next when this is a scenic entry rather than an object. | |||||||||
| C250 | PUSH DE | |||||||||||
| C251 | LD E,A | |||||||||||
| C252 | LD D,$00 | |||||||||||
| C254 | BIT 7,E | |||||||||||
| C256 | JR NZ,IsObjectInCurrentRoom_Next | |||||||||||
| C258 | LD HL,$B9C8 | Use the object locations and join the room test. | ||||||||||
| C25B | JR IsObjectInCurrentRoom_Compare | |||||||||||
| IsObjectInCurrentRoom_Next | C25D | RES 7,E | Clear the scenic marker and use the scenic list. | |||||||||
| C25F | LD HL,$BA48 | |||||||||||
| IsObjectInCurrentRoom_Compare | C262 | ADD HL,DE | Jump to IsObjectInCurrentRoom_Found when the object is in the current room. | |||||||||
| C263 | LD A,($BA9B) | |||||||||||
| C266 | CP (HL) | |||||||||||
| C267 | JR Z,IsObjectInCurrentRoom_Found | |||||||||||
| C269 | LD A,$01 | Treat a carried object as present. | ||||||||||
| C26B | CP (HL) | |||||||||||
| IsObjectInCurrentRoom_Found | C26C | POP DE | Restore DE and HL from the stack. | |||||||||
| C26D | POP HL | |||||||||||
| C26E | RET | Return. | ||||||||||
|
View the equivalent code in;
|
||||||||||||
| Prev: C213 | Up: Map | Next: C26F |