Xref: utzoo rec.games.hack:2562 comp.sources.games.bugs:240 Path: utzoo!attcan!uunet!mcvax!inria!axis!jcc From: jcc@axis.fr (Jean-Christophe Collet) Newsgroups: rec.games.hack,comp.sources.games.bugs Subject: Two Nethack 2.3 minor bugs fixed Message-ID: <378@axis.fr> Date: 20 May 88 15:31:57 GMT Organization: Axis Digital, Paris Lines: 68 Hi folks, Me again, with two minor bugs fixed : 1) I succeeded in getting the folowing inventory : Armors a - a +0 elven cloak (being worn) x - a cursed +0 elven cloak (being worn) ... When you only wear an elven cloak, you can wear another one on top of the first ( One for the front & one for the back :-) ) Here is the fix : do_wear.c : line 183 in doweararm() was : if(uarm) { if(otmp->otyp != ELVEN_CLOAK || uarm2) { pline("You are already wearing some armor."); err++; } } modify it to : if(uarm) { ! if(otmp->otyp != ELVEN_CLOAK || + uarm->otyp == ELVEN_CLOAK || uarm2) { pline("You are already wearing some armor."); err++; } } 2) Sometimes, here, our Archeologist (Ninja...) starts with 3 pick-axes or 2 large boxes (3 blindfolds) etc... It comes from the GRENADES code which, in mkobj.c, forces the quantity to be different from 1 and in ini_inv (from u_init.c) the exact nature (obj->otyp) of the generated object is set after mkobj has been called... so here is a possible fix : in u_init.c, line 549 (here, probably different anywhere else) in ini_inv() was : if(obj->olet == WEAPON_SYM){ obj->quan = trop->trquan; trop->trquan = 1; } modify it to : if(obj->olet == WEAPON_SYM){ obj->quan = trop->trquan; trop->trquan = 1; ! } else + obj->quan = 1; Happy hacking jcc ------------------------------------------------------------------------------- jcc@axis.fr ! "An artificial intelligence is better than none !" ..!mcvax!inria!axis!jcc ! "Artificial intelligence matches natural stupidity !" Collet jean-christophe ! "Objets inanimes avez vous donc une ame ?" ------------------------------------------------------------------------------- Axis Digital | 135 rue d'aguesseau | 92100 Boulogne | France | -------------------------------------------------------------------------------