Prev: 38529 Up: Map Next: 38575
38546: FightFire — action on the fire label (cell value 76)
Needs a Fire Extng (item 8-11) in the front hand; a charged one delivers a squirt towards putting the engine-room fire out (FireDamageTick decides how many are needed).
38546 LD A,(31248) front-hand item an extinguisher
38549 CP 8 (8-11)?
38551 RET C no: nothing to fight with
38552 CP 12
38554 RET NC
38555 LD E,A
38556 LD D,0
38558 LD HL,33746 HL -> that extinguisher's charges
38561 ADD HL,DE
38562 XOR A any CO2 left?
38563 CP (HL)
38564 JR NZ,38575 yes: squirt
38566 LD HL,(31241) empty: L = the viewed crew member,
38569 LD A,6 msg #6 "{actor}'s extinguisher is empty"
38571 CALL 37176
38574 RET
Prev: 38529 Up: Map Next: 38575