Schroedinger's Cat
If hero was carrying Schroedinger's Box at end of game, disclosing inventory converted it into an ordinary box. That interferred with subsequent disclosure when writing DUMPLOG, which saw an empty box if inventory had been shown or the special box with newly-determined contents if not. I tried a couple of ways to fix it and decided that redoing it was better in the long run. Schroedinger's box is still flagged with box->spe = 1, but instead of having that affect the box's weight, now there is always a cat corpse in the box. When opened, that will already be in place for a dead cat or be discarded for a live one, but the weight will be standard for container+contents and when box->cknown is set it will always be "containing 1 item" (which might turn out to be a monster). Some temporary code fixes up old save/bones files to stay compatible. TODO: food detection used to skip Schroedinger's Box; now it will always find a corpse, so some fixup like the ridiculous probing code is needed.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 extern.h $NHDT-Date: 1541719965 2018/11/08 23:32:45 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.647 $ */
|
||||
/* NetHack 3.6 extern.h $NHDT-Date: 1542798602 2018/11/21 11:10:02 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.650 $ */
|
||||
/* Copyright (c) Steve Creps, 1988. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -1848,6 +1848,7 @@ E struct obj *FDECL(pick_obj, (struct obj *));
|
||||
E int NDECL(encumber_msg);
|
||||
E int FDECL(container_at, (int, int, BOOLEAN_P));
|
||||
E int NDECL(doloot);
|
||||
E void FDECL(observe_quantum_cat, (struct obj *, BOOLEAN_P, BOOLEAN_P));
|
||||
E boolean FDECL(container_gone, (int (*)(OBJ_P)));
|
||||
E boolean NDECL(u_handsy);
|
||||
E int FDECL(use_container, (struct obj **, int, BOOLEAN_P));
|
||||
|
||||
Reference in New Issue
Block a user