projects
/
rogue-pphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use ^ rather than & so the player can't be generated 'too boring' for any monster...
[rogue-pphs.git]
/
romance.c
diff --git
a/romance.c
b/romance.c
index
bff5588
..
1a73fbe
100644
(file)
--- a/
romance.c
+++ b/
romance.c
@@
-53,7
+53,7
@@
int ydelta, xdelta;
else
{
register struct thing *tp = (struct thing *) ldata(mob);
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)
{
attr += tp->t_stats.s_int - 1;
if (rnd(NUM_FEATURES) < attr)
{