X-Git-Url: https://git.yukkurigames.com/?p=rogue-pphs.git;a=blobdiff_plain;f=romance.c;h=3c5c2e1b79724c5838d49652bfc3739cfee55f2e;hp=bafafa765e68ae539032d0d60d71a71e5a3e243b;hb=93bb426202ba92c389aae65c0c8ab6eb3d325eae;hpb=4df411e3cd3cc20be5c9fc896da749be643783d1 diff --git a/romance.c b/romance.c index bafafa7..3c5c2e1 100644 --- a/romance.c +++ b/romance.c @@ -112,7 +112,8 @@ int ydelta, xdelta; liking = count_bits_set( hash((op->o_type << 4) ^ op->o_which) & tp->t_stats.s_ont) - 1; - if (liking == 0 || tp->t_stats.s_int <= 3) + if (liking == 0 + || liking > 0 && tp->t_stats.s_int <= MAYBE_INTERESTED) { const char *msgs[] = { "The %s ignores %s", @@ -165,4 +166,14 @@ int ydelta, xdelta; embrace() { + // Figure out if the player is near something w/ enough interest. + // Otherwise, hug something random, and make things worse. + if (amulet) + { + total_winner('K'); + } + else + { + mostly_winner('K'); + } }