![]() |
Routines |
| Prev: 63116 | Up: Map | Next: 63389 |
|
Go into the farmhouse, the hut, the forge, the hovel or the boat.
|
||||
| Action_Enter | 63259 | CALL Parser_ValidateDirectObject | Call Parser_ValidateDirectObject. | |
| 63262 | RET C | Return if the direct object is malformed. | ||
|
Was the player trying to enter ... the farmhouse?
|
||||
| 63263 | LD HL,59628 | Call Parser_AdvanceToSeparator with 59628. | ||
| 63266 | CALL Parser_AdvanceToSeparator | |||
| 63269 | JR NZ,Enter_CheckHut | Jump to Enter_CheckHut if the token isn't for the farmhouse. | ||
|
The player is attempting to enter the farmhouse.
|
||||
| 63271 | LD A,(47771) | Jump to Response_YoureInsideAlready if *CurrentRoom isn't room 3: " At a large Farmhouse". | ||
| 63274 | CP 3 | |||
| 63276 | JP NZ,Response_YoureInsideAlready | |||
| 63279 | LD A,53 | Jump to Response_YouCant_GameLoop if "An open door" isn't in the current room. | ||
| 63281 | CALL ValidateItemPresent | |||
| 63284 | JP NZ,Response_YouCant_GameLoop | |||
| 63287 | LD A,2 | Call Handler_InjuryCheck with room 2: " Inside the Farmhouse". | ||
| 63289 | CALL Handler_InjuryCheck | |||
| 63292 | RET | Return. | ||
|
Was the player trying to enter ... the hut?
|
||||
| Enter_CheckHut | 63293 | LD HL,59630 | Call Parser_AdvanceToSeparator with 59630. | |
| 63296 | CALL Parser_AdvanceToSeparator | |||
| 63299 | JR NZ,Enter_CheckHovel | Jump to Enter_CheckHovel if the token isn't for the hut. | ||
|
The player is attempting to enter the hut.
|
||||
| 63301 | LD A,(47771) | Jump to Response_YoureInsideAlready if *CurrentRoom isn't room 15: " At the Woodman's Hut". | ||
| 63304 | CP 15 | |||
| 63306 | JP NZ,Response_YoureInsideAlready | |||
| 63309 | LD A,57 | Jump to Response_YouCant_GameLoop if "An open door" isn't in the current room. | ||
| 63311 | CALL ValidateItemPresent | |||
| 63314 | JP NZ,Response_YouCant_GameLoop | |||
| 63317 | LD A,16 | Call Handler_InjuryCheck with room 16: " Inside the Woodman's Hut". | ||
| 63319 | CALL Handler_InjuryCheck | |||
| 63322 | RET | Return. | ||
|
Was the player trying to enter ... the hovel?
|
||||
| Enter_CheckHovel | 63323 | LD HL,59632 | Call Parser_AdvanceToSeparator with 59632. | |
| 63326 | CALL Parser_AdvanceToSeparator | |||
| 63329 | JR NZ,Enter_CheckForge | Jump to Enter_CheckForge if the token isn't for the hovel. | ||
|
The player is attempting to enter the hovel.
|
||||
| 63331 | LD A,(47771) | Jump to Response_YoureInsideAlready if *CurrentRoom isn't room 60: " At the Witch's Hovel". | ||
| 63334 | CP 60 | |||
| 63336 | JP NZ,Response_YoureInsideAlready | |||
| 63339 | LD A,61 | Jump to Response_YouCant_GameLoop if "An open door" isn't in the current room. | ||
| 63341 | CALL ValidateItemPresent | |||
| 63344 | JP NZ,Response_YouCant_GameLoop | |||
| 63347 | LD A,61 | Call Handler_InjuryCheck with room 61: " Inside the Witch's Hovel". | ||
| 63349 | CALL Handler_InjuryCheck | |||
| 63352 | RET | Return. | ||
|
Was the player trying to enter ... the forge?
|
||||
| Enter_CheckForge | 63353 | LD HL,59634 | Call Parser_AdvanceToSeparator with 59634. | |
| 63356 | CALL Parser_AdvanceToSeparator | |||
| 63359 | JR NZ,Enter_CheckBoat | Jump to Enter_CheckBoat if the token isn't for the forge. | ||
|
The player is attempting to enter the forge.
|
||||
| 63361 | LD A,(47771) | Jump to Response_YoureInsideAlready if *CurrentRoom isn't room 66: " At the Blacksmith's Forge". | ||
| 63364 | CP 66 | |||
| 63366 | JP NZ,Response_YoureInsideAlready | |||
| 63369 | LD A,67 | Call Handler_InjuryCheck with room 67: " Inside the Forge". | ||
| 63371 | CALL Handler_InjuryCheck | |||
| 63374 | RET | Return. | ||
|
Was the player trying to enter ... the boat?
|
||||
| Enter_CheckBoat | 63375 | LD HL,59636 | Call Parser_AdvanceToSeparator with 59636. | |
| 63378 | CALL Parser_AdvanceToSeparator | |||
| 63381 | JR NZ,Enter_YouCant | Jump to Enter_YouCant if the token isn't for the boat. | ||
|
Either way, it's a bad outcome.
|
||||
| 63383 | JP Response_PleaseRephraseThat_EnterTheBoat | Jump to Response_PleaseRephraseThat_EnterTheBoat if the token is for the boat. | ||
|
Nothing else is able to be entered, so provide a generic response.
|
||||
| Enter_YouCant | 63386 | JP Response_YouCant_GameLoop | Jump to Response_YouCant_GameLoop. | |
|
View the equivalent code in;
|
||||
| Prev: 63116 | Up: Map | Next: 63389 |