X-Git-Url: https://git.yukkurigames.com/?p=rogue-pphs.git;a=blobdiff_plain;f=fight.c;h=cab7ef7dd3d73e8654673c704c30db50e5a34a66;hp=516d8b7e3b82dd741bc0cdd9877b8c1ab723c833;hb=e4a106dfa01b6c98a80e32a2dcd2ec501adbf952;hpb=4df411e3cd3cc20be5c9fc896da749be643783d1 diff --git a/fight.c b/fight.c index 516d8b7..cab7ef7 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 its 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.