Use ^ rather than & so the player can't be generated 'too boring' for any monster...
authorJoe Wreschnig <joe.wreschnig@gmail.com>
Sat, 6 Apr 2013 08:53:18 +0000 (10:53 +0200)
committerJoe Wreschnig <joe.wreschnig@gmail.com>
Sat, 6 Apr 2013 08:53:18 +0000 (10:53 +0200)
romance.c

index bff5588b35342186141c7842794ea77b598b36a8..1a73fbe5e478efe3154d6337b5f3a1b973b00913 100644 (file)
--- a/romance.c
+++ b/romance.c
@@ -53,7 +53,7 @@ int ydelta, xdelta;
     else
     {
         register struct thing *tp = (struct thing *) ldata(mob);
-        int attr = count_bits_set(tp->t_stats.s_ont & player.t_stats.s_ont);
+        int attr = count_bits_set(tp->t_stats.s_ont ^ player.t_stats.s_ont);
         attr += tp->t_stats.s_int - 1;
         if (rnd(NUM_FEATURES) < attr)
         {