Commit Graph

235 Commits

Author SHA1 Message Date
nethack.allison
02e2c671ed Fixes from <Someone>
- added support for new options
- fixed couple of typos in options.c
- added sunken edge around message window
- added capability to replace font in the font table (if we will want to
  change font sizes dynamically later)
2002-02-06 00:15:47 +00:00
nethack.allison
9d03c83d57 Use tabs for option menu separation if iflags.menu_tab_sep is set.
Simplifies some ports option menu displays.
2002-02-05 14:14:13 +00:00
nethack.allison
4181925d56 proto bit 2002-02-05 13:37:26 +00:00
nethack.allison
7d1e6f7d57 from Yitzhak
Add absent prototypes to some core routines.
Also add some port function() to function(void) in some win32 routines.
Also updates the Borland C Makefile for win32.
2002-02-05 13:21:43 +00:00
cohrs
f4a5823add touchstone bit 2002-02-05 04:22:23 +00:00
cohrs
747d1ee70f more inventory selection
the !allowcnt case wasn't being handled correctly, cuasing counts to
be set to 0 inappropriately.
2002-02-05 03:08:36 +00:00
cohrs
151f27e0c5 crash fix
don't try to clear the window if windows haven't been inited yet
2002-02-05 02:43:38 +00:00
nethack.allison
742e1e8c90 3.3.2 to 3.4.0 2002-02-04 16:11:00 +00:00
nethack.allison
06528d1002 3.3.2 to 3.4.0 2002-02-04 16:06:00 +00:00
nethack.allison
bd44ec4f65 wincap field updates
As Warwick suggested, instead of having fixed tile
sizes as options, allow specification of the size
explicitly.

Also, at Yitzhak's suggestion, provide a hook for
overriding the port's tile file name.  That name,
and the contents of the file it points to, will
be window-port specific of course.
2002-02-04 12:50:46 +00:00
warwick
c4a0faa9f1 test_move() fixes, for travel.
Turns lots of duplicated "flags.move = 0; nomul(0);" code into
a single instance, fixing the ones that weren't complete.

Doesn't feel_locations when only testing.
2002-02-04 10:41:22 +00:00
nethack.allison
2e030b4bf9 force tingling nose
<Someone> wrote:
>I also note that it's weird for your nose to stop tingling and your
>sense of smell to return to normal, if flags.beginner prevented your
>realising that your nose was tingling in the first place.
2002-02-04 10:38:20 +00:00
cohrs
1a197060b4 unseen monster messages
- watch messages if you can't see the watch now start "You hear"
- unseen spellcaster messages are shown as "Something", to remove
 some silly message pairs.
- unseen spellcaster that casts at itself causes no message
- recalc vision before spoteffects messsages, to avoid invalid "It"
2002-02-04 05:00:41 +00:00
arromdee
1a72729895 artifact.c comment 2002-02-04 04:01:47 +00:00
arromdee
0aa32a65c2 From the beta-testers; the ability to detect bad food should detect slime as
well as cockatrice meat.
2002-02-04 03:35:17 +00:00
arromdee
b739904c98 reflection
Found in the beta-test.
2002-02-04 03:24:17 +00:00
nethack.allison
25b357d344 Fix problem with cloth scratching the stone From a bug report. 2002-02-03 07:48:41 +00:00
cohrs
f057848eea address compilation warnings from gcc 2002-02-03 07:15:26 +00:00
nethack.allison
cb6a93641b Adjust window-port related option processing
to allow common parsing in the core, and direct access to the
results by the window port.

Notes:

o Adds a new field, wincap, to the window_procs
structure for setting bits related to the preference
features that the window port supports.  This allows
run-time determination of whether a particular option
setting is applicable to the running window port.  A
window-port is free to support as many, or as few,
of the available options as it wants.  Ensure that
only the ones supported have their corresponding bit
set in window_proc.wincap. [see chart in
doc/window.doc for help with that.]

o The settings I stuck into wincap for each window
port are almost certainly not accurate, so each port
team should review them.  You should only include
the ones that you will actually react to and make
adjustments for if the user changes that option.
Without the setting in wincap, the option won't even
show up in the 'O'ptions menu.

o preference_update() added to the window-port
interface, so that the window-port can be notified
if an option of interest (an option with its
corresponding bit set in wincap field) is
changed.

