X-Git-Url: https://git.yukkurigames.com/?p=rogue-pphs.git;a=blobdiff_plain;f=romance.c;h=96e98091ec91fcaa905b9ac3245b8d34a8d9a3e6;hp=e2bb9b3091f9b870b49900217dd06d847e4c006f;hb=2b01379a8064b573eea4362c9b8d030ab27c6043;hpb=7b22b2ac9aec39574258cabfc45fb426ff7254f4 diff --git a/romance.c b/romance.c index e2bb9b3..96e9809 100644 --- a/romance.c +++ b/romance.c @@ -111,12 +111,13 @@ int ydelta, xdelta; return; liking = count_bits_set( - hash((op->o_type << 4) ^ op->o_which) & tp->t_stats.s_ont) - 1; - if (liking == 0 + hash(op->o_type * op->o_which) & tp->t_stats.s_ont) - 1; + if ((liking == 0 || liking == -1) || liking > 0 && tp->t_stats.s_int <= MAYBE_INTERESTED) { const char *msgs[] = { "The %s ignores %s", + "The %s doesn't care for %s", "The %s isn't interested in %s", }; msg(rndchoice(msgs), killname(tp->t_type), inv_name(op, TRUE)); @@ -126,12 +127,12 @@ int ydelta, xdelta; { const char *msgs[] = { "The %s accepts %s.", - "The %s takes %s.", + "The %s smiles and takes %s.", }; msg(rndchoice(msgs), killname(tp->t_type), inv_name(op, TRUE)); tp->t_stats.s_int += liking * 10; } - else if (liking < 0) + else { const char *msgs[] = { "The %s throws away %s.", @@ -187,7 +188,7 @@ embrace() msg("You wrap your arms around yourself."); return; } - else if (tp->t_stats.s_int < INTERESTED) + else if (tp->t_stats.s_int < READY) { if (tp->t_stats.s_int > 0) tp->t_stats.s_int /= 2;