A934: Check to see if thief can steal from player.
Thief_TryToSteal |
A934 |
LD A,(IX+$17) |
|
A937 |
CP $01 |
|
A939 |
JR Z,Thief_TryToSteal_0 |
|
A93B |
RET C |
|
A93C |
DEC (IX+$17) |
|
A93F |
RET |
Thief_TryToSteal_0 |
A940 |
LD A,(TempBl) |
|
A943 |
CP $02 |
|
A945 |
RET NC |
|
A946 |
PUSH IX |
|
A948 |
PUSH DE |
|
A949 |
LD (IX+$17),$05 |
|
A94D |
LD A,(Inv_Select) |
|
A950 |
AND A |
|
A951 |
JR NZ,Thief_TryToSteal_3 |
|
A953 |
CALL Block_ClearMem |
|
A956 |
DEFW IridiValue |
|
A958 |
DEFB $04 |
Thief_TryToSteal_1 |
A959 |
CALL Message_Display |
Msg_YourPardon |
A95C |
DEFM "your pardon" |
|
A967 |
DEFB $5E |
|
A968 |
CALL Inv_Update |
Thief_TryToSteal_2 |
A96B |
POP DE |
|
A96C |
POP IX |
|
A96E |
RET |
Thief_TryToSteal_3 |
A96F |
LD L,A |
|
A970 |
LD H,$00 |
|
A972 |
LD BC,_b14e |
|
A975 |
ADD HL,BC |
|
A976 |
PUSH HL |
|
A977 |
LD A,(HL) |
|
A978 |
AND $7F |
|
A97A |
LD HL,Obj_NotStealIndicies |
|
A97D |
LD BC,$0007 |
|
A980 |
CPIR |
|
A982 |
POP HL |
|
A983 |
JR Z,Thief_TryToSteal_2 |
|
A985 |
LD (HL),$00 |
|
A987 |
LD A,$01 |
|
A989 |
LD (Inv_Select),A |
|
A98C |
JR Thief_TryToSteal_1 |