Prev: 36101 Up: Map Next: 36187
36150: CrewAction3_RemoveGrille
Used by the routines at 33862 and 36579.
Dispatched via CrewActionDispatch entry 3. Fires when a crew member's timed "RmveGrille" job completes (queued by the AI at $90EE or by the action-menu Special handler at $8BD3): clears the actor's room's byte in RoomGrilleState, queues a sound effect, and rebuilds the room view if that room is on screen.
36150 LD A,1 queue a sound effect for PlayMusic
36152 LD (33705),A
36155 LD A,(IX+1) E = actor's current room
36158 AND 63 (mask off the in-ducts flag, bit 6)
36160 LD HL,30076
36163 LD E,A
36164 LD D,0
36166 ADD HL,DE
36167 LD (HL),0 RoomGrilleState[room] = 0: grille removed
36169 LD A,(31252) room mode 1 (normal room view)?
36172 CP 1
36174 RET NZ
36175 LD A,(31242) is the actor's room the one on screen?
36178 AND 63
36180 CP E
36181 JP Z,32719 yes: full room-view rebuild
36184 JP 36793
Prev: 36101 Up: Map Next: 36187