nethack
23 years agofollow-up to <Someone>'s patch.
nethack.allison [Thu, 7 Mar 2002 23:24:11 +0000 (23:24 +0000)]
follow-up to <Someone>'s patch.
I left a couple of prepanic() calls in there accidentally
when modifying the patch.

Michael

23 years ago(from <Someone>)
nethack.allison [Thu, 7 Mar 2002 23:09:59 +0000 (23:09 +0000)]
(from <Someone>)

Here's a patch that checks whether the common control
library is available and up-to-date

[slightly modified from <Someone>'s version to reduce
 indentation one level, and to fix wrap-around
 in the patch]

23 years agoSomething <Someone> reported. Ensure that an early panic() doesn't
nethack.allison [Thu, 7 Mar 2002 21:50:20 +0000 (21:50 +0000)]
Something <Someone> reported.  Ensure that an early panic() doesn't
cause an access violation in win32 graphical port.

23 years ago(from <Someone>)
nethack.allison [Thu, 7 Mar 2002 21:12:51 +0000 (21:12 +0000)]
(from <Someone>)
Here's the gcc makefile.

23 years ago(from <Someone>)
nethack.allison [Thu, 7 Mar 2002 13:01:17 +0000 (13:01 +0000)]
(from <Someone>)
Here's the gcc makefile. I also cleaned up the batch file a
little and added instructions to install.nt.

I copied most of the items from the existing Makefiles,
including the 32x32 tile support, even though that is not
available. This way comparing the makefiles is easiest :-)

23 years agowin32 shknam updates
nethack.allison [Wed, 6 Mar 2002 19:02:49 +0000 (19:02 +0000)]
win32 shknam updates

23 years agowin32: Consistent Makefile naming now that we have at least 2
nethack.allison [Wed, 6 Mar 2002 18:54:13 +0000 (18:54 +0000)]
win32: Consistent Makefile naming now that we have at least 2

Makefile.nt -> Makefile.msc

23 years agoSupport iflags.menu_tab_sep in the #enhance menu.
nethack.allison [Wed, 6 Mar 2002 17:46:49 +0000 (17:46 +0000)]
Support iflags.menu_tab_sep in the #enhance menu.

23 years agoEnsure that vision is not used during done()
nethack.allison [Wed, 6 Mar 2002 16:51:17 +0000 (16:51 +0000)]
Ensure that vision is not used during done()
(and panic() which calls done())

This uses the flag that <Someone> recently added.

At least one crash in the past was caused by

? -> panic() -> done(11) -> * vision_recalc(2) -> newsym() -> crash!
if  u.ux and u.uy are 0

23 years agoEnsure that each win/win32 source file has a copyright statement
nethack.allison [Wed, 6 Mar 2002 16:18:27 +0000 (16:18 +0000)]
Ensure that each win/win32 source file has a copyright statement
and mentions the NetHack license.

23 years ago(from Yitzhak)
nethack.allison [Wed, 6 Mar 2002 05:16:17 +0000 (05:16 +0000)]
(from Yitzhak)

Addresses <Someone>'s point that ALT-F4 in game-over, still brings up the
save/quit/cancel dialog box.  This makes ALT-F4 equivalent to quitting
without any further disclosure/windows, but makes sure the game exits
properly so it will save the bones and the record file.  I also cleaned
up the mhrip.c to use macros for all magic numbers.

23 years agoanother "your corpse" case
cohrs [Wed, 6 Mar 2002 04:14:30 +0000 (04:14 +0000)]
another "your corpse" case
- switch aobjnam() to use cxname, not xname
- update Tobjnam() comment, since it can still use xname w/o confusion

A specific case that's fixed: You begin bashing monsters with your corpse.

