… | |
… | |
532 | sdir = ndir; |
532 | sdir = ndir; |
533 | |
533 | |
534 | // perturbing the path might let the monster lose track, |
534 | // perturbing the path might let the monster lose track, |
535 | // but it will also widen the actual path, spreading information |
535 | // but it will also widen the actual path, spreading information |
536 | if (!rndm (20)) // even smarter, deviate and spread? |
536 | if (!rndm (20)) // even smarter, deviate and spread? |
537 | sdir += absdir (1 - rndm (2) * 2); |
537 | sdir = absdir (sdir + 1 - rndm (2) * 2); |
538 | } |
538 | } |
539 | } |
539 | } |
540 | } |
540 | } |
541 | |
541 | |
542 | if (sdir) |
542 | if (sdir) |