X-Git-Url: https://git.yukkurigames.com/?p=rogue-pphs.git;a=blobdiff_plain;f=fight.c;h=3b604bf3bc7b213f656568421324b0659bc0cb00;hp=516d8b7e3b82dd741bc0cdd9877b8c1ab723c833;hb=2b01379a8064b573eea4362c9b8d030ab27c6043;hpb=a868f7779583a00316cb076fc4d62ccfb1488434 diff --git a/fight.c b/fight.c index 516d8b7..3b604bf 100644 --- a/fight.c +++ b/fight.c @@ -3,7 +3,7 @@ * * @(#)fight.c 3.28 (Berkeley) 6/15/81 * - * Rogue: Exploring the Dungeons of Doom + * Rogue: Exploring the Cavern of Cuties * Copyright (C) 1980, 1981 Michael Toy, Ken Arnold and Glenn Wichman * All rights reserved. * @@ -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 > READY) + { + 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 (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.