36006: Action Putdown
Action_Putdown |
36006 |
CALL Action_Look_1 |
|
36009 |
CALL 40260 |
|
36012 |
LD IX,(46856) |
|
36016 |
LD A,(IX+1) |
|
36019 |
CP 18 |
|
36021 |
JR NZ,Action_Putdown_0 |
|
36023 |
LD IX,50022 |
Action_Putdown_0 |
36027 |
PUSH IX |
|
36029 |
LD IX,(46860) |
|
36033 |
LD A,(IX+1) |
|
36036 |
POP IX |
|
36038 |
LD (IX+1),A |
|
36041 |
BIT 1,(IX+7) |
|
36045 |
RET Z |
|
36046 |
LD (IX+16),0 |
|
36050 |
LD HL,45378 |
|
36053 |
LD DE,8 |
|
36056 |
ADD IX,DE |
|
36058 |
PUSH IX |
|
36060 |
CALL PrintMsg |
|
36063 |
RET |
|
36064 |
LD A,(46824) |
|
36067 |
LD HL,46825 |
|
36070 |
CALL 40062 |
|
36073 |
LD HL,44981 |
|
36076 |
JP NZ,PrintMsg |
|
36079 |
JR Action_Pickup_0 |
Action_Putdown_1 |
36081 |
LD IX,(46856) |
|
36085 |
LD A,(46824) |
|
36088 |
CALL 40173 |
|
36091 |
ADD A,(IX+3) |
|
36094 |
JR NC,Action_Putdown_2 |
|
36096 |
LD A,255 |
Action_Putdown_2 |
36098 |
LD B,A |
|
36099 |
LD IY,(46860) |
|
36103 |
LD A,(IY+3) |
|
36106 |
SUB B |
|
36107 |
LD HL,44548 |
|
36110 |
JR C,Action_Putdown_3 |
|
36112 |
PUSH AF |
|
36113 |
LD A,(46826) |
|
36116 |
CALL 40173 |
|
36119 |
LD B,A |
|
36120 |
POP AF |
|
36121 |
SUB B |
|
36122 |
JP P,Action_Putdown_4 |
|
36125 |
LD HL,44556 |
Action_Putdown_3 |
36128 |
EX (SP),HL |
|
36129 |
POP HL |
|
36130 |
JP PrintMsg |
Action_Putdown_4 |
36133 |
CALL Action_Attack_9 |
|
36136 |
JR NZ,Action_Putdown_5 |
|
36138 |
BIT 1,(IX+7) |
|
36142 |
RET Z |
Action_Putdown_5 |
36143 |
POP HL |
|
36144 |
JP 40822 |