From: Joe Wreschnig Date: Sat, 6 Apr 2013 08:53:18 +0000 (+0200) Subject: Use ^ rather than & so the player can't be generated 'too boring' for any monster... X-Git-Url: https://git.yukkurigames.com/?a=commitdiff_plain;h=e915733375580be35ab04e70dd080fea59586dd8;p=rogue-pphs.git Use ^ rather than & so the player can't be generated 'too boring' for any monster to care about. --- diff --git a/romance.c b/romance.c index bff5588..1a73fbe 100644 --- 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) {