as per Johanna's comments.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8696 c06c8d41-db1a-0410-9941-cceddc491573
NYX2IVOQDWMOUZJL4TMS34Z5O6ZYAHPOJ7PP3222V7MKHR7BBLNQC
W7NPLUDMUCJ3UGIQTUTDAHXM2HPDC6VTUUWZLO3VR5HDC4YB5BCAC
TGJZXTUIAKCFZQJ54ZQEBGFBVZSJCAX6AWDRSH3TP7UJRLGUM5SAC
J6APXOT4QOGQFONWB7G546VTVF6QG42HVOROMHF7YBDJPR4K26OAC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
monster->seen_context = "just shouted";
// If the player can't see us it doesn't matter. if (!(monster->flags & MF_WAS_IN_VIEW))
// If the player can't see us it doesn't matter.
if (!(monster->flags & MF_WAS_IN_VIEW))
// Did we just shout? if (monster->seen_context != "just shouted")
// Did we just shout?
if (monster->seen_context != "just shouted")
// Only monsters seeking the player will shout. if (!mons_is_seeking(monster) || monster->foe != MHITYOU)
// Only monsters seeking the player will shout.
if (!mons_is_seeking(monster) || monster->foe != MHITYOU)
monster->seen_context.clear(); // If the player can't see us it doesn't matter. if (!(monster->flags & MF_WAS_IN_VIEW))
monster->seen_context.clear();
int matches = 0;
mmov = delta;
if (one_chance_in(++matches)) mmov = delta;
if (one_chance_in(++matches))