Prev: 41354 Up: Map Next: 41412
41381: Update state of skeleton (level 4) and store current position in script data
Used by the routine at 41211.
41381 LD IX,45404 Load IX with address of complex state data for skeleton (level 4)
41385 BIT 2,(IX+9) If skeleton's removed-from-game flag is set...
41389 RET NZ ...then return
41390 BIT 1,(IX+9) If skeleton's is-dying flag is set...
41394 JR NZ,41424 ...then update state of skeleton (dying) and return
41396 LD HL,(41230) Load current position in skeleton's script data from 41230 into HL...
41399 LD (34277),HL ...and store at 34277 as position in script currently running
41402 CALL 41498 Kill Berk if he collides with skeleton
41405 LD HL,(34277) Store address (current position in script data) stored at 34277...
41408 LD (41230),HL ...at 41230 as current position in skeleton's script data
41411 RET Return
Prev: 41354 Up: Map Next: 41412