From e915733375580be35ab04e70dd080fea59586dd8 Mon Sep 17 00:00:00 2001 From: Joe Wreschnig Date: Sat, 6 Apr 2013 10:53:18 +0200 Subject: [PATCH] Use ^ rather than & so the player can't be generated 'too boring' for any monster to care about. --- romance.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.30.2