Commit Graph

380 Commits

Author SHA1 Message Date
cohrs
1dcd580e90 undef WIZARD
- quiet a gcc warning if WIZARD is undefined
2002-03-12 22:41:48 +00:00
jwalz
b964042e26 Another pre-ANSI bit. 2002-03-12 21:30:05 +00:00
nethack.allison
2baa20217f beta feedback - add more wc options
- splash_screen (boolean for whether to display splash screen at startup)
- player_selection:dialog|prompts

Also moves the font and window manipulation stuff in defaults.nh
further down the file, so that a tty users doesn't have to wade
through it all to find the character adjustment samples.
2002-03-12 05:15:40 +00:00
nethack.rankin
085498ba28 unleashing untame monsters
Fix several cases that earlier patches didn't address.
If a leashed monster becomes untame, detach the leash.
2002-03-11 08:46:54 +00:00
nethack.rankin
6c91a6bc04 leash groundwork
Add another parameter to m_unleash.  This should not introduce
any change in behavior.
2002-03-11 08:00:21 +00:00
nethack.rankin
bc8acf4a29 steed/leash bit
It's possible to leashed a saddled pet and them ride it,
but it wasn't possible to remove the leash while mounted.  This
fixes that; it also lets you put the leash on your steed while
mounted, but there's nothing wrong with that.
2002-03-11 06:41:47 +00:00
nethack.allison
d40c1b8202 (from Yitzhak) part1
part 1 touches core files
ntconf.h changes differ slightly from Yitzhak's original.

Makes Borland happy with current sources.
Hides "rawio" on Graphical Port which doesn't do anything with rawio
2002-03-10 17:35:16 +00:00
jwalz
3e6e2ff7c6 Lint part 2, mostly parameters. 2002-03-10 04:05:59 +00:00
arromdee
3294d0b818 wizkit
This fixes the wizkit so that if someone wishes for a non-object such as
a trap, not only is no message printed, but we don't try to create anything.

