![]() |
Routines |
| Prev: 9670 | Up: Map | Next: 96E7 |
|
Land the ship when the coordinates are set.
|
||||
| ActionLand | 96BE | CALL Parser_MatchOrRephrase | Call Parser_MatchOrRephrase to match or rephrase. | |
| 96C1 | RET C | Return if the command was rejected. | ||
| 96C2 | JR ActionLand_Step1 | Continue at ActionLand_Step1 to check where the ship can land. | ||
| ActionLand_Loop1 | 96C4 | LD HL,$645B | Print "You can't." and start a new line. | |
| ActionLand_Loop2 | 96C7 | CALL PrintStringAndANewline | ||
| 96CA | RET | Return. | ||
| ActionLand_Step1 | 96CB | LD HL,$8AC5 | Jump to ActionLand_Step3 unless the command matches the phrase at 8AC5. | |
| 96CE | CALL Parser_AdvanceToSeparator | |||
| 96D1 | JR NZ,ActionLand_Step3 | |||
| 96D3 | LD A,($6223) | Fetch the current room. | ||
| 96D6 | CP $03 | The ship is already in In the Galaxy at rest,on a landing pad., ready to land. | ||
| 96D8 | JR Z,ActionLand_Step2 | |||
| 96DA | LD HL,$774B | Print "The ship is not in orbit." and start a new line. | ||
| 96DD | JR ActionLand_Loop2 | |||
| ActionLand_Step2 | 96DF | LD A,$04 | Move the player to In the Galaxy at rest,on a landing pad. (04). | |
| 96E1 | CALL MovePlayerToRoom | |||
| 96E4 | RET | Return. | ||
| ActionLand_Step3 | 96E5 | JR ActionLand_Loop1 | Continue at ActionLand_Loop1 to say the player can't. | |
| Prev: 9670 | Up: Map | Next: 96E7 |