| Alien (BUGFIX 1.7) | Routines |
| Prev: 44924 | Up: Map | Next: 44986 |
|
Entered from DestroyFrontItem with HL -> the front-hand item's ItemLocations entry and B = the back-hand item: wipe the item out of existence and promote the back-hand item to the front hand — with a full hand-row redraw (UpdateHandRows) when the owner is the crew member on screen, marker/courage bookkeeping only (GetItemLocation) when he is not.
|
||||
| 44938 | LD A,255 | ItemLocations[front item] = 255: | ||
| 44940 | LD (HL),A | the item ceases to exist | ||
| 44941 | LD A,(31252) | room view on screen (mode 1)? | ||
| 44944 | CP 1 | |||
| 44946 | JR NZ,44964 | |||
| 44948 | PUSH HL | |||
| 44949 | LD A,(33700) | is the owner the viewed crew member? | ||
| 44952 | LD HL,31241 | |||
| 44955 | CP (HL) | |||
| 44956 | POP HL | |||
| 44957 | JR NZ,44964 | |||
| 44959 | LD A,255 | yes: redraw the hand rows too | ||
| 44961 | JP 37944 | |||
| 44964 | LD A,255 | off screen: anything in the back hand? | ||
| 44966 | CP B | |||
| 44967 | LD A,(31249) | |||
| 44970 | JP NZ,37980 | yes: promote it to the front hand | ||
| 44973 | RET | |||
|
This entry point is used by the routine at 37944.
|
||||
| 44974 | CALL 31634 | draw the (blank) front row, | ||
| 44977 | LD A,255 | blank the "Leave Item" row | ||
| 44979 | LD (29641),A | (cell 11 — nothing left to leave) | ||
| 44982 | CALL 32816 | and repaint the menu strip | ||
| 44985 | RET | |||
| Prev: 44924 | Up: Map | Next: 44986 |