]> granicus.if.org Git - nethack/commit
Digestion attack can grant hero intrinsics
authorMichael Meyer <me@entrez.cc>
Tue, 27 Sep 2022 01:22:49 +0000 (21:22 -0400)
committerPatR <rankin@nethack.org>
Sat, 8 Oct 2022 23:06:50 +0000 (16:06 -0700)
commitc78e7af01378d5a54a080c5e5a9ef9f454f6b83f
treef442b272f5681275d067576bc0f64d0d7c988d79
parent769e15454666696e9736511319d3bfbc1ee9490e
Digestion attack can grant hero intrinsics

Monster purple worms can now gain intrinsics from swallowing foes whole,
so maybe the hero should be able to do so too.  Intrinsics aren't
granted immediately upon swallowing (that would probably have been
easier), but only once a corpse is created and then entirely digested.

I'm not sure if this is too powerful and was being avoided deliberately
for that reason, since it includes potential level gain from wraith
corpses in addition to other intrinsics.  That's consistent with monster
purple worms but may be a bit too much in the hands of the hero, though
it is limited by needing the corpse creation roll to succeed.
include/decl.h
include/extern.h
src/decl.c
src/eat.c
src/uhitm.c