![]() |
Routines |
| Prev: B3C4 | Up: Map | Next: B3F6 |
|
This handles the hero donning the guard's uniform.
|
||||
| action_uniform | B3E1 | LD HL,$8015 | Point HL at the hero's vischar sprite set pointer | |
| B3E4 | LD DE,$CEA6 | Point DE at the guard sprite set | ||
|
Bail out if the hero's already in the uniform
|
||||
| B3E7 | LD A,(HL) | Cheap equality test | ||
| B3E8 | CP E | |||
| B3E9 | RET Z | |||
|
Can't don the uniform when in a tunnel
|
||||
| B3EA | LD A,($68A0) | If the global current room index is room_29_SECOND_TUNNEL_START or above... we're in the tunnels, so bail out | ||
| B3ED | CP $1D | |||
| B3EF | RET NC | |||
|
Otherwise the uniform can be worn
|
||||
| B3F0 | LD (HL),E | Set the hero's sprite set to sprite_guard | ||
| B3F1 | INC L | |||
| B3F2 | LD (HL),D | |||
| B3F3 | JP increase_morale_by_10_score_by_50 | Increase morale by 10, score by 50 and exit via | ||
| Prev: B3C4 | Up: Map | Next: B3F6 |