# # Patch name: darkerhide # Patch version: 1 # Author's name: T. Alexander Popiel # Author's email: popiel@snugharbor.com # Version of PennMUSH: PennMUSH 1.6.5.p3 # Date patch made: 16 July 1996 # Author is willing to support (yes/no): NO # Patch format: context diff # # # This is a contributed PennMUSH patch. Its use is subject to the # same restrictions found in PennMUSH's hdrs/copyrite.h file. # # No warranty is given for this patch. It is not necessarily going # to work on your system, with any version of PennMUSH other than # the one above, etc. # # If the author given above was willing to support the patch, you # should write to the author if you have any questions or problems. Do # *NOT* send email messages to Javelin or any PennMUSH mailing list about # this patch! # # Below this line is the author's description of the patch, # followed by the patch itself. If the patch is in context diff # format, you'll probably apply it by typing: patch < patchfile # in your top-level MUSH directory, unless instructed otherwise # below. # This patch makes @hidden players not appear in room contents (kind of like DARK). @hide does not gain any additional DARK powers, such as lcon() protection, 'Someone' name-substitution, etc. Patch made by request for Doyce Testerman . *** src/predicat.c 1996/07/16 22:54:15 1.1 --- src/predicat.c 1996/07/16 23:06:41 *************** *** 256,267 **** return 0; /* if the room is lit, you can see any non-dark objects */ else if (can_see_loc) ! return (!Dark(thing)); /* otherwise room is dark and you can only see lit things */ else ! return (Light(thing) && !Dark(thing)); } int --- 256,269 ---- return 0; /* if the room is lit, you can see any non-dark objects */ + /* Hack: @hidden people vanish too */ else if (can_see_loc) ! return (!Dark(thing) && !hidden(thing)); /* otherwise room is dark and you can only see lit things */ + /* Hack: @hidden people vanish too */ else ! return (Light(thing) && !Dark(thing) && !hidden(thing)); } int