]> granicus.if.org Git - nethack/commitdiff
commit message for pull request #599 - artifacts
authorPatR <rankin@nethack.org>
Tue, 26 Oct 2021 19:09:36 +0000 (12:09 -0700)
committerPatR <rankin@nethack.org>
Tue, 26 Oct 2021 19:09:36 +0000 (12:09 -0700)
Explicitly un-create a randomly generated artifact if it gets
rejected (too big to include as a treasure drop with a small corpse)
so that it remains eligible for creation later.  And when generating
random contents for a new container, explicitly avoid artifacts
(which were already implicitly avoided).

Closes #599

doc/fixes37.0

index 84b0d03b6626a2d752a2230c7ddc1073c2fa831b..252053d7c71c14cbfbe787a083c50cb7a21a0e81 100644 (file)
@@ -664,6 +664,12 @@ if weight_cap() ever returned 0 (which probably can't happen), using #untrap
        to pull a monster out of a pit would trigger a divide by 0 crash
 avoid "you now detect it where the vampire bat was" when a vampire shifts from
        a bat seen with infravision to an unseen fog cloud
+if an artifact gets created as a random treasure drop and then deleted because
+       it is too big to include with a small corpse, explicitly uncreate it
+       instead of just discarding it so that it is eligible for use later
+when creating random contents for a container, explicitly exclude artifacts
+       (already implicitly excluded because randomly generated artifacts are
+       all weapons and containers don't start with any weapons in them)
 
 
 Fixes to 3.7.0-x Problems that Were Exposed Via git Repository