23 years ago(from <Someone>)
nethack.allison [Wed, 6 Mar 2002 02:56:46 +0000 (02:56 +0000)]
(from <Someone>)
- added support for iflags.randomall (-@)
- echo yn_function selection to the message window (as From a bug report

23 years agoweapon shattering follow-up
nethack.allison [Wed, 6 Mar 2002 02:05:14 +0000 (02:05 +0000)]
weapon shattering follow-up

23 years agomore weapon shattering
nethack.allison [Wed, 6 Mar 2002 01:58:07 +0000 (01:58 +0000)]
more weapon shattering
The Kop Kaptain's rubber hose shatters from the force of your blow!
Rubber hoses are an individual exception that would need to be dealt
with explicitly, since the PLASTIC they're made of is floppy rather
than rigid as for other PLASTIC items.

23 years ago*** empty log message ***
nethack.allison [Wed, 6 Mar 2002 01:43:01 +0000 (01:43 +0000)]
*** empty log message ***

23 years ago<Someone>'s potion of polymorph suggestion
nethack.allison [Wed, 6 Mar 2002 00:22:37 +0000 (00:22 +0000)]
<Someone>'s potion of polymorph suggestion
> Should a potion of polymorph autoidentify if the item dipped into it
> polymorphs into (as far as you know) the same item? It just seemed
> odd, choosing "Z - a wand of light" to dip into a potion, to get
> "Z - a wand of light" returned, and the potion identified.
>
> (Ideally, I'd like to see it be "Nothing seems to happen.", as for
> a failed-this-time unicorn horn.)

23 years agoiron bars and wallification
cohrs [Tue, 5 Mar 2002 07:46:40 +0000 (07:46 +0000)]
iron bars and wallification
- iron bars should be treated like doors with respect to wallification

23 years agoallow locks to be forced again
cohrs [Tue, 5 Mar 2002 06:21:05 +0000 (06:21 +0000)]
allow locks to be forced again
- use uwep's oc_wldam value, not chest's oc_wldam value, for computing chance.
  oc_wldam has always been 0 for all containers
- the code was broken for a long time, but was masked by the off-by-1 error
  in checking the chance, allowing a 1% chance of forcing
- the result is that forcing locks is a lot easier

23 years agoUse mswin for the window port name since that is used in the window port itself.
nethack.allison [Tue, 5 Mar 2002 05:11:45 +0000 (05:11 +0000)]
Use mswin for the window port name since that is used in the window port itself.

23 years agoadd windowcolors option
nethack.allison [Tue, 5 Mar 2002 05:03:48 +0000 (05:03 +0000)]
add windowcolors option

Add option windowcolors to control foreground/background
color of menu, message, status, and text windows.
(foreground color is the text color).

The value of the colors is window port specific, the
core code handles the storing of the strings only.

23 years agono message
nethack.allison [Tue, 5 Mar 2002 04:57:50 +0000 (04:57 +0000)]
no message

23 years agoremove win/win32/mhcmd.* from distribution
nethack.allison [Tue, 5 Mar 2002 01:47:31 +0000 (01:47 +0000)]
remove win/win32/mhcmd.* from distribution

23 years agowin32gui: more splash screen integration
nethack.allison [Mon, 4 Mar 2002 23:01:10 +0000 (23:01 +0000)]
win32gui: more splash screen integration
auto-uudecode the file.

23 years ago(from Yitzhak)
nethack.allison [Mon, 4 Mar 2002 22:55:45 +0000 (22:55 +0000)]
(from Yitzhak)

win32gui: more splash screen integration

The Makefile have rip.uu/splash.uu added to them.  However, this won't
work if you don't have splash.uu.  Instead, just copy rip.uu or another
.uu and name it splash.uu.  Make expects to have splash.uu present (at
least Borland's make).   It doesn't add splash.uu decoding to the IDE
framework.  It does a bit in winhack.rc and Makefile.bcc to bring
winhack.rc up to sync with Borland's compiler.  If you don't like the
splash screen, then I'll have to redo that part of the patch apart from
the others.

23 years agowin32gui: adds a splash screen
nethack.allison [Mon, 4 Mar 2002 22:40:01 +0000 (22:40 +0000)]
win32gui: adds a splash screen

The splash screen uses the VERSION_MAJOR,
VERSION_MINOR, and PATCHLEVEL macros, but there is no room in case one
of these goes into two digits.  That seems like a safe assumption to
make.

The Makefile have rip.uu/splash.uu added to them.  However, this won't
work if you don't have splash.uu.  Instead, just copy rip.uu or another
.uu and name it splash.uu.  Make expects to have splash.uu present (at
least Borland's make).   It doesn't add splash.uu decoding to the IDE
framework.  It does a bit in winhack.rc and Makefile.bcc to bring
winhack.rc up to sync with Borland's compiler.  If you don't like the
splash screen, then I'll have to redo that part of the patch apart from
the others.

23 years agoPrevent fake amulet from being contained too
nethack.allison [Mon, 4 Mar 2002 04:44:18 +0000 (04:44 +0000)]
Prevent fake amulet from being contained too
Most NetHack players have picked up on the fact that you can
easily distinguish between a fake amulet and the real thing
simply by trying to put it into a container. That's too easy.
The message was adjusted too, to make it seem less
like the objects have their own special will to resist, something
that a hunk of plastic is unlikely to have.

23 years agoPrevent fake amulet from being contained too
nethack.allison [Mon, 4 Mar 2002 04:39:41 +0000 (04:39 +0000)]
Prevent fake amulet from being contained too
Most NetHack players have picked up on the fact that you can
easily distinguish between a fake amulet and the real thing
simply by trying to put it into a container. That's too easy.
The message was adjusted too, to make it seem less
like the objects have their own special will to resist, something
that a hunk of plastic is unlikely to have.

Devteam: message has been modified from what was previously
circulated.

23 years agoOPTIONS_FILE follow-up
nethack.allison [Mon, 4 Mar 2002 03:42:25 +0000 (03:42 +0000)]
OPTIONS_FILE follow-up
-makedefs had WIN32CON defined, even though the Nethack
executable build did not.

23 years agoOPTIONS_FILE port changes
nethack.allison [Mon, 4 Mar 2002 03:26:55 +0000 (03:26 +0000)]
OPTIONS_FILE port changes
- set OPTIONS_FILE in ntconf.h so makedefs will use it
- it gets set to either "ttyoptions" or "guioptions" depending on window port
 being built
- dlb nhdat creation stuffs both into the dlb file

23 years agoOPTIONS_FILE core changes
nethack.allison [Mon, 4 Mar 2002 03:22:23 +0000 (03:22 +0000)]
OPTIONS_FILE core changes
-Allow overriding of OPTIONS_FILE in makdefs.c
-Change obsolete WIN32_GRAPHICS to the correct MSWIN_GRAPHICS
-Remove the 8514 and VESA screen control stuff since it never existed.

23 years agoambiguous option matching
cohrs [Sun, 3 Mar 2002 20:29:36 +0000 (20:29 +0000)]
ambiguous option matching
Note: actual option setting code in parseoptions already does this correctly
- avoid testing the same options values vs multiple boolopts entries
- apply similar change for complex option testing
- remove some dead code

23 years agoget rid of some unused variables.
nethack.allison [Sun, 3 Mar 2002 17:15:40 +0000 (17:15 +0000)]
get rid of some unused variables.

23 years agonew RIP integration
nethack.allison [Sun, 3 Mar 2002 16:51:46 +0000 (16:51 +0000)]
new RIP integration

23 years ago(from Yitzhak)
nethack.allison [Sun, 3 Mar 2002 16:46:40 +0000 (16:46 +0000)]
(from Yitzhak)
Support for a graphical RIP.

-verified for successful source compile and display
of tombstone upon death only.

23 years agoMore Install.nt updates.
nethack.allison [Sun, 3 Mar 2002 15:08:46 +0000 (15:08 +0000)]
More Install.nt updates.

23 years agoDon't claim that Borland's downloadable compiler is in the "public domain"
nethack.allison [Sun, 3 Mar 2002 14:32:08 +0000 (14:32 +0000)]
Don't claim that Borland's downloadable compiler is in the "public domain"

Here is the associated license:
BORLAND C++ COMPILER 5.5
BORLAND NO-NONSENSE LICENSE STATEMENT AND LIMITED WARRANTY

IMPORTANT - READ CAREFULLY
This license statement and limited warranty constitutes a legal agreement ("License Agreement") between you (either as an individual or a single entity) and Borland Software Corporation ("Borland") for the software product ("Software") identified above, including any software, media, and accompanying on-line or printed documentation. BY INSTALLING, COPYING, OR OTHERWISE USING THE SOFTWARE, YOU AGREE TO BE BOUND BY ALL OF THE TERMS AND CONDITIONS OF THE LICENSE AGREEMENT. If you are the original purchaser of the Software and you do not agree with the terms and conditions of the License Agreement, promptly return the unused Software to the place from which you obtained it for a full refund.
Upon your acceptance of the terms and conditions of the License Agreement, Borland grants you the right to use the Software in the manner provided below. This Software is owned by Borland or its suppliers and is protected by copyright law and international copyright treaty. Therefore, you must treat this Software like any other copyrighted material (e.g., a book), except that you may either make one copy of the Software solely for backup or archival purposes or transfer the Software to a single hard disk provided you keep the original solely for backup or archival purposes. You may transfer the Software and documentation on a permanent basis provided you retain no copies and the recipient agrees to the terms of the License Agreement. Except as provided in the License Agreement, you may not transfer, rent, lease, lend, copy, modify, translate, sublicense, time-share or electronically transmit or receive the Software, media or documentation. You acknowledge that the Software in source code form remains a confidential trade secret of Borland and/or its suppliers and therefore you agree not to modify the Software or attempt to reverse engineer, decompile, or disassemble the Software, except and only to the extent that such activity is expressly permitted by applicable law notwithstanding this limitation.
If you have purchased an upgrade version of the Software, it constitutes a single product with the Borland software that you upgraded. You may use or transfer the upgrade version of the Software only in accordance with the License Agreement. This Software is subject to U.S. Commerce Department export restrictions, and is intended for use in the country into which Borland sold it (or in the EEC, if sold into the EEC).

ADDITIONAL LICENSE TERMS FOR BORLAND C++ COMPILER
Borland grants to you as an individual, a personal, nonexclusive license to install and use the Software for the sole purposes of designing, developing, testing, and deploying application programs which you create. You may install a copy of the Software on a computer and freely move the Software from one computer to another, provided that you are the only individual using the Software. If you are an entity, Borland grants you the right to designate one individual within your organization ("Named User") to have the right to use the Software in the manner provided above.

GENERAL TERMS THAT APPLY TO COMPILED PROGRAMS AND REDISTRIBUTABLES
You may write and compile (including byte-code compile) your own application programs using the Software, including any libraries and source code included for such purpose with the Software. You may reproduce and distribute, in executable form only, programs which you create using the Software without additional license or fees, subject to all of the conditions in this License Agreement. Borland products may include certain files ("Redistributables") intended for distribution by you to the users of programs you create. Redistributables include, for example, those files identified in the accompanying printed or on-line documentation as redistributable files, those files preselected for deployment by an install utility provided with the Software (if any), or those files pre-selected by a third party install utility which operates under control of an install script which Borland has certified (if any) for use by licensed users of this Software for deploying applications. In any event, the Redistributables for the Software are only those files specifically designated as such by Borland. From time to time, Borland may designate other files as Redistributables. You should refer to the documentation, including any "readme" or "deploy" files included with the Software, for additional information.
Subject to all of the conditions in this License Agreement, you may reproduce and distribute exact copies of the Redistributables, provided that such copies are made from the original copy of the Software or the copy transferred to the single hard disk. Copies of Redistributables may only be distributed with and for the sole purpose of executing application programs permitted under this License Agreement that you have created using the Software. Under no circumstances may any copies of Redistributables be distributed separately. Regardless of any modifications which you make and regardless of how you might compile, link, and/or package your programs, under no circumstances may the libraries (including runtime libraries), code, Redistributables, and/or other files of the Software (including any portions thereof) be used for developing programs by anyone other than you. Only you as the licensed user (or the Named User for your entity) have the right to use the libraries (including runtime libraries), code, Redi
stributables, or other files of the Software (or any portions thereof) for developing programs created with the Software. In particular, you may not share copies of the Redistributables with other co-developers. You may not reproduce or distribute any Borland documentation without Borland's permission. The license granted in this License Agreement for you to create your own compiled programs and distribute your programs and the Redistributables (if any) is subject to all of the following conditions: (i) all copies of the programs you create must bear a valid copyright notice, either your own or the Borland copyright notice that appears on the Software; (ii) you may not remove or alter any Borland copyright, trademark or other proprietary rights notice contained in any portion of Borland libraries, source code, Redistributables or other files that bear such a notice; (iii) Borland provides no warranty at all to any person, other than the Limited Warranty provided to the original purchaser of the Software, and you will remain solely responsible to anyone receiving your programs for support, service, upgrades, or technical or other assistance, and such recipients will have no right to contact Borland for such services or assistance;
(iv) you will indemnify and hold Borland, its related companies and its suppliers, harmless from and against any claims or liabilities arising out of the use, reproduction or distribution of your programs; (v) your programs must be written using a licensed, registered copy of the Software; (vi) your programs must add primary and substantial functionality, and may not be merely a set or subset of any of the libraries (including runtime libraries), code, Redistributables or other files of the Software; (vii) regardless of any modifications which you make and regardless of how you might compile, link, or package your programs, the libraries (including runtime libraries), code, Redistributables, and/or other files of the Software (including any portions thereof) may not be used in programs created by your end users (i.e., users of your programs) and may not be further redistributed by your end users; and (viii) you may not use Borland's or any of its suppliers' names, logos, or trademarks to market your programs,
except to state that your program was written using the Software. The Software might include source code, redistributable files, and/or other files provided by a third party vendor (Third Party Software). Since use of Third Party Software might be subject to license restrictions imposed by the third party vendor, you should refer to the on-line documentation (if any) provided with Third Party Software for any license restrictions imposed by the third party vendor. In any event, any license restrictions imposed by a third party vendor are in addition to, not in lieu of, the terms and conditions of the License Agreement. All Borland libraries, source code, Redistributables and other files remain Borland's exclusive property. Regardless of any modifications that you make, you may not distribute any files (particularly Borland source code and other non-executable files) except those that Borland has expressly designated as Redistributables. Nothing in the License Agreement permits you to derive the source code of files that Borland has provided to you in executable form only, or to reproduce, modify, use, or distribute the source code of such files. You are not, of course, restricted from distributing source code or byte code that is entirely your own. Source code which you generate with an Borland source code generator, such as the Application Wizard, is considered by Borland to be your code.
Contact Borland for the applicable royalties due and other licensing terms for all other uses and/or distribution of the Redistributables.

LIMITED WARRANTY
Except with respect to the Redistributables, which are provided "as is," without warranty of any kind, Borland warrants that the Software, as updated and when properly used, will perform substantially in accordance with the accompanying documentation, and the Software media will be free from defects in materials and workmanship, for a period of ninety (90) days from the date of receipt. Any implied warranties on the Software are limited to ninety (90) days. Some states/jurisdictions do not allow limitations on duration of an implied warranty, so the above limitation may not apply to you. Borland's and its suppliers' entire liability and your exclusive remedy shall be, at Borland's option, either (a) return of the price paid, or (b) repair or replacement of the Software that does not meet Borland's Limited Warranty and which is returned to Borland with a copy of your receipt. DO NOT RETURN ANY PRODUCT UNTIL YOU HAVE CALLED THE BORLAND CUSTOMER SERVICE DEPARTMENT AND OBTAINED A RETURN AUTHORIZATION NUMBER. This Limited Warranty is void if failure of the Software has resulted from accident, abuse, or misapplication. Any replacement Software will be warranted for the remainder of the original warranty period or thirty (30) days, whichever is longer. Outside the United States, neither these remedies nor any product support services offered by Borland are available without proof of purchase from an authorized non-U.S. source.

TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, BORLAND AND ITS SUPPLIERS DISCLAIM ALL OTHER WARRANTIES AND CONDITIONS, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, AND NON-INFRINGEMENT, WITH REGARD TO THE SOFTWARE, AND THE PROVISION OF OR FAILURE TO PROVIDE SUPPORT SERVICES. THIS LIMITED WARRANTY GIVES YOU SPECIFIC LEGAL RIGHTS. YOU MAY HAVE OTHERS, WHICH VARY FROM STATE/JURISDICTION TO STATE/JURISDICTION. LIMITATION OF LIABILITY TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL BORLAND OR ITS SUPPLIERS BE LIABLE FOR ANY SPECIAL, INCIDENTAL, INDIRECT, OR CONSEQUENTIAL DAMAGES WHATSOEVER (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS INFORMATION, OR ANY OTHER PECUNIARY LOSS) ARISING OUT OF THE USE OF OR INABILITY TO USE THE SOFTWARE PRODUCT OR THE PROVISION OF OR FAILURE TO PROVIDE SUPPORT SERVICES, EVEN IF BORLAND HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. IN ANY CASE, BORLAND'S ENTIRE LIABILITY UNDER ANY PROVISION OF THIS LICENSE AGREEMENT SHALL BE LIMITED TO THE GREATER OF THE AMOUNT ACTUALLY PAID BY YOU FOR THE SOFTWARE PRODUCT OR U.S. $25; PROVIDED, HOWEVER, IF YOU HAVE ENTERED INTO AN BORLAND SUPPORT SERVICES AGREEMENT, BORLAND'S ENTIRE LIABILITY REGARDING SUPPORT SERVICES SHALL BE GOVERNED BY THE TERMS OF THAT AGREEMENT. BECAUSE SOME STATES AND JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY, THE ABOVE LIMITATION MAY N
OT APPLY TO YOU.

HIGH RISK ACTIVITIES
The Software is not fault-tolerant and is not designed, manufactured or intended for use or resale as on-line control equipment in hazardous environments requiring fail-safe performance, such as in the operation of nuclear facilities, aircraft navigation or communication systems, air traffic control, direct life support machines, or weapons systems, in which the failure of the Software could lead directly to death, personal injury, or severe physical or environmental damage ("High Risk Activities"). Borland and its suppliers specifically disclaim any express or implied warranty of fitness for High Risk Activities.

U.S. GOVERNMENT RESTRICTED RIGHTS
The Software and documentation are provided with RESTRICTED RIGHTS. Use, duplication, or disclosure by the Government is subject to restrictions as set forth in subparagraphs (c)(1)(ii) of the Rights in Technical Data and Computer Software clause at DFARS 252.227-7013 or subparagraphs (c)(1) and (2) of the Commercial Computer Software-Restricted Rights at 48 CFR 52.227-19, as applicable. Manufacturer is Borland Software Corporation, 100 Enterprise Way, Scotts Valley, CA 95066.

GENERAL PROVISIONS
This License Agreement may only be modified in writing signed by you and an authorized officer of Borland. All terms of any purchase order or other ordering document shall be superseded by this License Agreement. If any provision of this License Agreement is found void or unenforceable, the remainder will remain valid and enforceable according to its terms. If any remedy provided is determined to have failed for its essential purpose, all limitations of liability and exclusions of damages set forth in the Limited Warranty shall remain in effect. This License Agreement shall be construed, interpreted and governed by the laws of the State of California, U.S.A. This License Agreement gives you specific legal rights; you may have others which vary from state to state and from country to country. Borland reserves all rights not specifically granted in this License Agreement.

23 years agoobsolete comment tid
arromdee [Sun, 3 Mar 2002 05:29:30 +0000 (05:29 +0000)]
obsolete comment tid

23 years agowizkit messages for gold
arromdee [Sun, 3 Mar 2002 05:01:09 +0000 (05:01 +0000)]
wizkit messages for gold
This prevents wizkit items that aren't objects from having their names
printed on the screen if they are gold pieces, traps, or similar.

(Note that the only one of those that actually works is gold.  For some reason
if you put "a hole" (for instance) in the wizkit, the hole will not get
created, even though it will, even on the stairs, if the wizard wishes for it
in-game.)

23 years agoMakefile.src bit
nethack.rankin [Sun, 3 Mar 2002 04:52:06 +0000 (04:52 +0000)]
Makefile.src bit
     Make it easier to follow the directions about commenting out
extra copies of tile.o when multiple windowing interfaces contain it.

23 years agoX11 instructions bit
nethack.rankin [Sun, 3 Mar 2002 04:48:16 +0000 (04:48 +0000)]
X11 instructions bit

23 years agodata.base entry additions
cohrs [Sun, 3 Mar 2002 04:46:21 +0000 (04:46 +0000)]
data.base entry additions
- doppelganger & nori

23 years agofixes34.0 update -- reorganize port- and interface-specific entries
nethack.rankin [Sun, 3 Mar 2002 04:37:13 +0000 (04:37 +0000)]
fixes34.0 update -- reorganize port- and interface-specific entries

23 years ago#turn fix
nethack.rankin [Sun, 3 Mar 2002 04:28:08 +0000 (04:28 +0000)]
#turn fix
     Don't report that undead monsters are "turning to flee"
when they're about to be made peaceful or killed outright,
and add a missing alignment fixup for the case where they do
get made peaceful.

     Also, a trivial bit that only matters when using wizard
mode to wish for altars.  To #offer the Amulet you need to be
on the Astral level rather than just anywhere in the endgame.

23 years agoupdate patchlevel change list and potential date stamp
nethack.allison [Sun, 3 Mar 2002 04:24:48 +0000 (04:24 +0000)]
update patchlevel change list and potential date stamp

23 years agofix B9003: prevent multiple touchstones in A's starting inventory
nethack.rankin [Sun, 3 Mar 2002 04:14:54 +0000 (04:14 +0000)]
fix B9003: prevent multiple touchstones in A's starting inventory

23 years agoWIZKIT gold items
cohrs [Sun, 3 Mar 2002 03:36:33 +0000 (03:36 +0000)]
WIZKIT gold items
- if !GOLDOBJ, putting gold in the WIZKIT would add zerobj to the inventory.
  This shows up when you "Da" and get a message like "you drop 0 glorkum 0 0 0"

23 years agofix a cut-and-paste error
nethack.allison [Sun, 3 Mar 2002 02:32:14 +0000 (02:32 +0000)]
fix a cut-and-paste error

23 years agoMake nhsetup.bat double-clickable
nethack.allison [Sun, 3 Mar 2002 02:21:46 +0000 (02:21 +0000)]
Make nhsetup.bat double-clickable
Picking up on a suggestion made by Yitzhak, allow nhsetup.bat
to be double-clicked in Windows to accomplish the necessary
file movements.

23 years agoGuidebook.txt update for 3.4
cohrs [Sun, 3 Mar 2002 00:27:39 +0000 (00:27 +0000)]
Guidebook.txt update for 3.4
- created on RedHat Linux 7.2 using standard tools

23 years agoLinux build updates
cohrs [Sat, 2 Mar 2002 22:43:39 +0000 (22:43 +0000)]
Linux build updates
- A few Makefile changes to reflect current(?) paths on Linux
- Linux mail reader is /bin/mail

23 years agoInstall.nt and nhsetup.bat updates.
nethack.allison [Sat, 2 Mar 2002 17:19:27 +0000 (17:19 +0000)]
Install.nt and nhsetup.bat updates.

23 years agojeweler shopkeeper touchstone (B3015)
arromdee [Sat, 2 Mar 2002 16:46:56 +0000 (16:46 +0000)]
jeweler shopkeeper touchstone (B3015)
This implements the suggestion in beta bug 3015.

23 years agofrench fried food (B7010)
arromdee [Sat, 2 Mar 2002 16:18:39 +0000 (16:18 +0000)]
french fried food (B7010)
This implements the suggestion in beta bug 7010.

23 years agobug 8009 (dropping gold on altar)
arromdee [Sat, 2 Mar 2002 16:06:12 +0000 (16:06 +0000)]
bug 8009 (dropping gold on altar)
This fixes beta bug 8009 (dropping gold on altar)

23 years agovms update
nethack.rankin [Sat, 2 Mar 2002 07:50:34 +0000 (07:50 +0000)]
vms update
     Update the instructions, add a dat -> util dependency so that
MMK (freeware clone of DEC's MMS make utility) builds the data files
when necessary, and switch the default compiler to DEC C.

23 years agobuild fix
nethack.rankin [Sat, 2 Mar 2002 06:16:37 +0000 (06:16 +0000)]
build fix

     Some old compilers don't like to use the name of a function-like
macro for anything other than invoking that macro.

23 years agoThis fixes beta bug 8003 (half physical damage from gas spores) as well as a
arromdee [Sat, 2 Mar 2002 01:07:11 +0000 (01:07 +0000)]
This fixes beta bug 8003 (half physical damage from gas spores) as well as a
minor bit of cleanup in mon.c.

23 years agocode sync nitpick
nethack.rankin [Sat, 2 Mar 2002 00:57:52 +0000 (00:57 +0000)]
code sync nitpick

     The cvs sources had a single space difference from nh-patches sources.

23 years agoUpdate the README
nethack.allison [Fri, 1 Mar 2002 14:27:29 +0000 (14:27 +0000)]
Update the README
- adds a few more items.
- remove the line "primarily a bug fix release" since it it were,
  it would be 3.3.2
- remove "to tell more would be cheating" reference, since we're
  considering including fixes34.0 in the distribution
- expands on the Gnomehack stale situation

23 years agoRemove unused code, fix comment.
dean [Fri, 1 Mar 2002 05:29:48 +0000 (05:29 +0000)]
Remove unused code, fix comment.

23 years agoFix a typo.
dean [Fri, 1 Mar 2002 05:26:36 +0000 (05:26 +0000)]
Fix a typo.

23 years agowin32 uses included uudecode utility
nethack.allison [Fri, 1 Mar 2002 05:06:48 +0000 (05:06 +0000)]
win32 uses included uudecode utility

23 years agosys/share/uudecode.c
nethack.allison [Thu, 28 Feb 2002 18:32:28 +0000 (18:32 +0000)]
sys/share/uudecode.c

This was added to allow the build on some platforms to be
completed without external utilities beyond the compiler.

23 years agoadd file sys/share/uudecode.c
nethack.allison [Thu, 28 Feb 2002 18:31:42 +0000 (18:31 +0000)]
add file sys/share/uudecode.c

This was added to allow the build on some platforms to be
completed without external utilities beyond the compiler.

23 years agoOne last (for now) bit for amiga makefile for sas/c.
keni [Thu, 28 Feb 2002 14:53:37 +0000 (14:53 +0000)]
One last (for now) bit for amiga makefile for sas/c.
This fixes make install to actually install and build everything needed.
-jhsa

23 years agofix more your corpse cases
cohrs [Wed, 27 Feb 2002 05:15:48 +0000 (05:15 +0000)]
fix more your corpse cases
- new cxname() to simplify doing the right thing in increasingly common cases
- use for bullwhip snagging
- in shopkeeper offer code
- in a couple other existing places rather than duplicating CORPSE checks
- use singular(...) in "swings" cases, since only one can hit.  Singular uses
  corpse_xname automatically when appropriate

23 years agostopping occupation when missed
arromdee [Wed, 27 Feb 2002 02:29:33 +0000 (02:29 +0000)]
stopping occupation when missed
This fixes beta bug 3020.  It was hard to notice because the presence of a
monster in the room stops your occupation anyway, so it wasn't triggered unless
you were blind.

23 years agocloning minions
arromdee [Wed, 27 Feb 2002 02:17:01 +0000 (02:17 +0000)]
cloning minions
Janet pointed this one out to me...

23 years agoshattering corpses
cohrs [Tue, 26 Feb 2002 22:07:24 +0000 (22:07 +0000)]
shattering corpses
- generalize which weapons can be shattered to be >= WOOD

23 years agosimplify touchstone object choosing
cohrs [Tue, 26 Feb 2002 07:36:30 +0000 (07:36 +0000)]
simplify touchstone object choosing
- remove special case code from getobj for touchstone
- remove other hacks from getobj that resulted from earlier hack, solves
  the "rub on the gold stone" problem completely
- pass correct letter list to getobj from use_stone, like other callers

23 years agocloning
arromdee [Tue, 26 Feb 2002 06:55:17 +0000 (06:55 +0000)]
cloning
Fix a minor cloning problem; clones didn't retain the monster's name or
tameness.  (The name *was* retained if you were cloned.)  I also added a
minor change in wizard mode to display a few tameness fields of a dog.

23 years agomessage follow-up
nethack.allison [Mon, 25 Feb 2002 20:24:04 +0000 (20:24 +0000)]
message follow-up

23 years agoThe unpaid cost displayed in your inventory now
nethack.allison [Mon, 25 Feb 2002 19:14:42 +0000 (19:14 +0000)]
The unpaid cost displayed in your inventory now
includes container contents, not just the cost of the
container itself (a prices in inventory phenomenon).

Along the way I discovered a peculiarity -
contained_cost() was adding up the cost of everything in
a container, even if you had stashed items in it that were your
own and not marked unpaid it seems.

I added a flag to force the code to only add objects
that were marked "unpaid" so I could use it in this new
instance, but I didn't change any of
the existing usages (I left the flag at FALSE which leaves
the consideration of the unpaid status alone just as
before).

Some of this is correction of some messages that were
wrong prior to this when dealing with selling of objects
inside a container when only part of the contents was unpaid.

23 years ago'D'ropping gold messes up inventory
cohrs [Mon, 25 Feb 2002 05:51:44 +0000 (05:51 +0000)]
'D'ropping gold messes up inventory
- new splitobj() behavior requires special casing when !GOLDOBJ and
  dropping some of your gold, to ensure that the remainder remains the first
  item in the inventory

23 years agowin32: Allow 32x32 tile builder to be built.
nethack.allison [Mon, 25 Feb 2002 03:38:05 +0000 (03:38 +0000)]
win32: Allow 32x32 tile builder to be built.

23 years agosling, like whip, shouldn't shatter from a blow
cohrs [Mon, 25 Feb 2002 02:57:57 +0000 (02:57 +0000)]
sling, like whip, shouldn't shatter from a blow

23 years agoconverting SCORR to CORR unblocks vision
cohrs [Mon, 25 Feb 2002 02:43:50 +0000 (02:43 +0000)]
converting SCORR to CORR unblocks vision
- fix several cases where a point was unblocked by unblock_point wasn't
 called, directly or indirectly

23 years agomonsters jumping into hidden traps
cohrs [Mon, 25 Feb 2002 01:02:55 +0000 (01:02 +0000)]
monsters jumping into hidden traps
- if a monster jumps into a trap in an SCORR, and you see it, convert to CORR

23 years agowintty debug bit
nethack.allison [Mon, 25 Feb 2002 00:15:56 +0000 (00:15 +0000)]
wintty debug bit

23 years agomounting steed while levitating at will
cohrs [Sun, 24 Feb 2002 21:36:32 +0000 (21:36 +0000)]
mounting steed while levitating at will
- avoid causing damage if you slip and levitating at will
- change message slightly in this case as well

23 years agoDarkness msg despite sunsword
nethack.allison [Sun, 24 Feb 2002 19:13:32 +0000 (19:13 +0000)]
Darkness msg despite sunsword
> Is the "You are surrounded by darkness!" message from reading a cursed
> scroll of light (or non-cursed if confused) appropriate if you're
> wielding Sunsword, which _doesn't_ get turned off by it?

23 years agoX11 bit
cohrs [Sun, 24 Feb 2002 18:12:13 +0000 (18:12 +0000)]
X11 bit
- remove unneeded #undef's

23 years agoa flag to track if vision is ready
cohrs [Sun, 24 Feb 2002 18:04:02 +0000 (18:04 +0000)]
a flag to track if vision is ready
- new iflags.vision_inited to determine if vision is ready to go.
- the flag is set the first time vision_reset() completes, actually every time
- vision_recalc() checks the flag before doing anything.

23 years agochange is_greystone() to is_graystone()
nethack.allison [Sun, 24 Feb 2002 17:23:02 +0000 (17:23 +0000)]
change is_greystone() to is_graystone()

-Rename is_greystone() to is_graystone() since I've
had one complaint about my choice of spelling for
the macro already.

-Change the recent "#rub touchstone" code to use
the macro which pre-existed under the other spelling
and was already used in the very same "if" statement
with that spelling in invent.c. :-)

23 years agowizkit follow-up
nethack.allison [Sun, 24 Feb 2002 17:17:25 +0000 (17:17 +0000)]
wizkit follow-up

The recent wizkit change caused the build to
fail on all environments other than unix and vms.

>..\src\files.c(1607) : error C2065: 'envp' : undeclared identifier
>..\src\files.c(1607) : warning C4047: '=' :
>'int ' differs in levels of indirect ion from 'char *'
>..\src\files.c(1608) : error C2100: illegal indirection
>..\src\files.c(1608) : warning C4047: 'function' :
>'const char *' differs in levels of indirection from 'int '
>..\src\files.c(1608) : warning C4024: 'strncpy' :

23 years agonttty hilite_pet follow-up
nethack.allison [Sun, 24 Feb 2002 16:16:59 +0000 (16:16 +0000)]
nttty hilite_pet follow-up

I didn't mean to override for any color in the mask. My
earlier patch caused it to make green, blue, or red all
become black (which still looked better than white on
grey).

This gets it right (famous last words), and only makes
the text character's color black if it is actually white
or bright white.

23 years ago<Someone> reported a poor display result on the win32 tty
nethack.allison [Sun, 24 Feb 2002 15:45:05 +0000 (15:45 +0000)]
<Someone> reported a poor display result on the win32 tty
when hilite_pet was enabled.  After checking into it, the
test was looking for the value:
(FOREGROUND_GREEN|FOREGROUND_BLUE|FOREGROUND_RED)
which signifies a white color on win32 console I/O. The
problem was that in some cases that was OR'd with
something else such as FOREGROUND_INTENSITY.

Fix it by checking only the bits that matter when
turning on the attribute.

23 years agomore wizkit: bulletproofing previous change
nethack.rankin [Sun, 24 Feb 2002 06:56:46 +0000 (06:56 +0000)]
more wizkit: bulletproofing previous change

23 years agovault guard message on the wrong level
cohrs [Sun, 24 Feb 2002 06:56:02 +0000 (06:56 +0000)]
vault guard message on the wrong level
if vault guard leaves his original level and is killed, clear_fcorr
was still attempted on the wrong level.

23 years agowizkit enhancement
nethack.rankin [Sun, 24 Feb 2002 06:51:36 +0000 (06:51 +0000)]
wizkit enhancement

     Allow a WIZKIT file name to be specified via the environment.
If none is specified there, get it from the run-time config file.

23 years agomonster use of artifacts
nethack.rankin [Sun, 24 Feb 2002 06:12:57 +0000 (06:12 +0000)]
monster use of artifacts

     From the newsgroup:  some of the fake player monsters on the
astral level were unable to use artifacts that they were created
with due to alignment mismatch.  Rather than try to adjust the
artifact creation of only select matching items, this patch lets
them handle artifacts when alignments differ (more or less like
the player; monsters don't occasionally get blasted though).

     This also restores chaotic monsters with the ability to use
Stormbringer; I'm not sure how long that has been broken.  It also
gives lawful ones the ability to use Excalibur.

23 years agorandom shrines on special levels
cohrs [Sun, 24 Feb 2002 05:38:57 +0000 (05:38 +0000)]
random shrines on special levels
- "random" shrines generate the value -1, not -11
- rn2(1) always == 0, should be rn2(2), sanctums aren't random

23 years agofix B3024: remove vs take off
nethack.rankin [Sun, 24 Feb 2002 05:05:11 +0000 (05:05 +0000)]
fix B3024: remove vs take off

     Change the prompts for P and R commands to use "put on" instead
of "wear" and "remove" instead of "take off", respectively; W and T
commands aren't affected.  There is no change in game play.

23 years agofrom <Someone>: #rub touchstone
nethack.rankin [Sun, 24 Feb 2002 03:19:20 +0000 (03:19 +0000)]
from <Someone>: #rub touchstone

     <Someone>'s message said this was committed, but the cvs repository
didn't reflect his changes.

> Subject: patch: #rub touchstone
> Date: Wed, 20 Feb 2002 23:33:27 -0800
> <email deleted>
>
> Implement <Someone>'s suggestion.
>
> - allow the #rub command to apply to gray stones
> - update various doc & help files to reflect the change
>
> Committed to CVS.

23 years ago"fix" B6004
nethack.rankin [Sun, 24 Feb 2002 00:51:20 +0000 (00:51 +0000)]
"fix" B6004

     The comment about Book of the Dead's taming effect working
on nearby monsters when read while swallowed was wrong.  It was
only put there in the first place to avoid adding extra code to
suppress taming while swallowed when that was done for the other
methods of taming.  Any need for extra code here turns out to be
unnecessary due to the cansee() check.

23 years agodouble undead turning
nethack.rankin [Sat, 23 Feb 2002 11:13:41 +0000 (11:13 +0000)]
double undead turning

     From the newsgroup:  when an undead monster got killed by a wand
or spell of undead turning, if it left a corpse that corpse would be
hit by the same zap and was immediately revived.  This fix uses the
flag bits that were added to prevent objects that are dropped by a
polymorphed monster from being hit by the same polymorph zap.

     This also fixes a post-3.3.1 bug that produced "the <undead>
turns to flee" even when that monster had been killed by the turning
attack.  3.3.1 had the same bogus fleeing effect but didn't give any
message so it was unnoticeable.

23 years agoAnother artifact damage update
nethack.rankin [Sat, 23 Feb 2002 10:55:43 +0000 (10:55 +0000)]
Another artifact damage update

     Make being hit by an artifact which does fire, cold, or
lightning (or magic missiles, since the code is there) affect
inventory even when the target resists the damage him-/her-/itself.
This removes the need for the redundant fire vs slime handling that
I put in yesterday.  Unfortunately it also means that Valkyries who
throw Mjollnir will inevitably end up destroying all their mettalic
wands and rings, so I reduced the chance of it hitting upon its
return.

23 years agovtense: flyies
nethack.rankin [Sat, 23 Feb 2002 10:37:18 +0000 (10:37 +0000)]
vtense: flyies

23 years agopudding cloning (from beta-test)
arromdee [Sat, 23 Feb 2002 06:12:55 +0000 (06:12 +0000)]
pudding cloning (from beta-test)