Prev: 37207 Up: Map Next: 37272
37228: Take: Ship
Used by the routine at Validate_Take_PairOfGloves.
Was the player trying to take the ship?
Validate_Take_Ship 37228 LD HL,35672 Jump to Take_Invalid unless the command matches the phrase at 35672.
37231 CALL Parser_AdvanceToSeparator
37234 JR NZ,Take_Invalid
37236 LD A,(25123) Fetch the current room.
37239 CP 4 The ship can be claimed only from room 4: " In the Galaxy at rest".
37241 JP NZ,Take_YouCant
37244 LD A,64 Jump back to Take_YouCant when "The ship is ready to take off." is not here or being carried.
37246 CALL IsObjectInCurrentRoom
37249 JP NZ,Take_YouCant
37252 LD A,14 Jump to Validate_Take_Ship_Complete when "The airlock is closed." is here or being carried.
37254 CALL IsObjectInCurrentRoom
37257 JR Z,Validate_Take_Ship_Complete
Print "Not with an open airlock!".
37259 LD HL,33996 HL=Messaging_NotWithAnOpenAirlock.
37262 JP TakeItem_PrintAndReturn Jump to TakeItem_PrintAndReturn.
The ship is ready, so the game can end.
Validate_Take_Ship_Complete 37265 POP HL Restore HL from the stack.
37266 JP GameComplete Jump to GameComplete.
Nothing else is valid.
Take_Invalid 37269 JP Take_YouCant Jump to Take_YouCant.
Prev: 37207 Up: Map Next: 37272