![]() |
Routines |
| Prev: 9157 | Up: Map | Next: 9198 |
|
Used by the routine at Validate_Take_PairOfGloves.
Was the player trying to take the ship?
|
||||
| Validate_Take_Ship | 916C | LD HL,$8B58 | Jump to Take_Invalid unless the command matches the phrase at 8B58. | |
| 916F | CALL Parser_AdvanceToSeparator | |||
| 9172 | JR NZ,Take_Invalid | |||
| 9174 | LD A,($6223) | Fetch the current room. | ||
| 9177 | CP $04 | The ship can be claimed only from room 04: " In the Galaxy at rest". | ||
| 9179 | JP NZ,Take_YouCant | |||
| 917C | LD A,$40 | Jump back to Take_YouCant when "The ship is ready to take off." is not here or being carried. | ||
| 917E | CALL IsObjectInCurrentRoom | |||
| 9181 | JP NZ,Take_YouCant | |||
| 9184 | LD A,$0E | Jump to Validate_Take_Ship_Complete when "The airlock is closed." is here or being carried. | ||
| 9186 | CALL IsObjectInCurrentRoom | |||
| 9189 | JR Z,Validate_Take_Ship_Complete | |||
|
Print "Not with an open airlock!".
|
||||
| 918B | LD HL,$84CC | HL=Messaging_NotWithAnOpenAirlock. | ||
| 918E | JP TakeItem_PrintAndReturn | Jump to TakeItem_PrintAndReturn. | ||
|
The ship is ready, so the game can end.
|
||||
| Validate_Take_Ship_Complete | 9191 | POP HL | Restore HL from the stack. | |
| 9192 | JP GameComplete | Jump to GameComplete. | ||
|
Nothing else is valid.
|
||||
| Take_Invalid | 9195 | JP Take_YouCant | Jump to Take_YouCant. | |
| Prev: 9157 | Up: Map | Next: 9198 |