![]() |
Routines |
| Prev: FB63 | Up: Map | Next: FB8F |
|
Carry out the "Pour" command.
|
||||
| Action_Pour | FB67 | CALL ParserValidateNoDirectObject | Call ParserValidateNoDirectObject to check that the command has no object, and return if it does not. | |
| FB6A | RET C | |||
| FB6B | LD A,($AECD) | Read the current room into A. | ||
| FB6E | LD HL,$FB8F | See whether this room is one Pour carries to the cottage. | ||
| FB71 | LD BC,$0003 | |||
| FB74 | CPIR | |||
| FB76 | JR NZ,Action_Pour_Next | Try to return when this room is not one of the three. | ||
| FB78 | LD ($AE79),A | Store A in *Room_PourReturn. | ||
| FB7B | LD A,$02 | Take the player inside the ruined cottage. | ||
| FB7D | JR Action_Pour_ChangeRoom | |||
| Action_Pour_Next | FB7F | CP $02 | Branch to Messaging_NothingHappens_Reply when the exit is east. | |
| FB81 | JP NZ,Messaging_NothingHappens_Reply | |||
| FB84 | LD A,($AE79) | Read *Room_PourReturn into A. | ||
| FB87 | AND A | Do nothing when Pour has nowhere to return. | ||
| FB88 | JP Z,Messaging_NothingHappens_Reply | |||
| Action_Pour_ChangeRoom | FB8B | CALL Handler_ChangeRoom | Call Handler_ChangeRoom to change room. | |
| FB8E | RET | Return. | ||
| Prev: FB63 | Up: Map | Next: FB8F |