Commit Graph

142 Commits

Author SHA1 Message Date
cohrs
fcf8af733b 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.
2002-02-24 06:56:02 +00:00
nethack.rankin
163f394fbe 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.
2002-02-24 06:12:57 +00:00
nethack.rankin
753cc7089f 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.
2002-02-24 05:05:11 +00:00
nethack.rankin
4bc3561a96 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.
2002-02-24 03:19:20 +00:00
nethack.rankin
a9b2f4f1ee 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.
2002-02-23 11:13:41 +00:00
nethack.rankin
6f90e5bc8c 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.
2002-02-23 10:55:43 +00:00
arromdee
6033bee646 pudding cloning (from beta-test) 2002-02-23 06:12:55 +00:00
nethack.rankin
6ce22770c9 Fire Brand vs sliming
Being hit by Fire Brand now stops the sliming process if you're
being turned into green slime.  And throwing an artifact up will give
artifact hit effects when it falls back down, making it possible to
hit yourself with Fire Brand (among other things).  Hitting yourself
with Vorpal Blade or the Tsurugi of Muramasa will never behead or
bisect you; hitting yourself with Stormbringer will drain levels.
(I hope the latter doesn't make it too easy for players to manipulate
their experience level.)

     This doesn't add artifact_hit() handling to mthrowu.  If monsters
ever start throwing artifacts that will need to be added.
2002-02-22 03:51:14 +00:00
cohrs
3910f060db fixes34.0 updates
+ entry for tty crash fix
+ entry mentioning USER_SOUNDS stuff
+ fix a typo
2002-02-21 07:14:13 +00:00
nethack.rankin
0eda61a24c fixes update 2002-02-19 03:45:51 +00:00
cohrs
cad85663de purple worm digestion
Generally modify the AD_DGST damage type so that:
- players and pets get no AD_DGST nutrition from G_NOCORPSE monsters
- undead no longer convey any nutrition, to either monsters or you-as-monster
  I decided on this based on the age typically assigned to undead corpses.
- digestion conveys 50% or normal nutrition, and takes 25% the time to eat.
- all AD_DGST attacks are now subject to gas spore explosions, including player
2002-02-18 23:36:46 +00:00
nethack.allison
839947d423 add non-controversial part of <Someone>'s "unpaid prices in inventory." 2002-02-17 14:42:48 +00:00
arromdee
06b7862906 air elementals
This reduces the damage of those unreasonably deadly air elementals.
2002-02-16 03:50:55 +00:00
nethack.rankin
2ed510a1b9 fix B7005: rogue quest map 2002-02-16 02:33:45 +00:00
cohrs
7345561da8 computing cost of stolen container contents
the cost didn't multiply get_cost value by the object quan
2002-02-15 05:12:38 +00:00
cohrs
fe4f8b3c9d whipping hidden mimic displays mimic name too early
rather than the "flick" message, just go directly to stumble_onto_mimic
2002-02-15 04:29:11 +00:00
nethack.rankin
5798dcc3e7 #enhance feedback
In the skills list shown by #enhance, add an annotation
for skills that have had enough practive to be advanced but
can't be because there aren't enough slots available or the
role-specific limit has been reached.
2002-02-13 06:36:31 +00:00
cohrs
aa989f2452 floating down on a trap in which you're already trapped
this would re-trap you, extending your trap time
2002-02-13 04:30:28 +00:00
cohrs
5b242aafce Vlad wants the Candelabrum
Since Vlad starts with the Candelabrum, he should want it back
2002-02-13 03:37:51 +00:00
cohrs
6d0723aae2 non-moving goal-oriented monsters
Monsters with goals like M3_WANTSBOOK often wouldn't move if another
monster was standing on the the goal object, add code for the missing case
2002-02-13 03:26:24 +00:00
nethack.allison
996d46ba10 fixes bit
-remove the entry I put in earlier, but Ken A. says shouldn't be there.
-remove a blank line I unintentionally added.
2002-02-11 01:45:58 +00:00
arromdee
14a6d90763 mirrors
Invisibility should be treated consistently regarding passive reflection of
gaze attacks and explicit mirror use against gaze attacks.
2002-02-11 00:42:44 +00:00
nethack.allison
1c23dc1d5e Add some betabugs entries to fixes34.0 2002-02-10 20:22:27 +00:00
arromdee
a74489a014 unicorn horn in potion
Fix beta bug #3021.  I also took out the redundant wishing entry.
2002-02-09 07:19:13 +00:00
nethack.allison
4b364d6927 modifying 'O' command behavour
I was asked how a window-port controls which options are
set to SET_IN_FILE, DISP_IN_GAME, or SET_IN_GAME.

This provides a run-time way to change an option's SET_IN_FILE,
DISP_IN_GAME, or SET_IN_GAME status through code, rather
than clog up options.c with a lot of compile-time #ifdefs
for different ports to offer different default option settings.
Update the documentation to reflect this.
2002-02-07 03:23:55 +00:00
cohrs
5cff91fadf demon summoning using wrong alignment
make msummon pass along A_NONE, allowing summoning of any demon, not just
chaotic ones
2002-02-06 06:56:53 +00:00
cohrs
b277a17fb4 untrapping traps in unreachable locations
don't allow untrapping of an adjacent trap you cannot reach by movement
2002-02-06 05:39:43 +00:00
nethack.allison
b407cf3dcf fixes34.0 updates
touchstones
win32 gui
wish word order
window-port preferences
disclosure prompts (or not)
2002-02-05 11:29:06 +00:00
nethack.allison
86a5808030 Documentation updates
Document the change to the window options and
correct a typo that Yitzhak pointed out in window.doc
2002-02-04 17:03:08 +00:00
nethack.allison
06528d1002 3.3.2 to 3.4.0 2002-02-04 16:06:00 +00:00
nethack.allison
43c3d9c736 Add fixes34.0, send fixes33.2 to the attic
Please update fixes34.0 from this point, rather than fixes33.2.
2002-02-04 13:25:16 +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
nethack.allison
ab55d29244 Add final slash to URL
in README, Guidebook, dat/history. (from <Someone>)
2002-02-03 17:30:58 +00:00
nethack.allison
d554a8fcdc update window.doc document. 2002-02-03 16:29:41 +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
830fc78d36 fixes33.2 tuneup
Log recent additions
2002-02-03 05:13:12 +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
cohrs
16193dc518 fixes updates
update fixes to include updates sent via patches
2002-02-02 05:51:08 +00:00
cohrs
f5fde02752 hilite_pet Guidebook entry
update hilite_pet entry so it allows for variations possible in current ports
and be less Unix-specific
2002-02-02 03:24:35 +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
ea7431f2a8 various Guidebook updates
+ attributes may exceed 18 for non-humans
+ update spell casting paragraph to loosely describe 3.3 style spell casting
+ correct description of the output of the '+' command
+ note default value for 'mail' option
2002-01-29 08:03:24 +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
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
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
arromdee
02a39530ab fixes tid 2002-01-26 02:32:32 +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
f73a1879c9 landmines and boulders
Make pushing a boulder onto a landmine share code with the trap case,
resulting in pits, waking sleepers, et al.
Don't leave a boulder suspended over the new pit, fill it.
Make sure any remaining boulder is placed on top of the pile.
If player sets off landmine, monsters killed are credited to/blamed on player.
2002-01-25 06:38:42 +00:00