X-Git-Url: https://git.yukkurigames.com/?p=rogue-pphs.git;a=blobdiff_plain;f=fight.c;h=8e5b2d2982874c000a51153762e5eba1af2eac89;hp=516d8b7e3b82dd741bc0cdd9877b8c1ab723c833;hb=81fe22799e2080f165af7929627d664658b944bb;hpb=a868f7779583a00316cb076fc4d62ccfb1488434 diff --git a/fight.c b/fight.c index 516d8b7..8e5b2d2 100644 --- a/fight.c +++ b/fight.c @@ -61,7 +61,7 @@ bool thrown; if (did_hit) { register char *mname; - + tp->t_stats.s_int = 0; did_hit = FALSE; if (on(player, ISBLIND)) mname = "it"; @@ -104,6 +104,32 @@ register struct thing *mp; { register char *mname; + // I'm not going to wait for you forever. + if (rnd(5) == 0) + mp->t_stats.s_int--; + + if (mp->t_stats.s_int > INTERESTED) + { + const char *msgs[] = { + "The %s smiles at you.", + "The %s moves in a little closer.", + "The %s bites eir lip.", + "The %s looks at you expectantly.", + }; + msg(rndchoice(msgs), monsters[mp->t_type-'A'].m_name); + return; + } + else if (2 * mp->t_stats.s_int > rnd(INTERESTED)) + { + const char *msgs[] = { + "The %s stares at you.", + "The %s hesitates.", + "The %s takes a step towards you, then back.", + }; + msg(rndchoice(msgs), monsters[mp->t_type-'A'].m_name); + return; + } + /* * Since this is an attack, stop running and any healing that was * going on at the time.