1981 C really sucked.
[rogue-pphs.git] / romance.c
index bafafa7..3c5c2e1 100644 (file)
--- 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');
+    }
 }