]> granicus.if.org Git - nethack/commit
SEDUCE=0
authorPatR <rankin@nethack.org>
Thu, 10 Jan 2019 11:10:35 +0000 (03:10 -0800)
committerPatR <rankin@nethack.org>
Thu, 10 Jan 2019 11:10:35 +0000 (03:10 -0800)
commitb1782b813f418f13823efc2ae61a4b75df8254cb
tree2e4e8ad77ad021997deae339e3a3d8593c66744a
parent79d40658c7a00e27d9a8ce29bf9fee4ebd8f2c14
SEDUCE=0

When SEDUCE is disabled, instead of swapping attacks in mons[] once,
do it on the fly in getmattk() whenever needed.  That allows mons[]
to become readonly, although this doesn't declare it 'const' because
doing so will require a zillion 'struct permonst *' updates to match.

This seemed trickier than it should be, but that turned out to be
because the old behavior was broken.  Setting SEDUCE=0 in sysconf or
user's own configuration file resulted in all succubus and incubus
attacks being described as monster smiles engagingly or seductively
rather than hitting (while dishing out physical damage).  I didn't
try rebuilding 3.4.3 to see whether this was already broken before
being migrated to SYSCF.
doc/fixes36.2
src/mhitm.c
src/mhitu.c
src/monst.c
src/sys.c
src/uhitm.c