o provided a genl_preference_update() routine in
windows.c and used it for all the existing
window ports since they don't have a functional
one of their own yet.

o this messes around heavily with iflags and the options
arrays in options.c

o I hope I didn't break any port's existing code. I
tried not to.  The Mac however, in particular, should
be looked at because it suffered a namespace collision
with what I was working on around fontname.  It had
Mac specific font stuff in options.c. Please test
the Mac.
2002-02-03 05:31:47 +00:00
kmhugo
532242f07f Artifact prices
Each artifact has its own individual price, rather than being solely
based on the cost of its base item.
2002-02-02 19:21:33 +00:00
arromdee
c06397a703 blessed +2 fireproof speed boots
The inability to wish for a blessed +2 fireproof speed boots really was a bug.
Prefixes are checked for inside a loop which should allow them to be in any
order; for some reason +nnn and empty were outside that loop.

Also adding the secret door detection fix to betabugs 3.3.0.  (Is it safe to
hand-modify betabugs 3.3.2?)
2002-02-02 07:18:52 +00:00
cohrs
957e96a48a teleporting monster while swallowed
if player teleports a monster while swallowed on a noteleport level, the
player should not teleport along with the monster
2002-02-02 06:43:53 +00:00
kmhugo
b22af87dea Mac pragma tuneup
The Macintosh CodeWarrior port does not need nor support
the undefined pragmas.
2002-02-02 05:40:40 +00:00
kmhugo
9a9cf8fca8 Knights start with a lance
Make Knights start with a lance.
Eliminate "bashing" message if jousting.
Remove obsolete code from u_init.c.
2002-02-02 05:38:51 +00:00
cohrs
94c77febc0 dragons have scales, not fur
body_part should return "scales" for the HAIR part of a dragon
2002-02-02 05:00:08 +00:00
cohrs
4c394e385a SPLEVTYPE debug mode environment variable
SPLEVTYPE can have a value like "minetn-3,minend-2,soko2-2" and allows
someone in debug mode to select specific instances of random levels to use
in a test game.  Invalid values found in SPLEVTYPE are silently ignored.
2002-02-02 02:58:07 +00:00
cohrs
9c851c0c1d grappling hook followup
fix a compilation bug
2002-02-02 01:59:44 +00:00
cohrs
8eb206765d grappling hook ignores spot effects
Using a grappling hook can land you in water, lava, et al, but you were
unaffected.
2002-02-01 03:30:40 +00:00
cohrs
52141ce87f medium and large flyers do not flutter 2002-01-30 04:51:40 +00:00
cohrs
23d8116030 leather cloak should be made of leather 2002-01-30 03:28:57 +00:00
cohrs
6023565065 typo
"splatt" should be "splat"
2002-01-30 03:08:36 +00:00
cohrs
e4af2e9a0a correct updated cost of scalpel
rev 1.6 included the wrong updated cost
2002-01-29 08:36:22 +00:00
cohrs
273c0f7f2d remove left over debugging message 2002-01-29 08:07:13 +00:00
cohrs
f51556bc59 eggs and other breakables break falling down stairs
<Someone> questioned why eggs and potions don't break when falling downstairs.
For that matter, other breakables should as well.
2002-01-29 06:35:17 +00:00
cohrs
05ab895737 /tmp/msg 2002-01-29 04:19:46 +00:00
nethack.allison
6fea907683 disclose refinements:
- allow spaces between the different possibilities
- add a missing null at the end of the list of prefixes to prevent index()
  from going crazy
- slight re-wording of the Guidebook
2002-01-28 12:58:45 +00:00
nethack.allison
39f24cda78 Fix "gems in apply menu" From a bug report. 2002-01-28 11:38:25 +00:00
arromdee
1b08077c93 egg breaking
This fixes beta bug 2012.
2002-01-28 02:24:02 +00:00
cohrs
00cfa4a9f8 autodig chattiness
The autodig code still requires lots of interaction, because of all the
digging messages.  Make these messages behave more like boulder pushing
messages, where they only display if the previous move wasn't a push.
2002-01-27 23:45:47 +00:00
nethack.allison
b879096f07 Allow the options specific to the win32 graphical port
to be silently ignored by the tty port, so that the
config file can be conveniently shared between the two.
2002-01-27 13:18:28 +00:00
nethack.allison
359957ddbc One of the beta testers asked if the win32 scrolling
offset could be configured.  This allows it to be
set from the config file using:
	win32_map_cliparound_margin.