Incidentally, if you have two bad wizkit items in a row, you get told to hit
space to continue, then you can hit space, then the error message for the
second bad item is printed on the same line as the first hit space message.
(I haven't tried to fix that.)
2002-03-10 01:00:06 +00:00
jwalz
bab78d03c8 Lint part 1, unused variables, routines, and return codes. 2002-03-10 00:30:53 +00:00
cohrs
570a6e8bbd dipping into burning potions
- candles, et al, light via catch_lit
- non-weapons can be damaged
- only flammable items can be damaged, previously SILVER objects, for example,
  would get a message, but add_erosion_words wouldn't display a damage word
- can't track burnt food, put this in the "seems" case too
- PLASTIC items are is_flammable, which is appropriate for all current uses
- paper gets destroyed (special artifacts excepted by earlier check)
- a cursed potion now spills even if not dipping weapons
- charge for damaging unpaid objects this way
- still very hard to destroy PYEC this way
2002-03-09 19:28:16 +00:00
cohrs
6971feed31 more dead code 2002-03-09 17:42:22 +00:00
cohrs
ec2bdba94c writing in fog
- if you engrave in a cloud, the surface type should only be "air" if you're
on the air level
2002-03-09 07:17:00 +00:00
cohrs
a9835fd23c more update_inventory calls
in passive_obj and erode_armor
2002-03-09 06:55:52 +00:00
cohrs
ce22d17c01 lava effects while riding
- a case missed by the earlier lava patch, if you enter the lava while
mounted, your steed would be unaffected if you were lifesaved
- fix by making more code shared with the is_pool case
2002-03-09 04:10:24 +00:00
arromdee
97d7d7489b get rid of nori 2002-03-09 03:29:36 +00:00
nethack.allison
c839028a81 B10003 fixed. 2002-03-09 03:14:59 +00:00
nethack.allison
d34cc6f0d0 Something Janet pointed out. 2002-03-09 02:58:46 +00:00
cohrs
fb27e35694 fixing bad luck via sacrifice
- From a bug report: if sacrifice doesn't clear the timeout until prayer,
your bad luck is cleared, but if it does, your luck could remain negative
2002-03-09 02:56:46 +00:00
jwalz
e833424555 Make pre-ANSI compiler happy. 2002-03-09 01:59:47 +00:00
nethack.allison
416331f4d1 slap against floor while riding
> Greetings! <Someone> suggested I report this bug to you:
> in 3.3.1, riding a horse while blind, I ate a bad carrot (to
> unblind myself) and got the message, "Blecch! Rotten food! The
> world spins and you slap against the floor." Upon regaining
> consciousness, I found I was still safely mounted on my steed,
> raising the question of what part of me could have "slapped
> against the floor." I thought I would have fallen off my
> horse, or at least have slumped against it. <Someone> said in his
> reply to me on rgrn: "Looks like Yet Another message that
> fails to take riding into account; should be easy enough for
> the DevTeam to fix, though, since it's one that's already
> being modified for levitation and the like." Hope this helps.
> Thanks very much! <email deleted>
>
2002-03-07 23:54:15 +00:00
nethack.allison
982fc9354b As Kevin pointed out. 2002-03-07 23:36:53 +00:00
nethack.allison
364a4fa882 win32 shknam updates 2002-03-06 19:02:49 +00:00
nethack.allison
35df97d41c Support iflags.menu_tab_sep in the #enhance menu. 2002-03-06 17:46:49 +00:00
nethack.allison
d1b7781509 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
2002-03-06 16:51:17 +00:00
cohrs
3ca42c2265 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.
2002-03-06 04:14:30 +00:00
nethack.allison
233385401a 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.
2002-03-06 01:58:07 +00:00
nethack.allison
a618b5ed03 <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.)
2002-03-06 00:22:37 +00:00
cohrs
51fac7ac64 iron bars and wallification
- iron bars should be treated like doors with respect to wallification
2002-03-05 07:46:40 +00:00
cohrs
bf2190c55e 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
2002-03-05 06:21:05 +00:00
nethack.allison
3c0e37d9c9 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.
2002-03-05 05:03:48 +00:00
nethack.allison
615568369e no message 2002-03-05 04:57:50 +00:00
nethack.allison
df7a5c3f96 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.
2002-03-04 04:39:41 +00:00
cohrs
c8e3ea61f6 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
2002-03-03 20:29:36 +00:00
arromdee
8492e67ee5 obsolete comment tid 2002-03-03 05:29:30 +00:00
arromdee
a5b8144dd1 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.)
2002-03-03 05:01:09 +00:00
nethack.rankin
b1b5e13bfa #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.
2002-03-03 04:28:08 +00:00
nethack.rankin
359405abd3 fix B9003: prevent multiple touchstones in A's starting inventory 2002-03-03 04:14:54 +00:00
cohrs
c5c394023e 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"
2002-03-03 03:36:33 +00:00
arromdee
38e60fa8d1 jeweler shopkeeper touchstone (B3015)
This implements the suggestion in beta bug 3015.
2002-03-02 16:46:56 +00:00
arromdee
e4f694986c french fried food (B7010)
This implements the suggestion in beta bug 7010.
2002-03-02 16:18:39 +00:00
arromdee
8651a77b43 bug 8009 (dropping gold on altar)
This fixes beta bug 8009 (dropping gold on altar)
2002-03-02 16:06:12 +00:00
nethack.rankin
dad14c21a7 build fix
Some old compilers don't like to use the name of a function-like
macro for anything other than invoking that macro.
2002-03-02 06:16:37 +00:00
arromdee
d6d445d514 This fixes beta bug 8003 (half physical damage from gas spores) as well as a
minor bit of cleanup in mon.c.
2002-03-02 01:07:11 +00:00
nethack.rankin
e15c0d801f code sync nitpick
The cvs sources had a single space difference from nh-patches sources.
2002-03-02 00:57:52 +00:00
cohrs
8fb7664869 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
2002-02-27 05:15:48 +00:00
arromdee
c9f7360301 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.
2002-02-27 02:29:33 +00:00
arromdee
7827e17848 cloning minions
Janet pointed this one out to me...
2002-02-27 02:17:01 +00:00
cohrs
f33ab026b8 shattering corpses
- generalize which weapons can be shattered to be >= WOOD
2002-02-26 22:07:24 +00:00
cohrs
0f1615c7ad 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
2002-02-26 07:36:30 +00:00