8997: Handle being caught by the yoeman for theft.
Hero_Arrest |
8997 |
LD A,(Hero_ArrestCount) |
|
899A |
CP $01 |
|
899C |
JR NZ,Hero_Arrest_1 |
|
899E |
CALL Message_DisplayAt |
|
89A1 |
DEFM "halt for the yeoman!" |
|
89B5 |
DEFB $5E |
|
89B6 |
LD HL,Hero_Frame |
|
89B9 |
LD (HL),$12 |
|
89BB |
LD A,(Camera_Compass) |
|
89BE |
BIT 1,A |
|
89C0 |
JR Z,Hero_Arrest_0 |
|
89C2 |
INC (HL) |
Hero_Arrest_0 |
89C3 |
LD A,$01 |
Hero_Arrest_1 |
89C5 |
INC A |
|
89C6 |
LD (Hero_ArrestCount),A |
|
89C9 |
CP $0F |
|
89CB |
JP C,Game_Main_29 |
|
89CE |
CALL Message_DisplayAt |
|
89D1 |
DEFM "thievery is costly.." |
|
89E5 |
DEFB $5E |
|
89E6 |
XOR A |
|
89E7 |
LD (Hero_ArrestCount),A |
|
89EA |
CALL Block_ClearMem |
|
89ED |
DEFW Inv_Pocket1 |
|
89EF |
DEFB $03 |
|
89F0 |
CALL Block_ClearMem |
|
89F3 |
DEFW IridiValue |
|
89F5 |
DEFB $04 |
|
89F6 |
JP Offer_Handle_1 |