2002-01-27 04:36:39 +00:00
cohrs
35edad47ab unused variables 2002-01-27 04:19:44 +00:00
nethack.allison
8389fb1f29 >B1014 <Someone> [reported] change request - disclosure default
>
>	I'd like the default for "Would you like to see your <whatever>"
>	at the end of a game to be "y" instead of "n". I haven't asked
>	for full disclosure in order to have it skipped if I press the
>	space bar once too often by mistake.

This changes the way the flags.end_disclose array is used to
allow what this request is asking for.  It should be backward
compatible with previous "disclose" options.

The order that the end_disclore options are stored:
inventory, attribs, vanquished, genocided, conduct
There is an array in flags:
	end_disclose[NUM_DISCLOSURE_OPT];
with option settings for the each of the following:
iagvc [see disclosure_options in decl.c]:
Legal setting values in that array are:
	DISCLOSE_PROMPT_DEFAULT_YES  ask with default answer yes
	DISCLOSE_PROMPT_DEFAULT_NO   ask with default answer no
	DISCLOSE_YES_WITHOUT_PROMPT  always disclose and don't ask
	DISCLOSE_NO_WITHOUT_PROMPT   never disclose and don't ask

Those setting values can be used in the option
string as a prefix to each disclosure option
to get the desired behaviour for that option.

For backward compatibility, no prefix is actually required,
and the presence of a i,a,g,v, or c without a prefix sets
the corresponding value to DISCLOSE_YES_WITHOUT_PROMPT;

The actual prefixes used are controlled by the following in flag.h:
#define DISCLOSE_PROMPT_DEFAULT_YES	'y'
#define DISCLOSE_PROMPT_DEFAULT_NO	'n'
#define DISCLOSE_YES_WITHOUT_PROMPT	'+'
#define DISCLOSE_NO_WITHOUT_PROMPT	'-'

As far as the docs go, I don't know if I've got the *roff
stuff right.   The TeX stuff looks okay when I converted it to .pdf.

This increments EDITLEVEL.  If that is a problem, I can
add a routine to restore.c to perform a conversion of the old
values in flags. Let me know.
2002-01-27 01:26:59 +00:00
cohrs
df9092ccb5 scalpel and corrosion
make scalpel type METAL (for stainless steel), also increase cost to
reflect it's higher quality
2002-01-27 01:08:55 +00:00
cohrs
494b133ec2 getobj using counts from inventory display
getobj used display_inventory when "?" was selected.  However, any count
entered via the menu interface was lost.  Provide a new internal function
that can return both a letter and a count
2002-01-26 20:21:18 +00:00
nethack.allison
1454fb5e71 touchstone ugly check didn't take GOLDOBJ into consideration. 2002-01-26 15:16:06 +00:00
nethack.allison
69ce21fe0b Add a macro to provide universal consistency around the check
for what sort of creatures tend to revive.
2002-01-26 15:05:00 +00:00
nethack.allison
5482d1ab74 some special code
was added, specific to menustyle:combination in
menu_drop(), which short-circuited a redundant
prompt that <Someone> had complained about by returning
immediately if a special code came back from
ggetobj() in ggoresults.

The top of menu_drop, however, had created a
u_gold object and inserted it into the invent
chain, so you can't just return.  You have
to use a "goto" to get to drop_done, so that
the object is cleaned up.
2002-01-26 04:06:26 +00:00
arromdee
5182c9110e secret door detection
There was an old bug where a wand of secret door detection was identified
even though it didn't find anything.

It was unconfirmed, but I had no trouble confirming it.  It happened because
the wand worked on squares that were couldsee() but which (because they weren't
lit) you couldn't actually see.  The wand would detect the secret corridor and
then not display it because it was out of sight.

I fixed it to display the corridor, in sight or not (I could have had it not
detect anything, but the wand is fairly weak already.)
2002-01-26 02:26:28 +00:00
cohrs
82611f9cd8 inappropriate very difficult reading message
add missing set of parentheses around lense test in read_ability calculation
2002-01-25 08:08:33 +00:00