]> granicus.if.org Git - nethack/log
nethack
8 years agoFix mnearto return value confusion
Pasi Kallinen [Sat, 31 Dec 2016 22:21:53 +0000 (00:21 +0200)]
Fix mnearto return value confusion

This caused appeased shopkeepers returning to their shops being killed.

8 years agoSilence Yet Another Valgrind complaint
Pasi Kallinen [Thu, 29 Dec 2016 17:19:00 +0000 (19:19 +0200)]
Silence Yet Another Valgrind complaint

8 years agoSilence some Valgrind errors
Pasi Kallinen [Wed, 28 Dec 2016 20:52:02 +0000 (22:52 +0200)]
Silence some Valgrind errors

Need to have the allocated memory explicitly cleared for Valgrind
to know it.  We should probably start using calloc or something...

8 years agoModified player name list to include new team members.
karnov [Wed, 28 Dec 2016 04:08:05 +0000 (23:08 -0500)]
Modified player name list to include new team members.

8 years agoFix valgrind complaint in wizmode terrain
Pasi Kallinen [Fri, 23 Dec 2016 11:34:06 +0000 (13:34 +0200)]
Fix valgrind complaint in wizmode terrain

The code was writing characters into row[x-1] in the loop, but putting the
string terminator at row[x], leaving one character between uninitialized.

8 years agotty's compress_str(), core's dat/keyhelp
PatR [Tue, 20 Dec 2016 20:43:35 +0000 (12:43 -0800)]
tty's compress_str(), core's dat/keyhelp

Rewrite 3.6.1's compress_str() to avoid peeking past the end of the
input string.  This should eliminate the reported valgrind complaint.
The problem was noticed for post-3.6.0 code introduced [by me...] last
June, but it looks like it was present in the old code too.

Also, fix the wording in the paragraph about NUL in the keyhelp text.

tty_putstr() always passes non-message window text through compress_str(),
clobbering usage of two spaces to separate sentences.  putstr()'s caller
ought to have more control over that (possibly via its hardly ever used
'attribute' arg?).

8 years agoFix wishing for tins of specific type
Pasi Kallinen [Wed, 14 Dec 2016 16:27:57 +0000 (18:27 +0200)]
Fix wishing for tins of specific type

I believe this bug already existed, but was only exposed by
my wishing parser change post-3.6.0

8 years agoSet max players in sysconf, not in the shell script
Pasi Kallinen [Wed, 14 Dec 2016 14:45:06 +0000 (16:45 +0200)]
Set max players in sysconf, not in the shell script

8 years agoImpossible instead of segfault in cursed
Pasi Kallinen [Mon, 12 Dec 2016 15:42:02 +0000 (17:42 +0200)]
Impossible instead of segfault in cursed

While fuzz testing, I've seen segfault a handful of times in here,
coming from do_takeoff(). Looks like context.takeoff.what is stale,
having WORN_BLINDF, but we're not wearing the blindfold anymore.

Haven't been able to trace it down yet, so guard it with impossible.

8 years agofix #H4597 - sitting on level teleport trap
PatR [Fri, 9 Dec 2016 01:22:59 +0000 (17:22 -0800)]
fix #H4597 - sitting on level teleport trap

During #sit:  "You sit down.  You step on a level teleporter."
Switch to alternate phrasing for #sit.

Webs and polymorph traps had similar issues.

8 years agofix #H4706 - non-zero hit points for poison death
PatR [Fri, 9 Dec 2016 00:39:55 +0000 (16:39 -0800)]
fix #H4706 - non-zero hit points for poison death

For "the poison was deadly" against hero, hit points were set to -1
(which gets displayed as 0 when shown) but the status lines weren't
being updated, so stale positive HP value was visible during final
disclosure.

8 years agofix some recent lint
PatR [Fri, 9 Dec 2016 00:01:09 +0000 (16:01 -0800)]
fix some recent lint

8 years agoFix segfault when attacked while polyed into disenchanter
Pasi Kallinen [Wed, 7 Dec 2016 18:23:07 +0000 (20:23 +0200)]
Fix segfault when attacked while polyed into disenchanter

The pointer keeping tabs of monster's current weapon was
not cleared.

How to trigger: Get hit by a monster wielding a weapon,
teleport to another level, poly into disenchanter, get hit
by any monster with AD_PHYS attack and not wielding any weapon.

8 years agoFix some issues found with fuzz testing
Pasi Kallinen [Wed, 7 Dec 2016 15:53:03 +0000 (17:53 +0200)]
Fix some issues found with fuzz testing

Mostly to do with relocating monsters when the level is already full,
and unsticking a monster if it gets relocated.

8 years agoAdd missing symbols to Blank symset and Guidebook
Pasi Kallinen [Sun, 4 Dec 2016 19:38:59 +0000 (21:38 +0200)]
Add missing symbols to Blank symset and Guidebook

8 years agoFix segfault when looking at detected monster hiding under unknown armor
Pasi Kallinen [Fri, 2 Dec 2016 20:03:10 +0000 (22:03 +0200)]
Fix segfault when looking at detected monster hiding under unknown armor

This segfault happened when a detected monster such as a garter snake was
hiding under an unknown/unseen armor of a type that has no description
field (eg. a leather armor), and you farlooked at the monster.

At the same time, simplifies the code a tiny bit.

8 years agoMerge branch 'ais523-movespeed' into NetHack-3.6.0
Alex Smith [Fri, 2 Dec 2016 17:10:37 +0000 (17:10 +0000)]
Merge branch 'ais523-movespeed' into NetHack-3.6.0

8 years agoMake Ogresmasher grant 25 constitution
Pasi Kallinen [Mon, 14 Nov 2016 18:22:33 +0000 (20:22 +0200)]
Make Ogresmasher grant 25 constitution

8 years agoMake Dragonbane confer reflection when wielded
Pasi Kallinen [Mon, 14 Nov 2016 17:34:16 +0000 (19:34 +0200)]
Make Dragonbane confer reflection when wielded

8 years agoFix wrong material for novels
Pasi Kallinen [Sun, 13 Nov 2016 13:25:40 +0000 (15:25 +0200)]
Fix wrong material for novels

HI_PAPER is color, PAPER is material - the novel object definition
was using the wrong one. The caused the novel material to be gold.

8 years agoChangelog for movement speed changes
Alex Smith [Sat, 12 Nov 2016 01:28:47 +0000 (01:28 +0000)]
Changelog for movement speed changes

8 years agoMake free actions easier to predict, nonfree actions more predictable
Alex Smith [Sat, 12 Nov 2016 01:24:03 +0000 (01:24 +0000)]
Make free actions easier to predict, nonfree actions more predictable

This fixes melee kiting more comprehensively (it now doesn't work
against slower monsters either), and prevents you doing things like
opening up a gap when running from an imp (you couldn't do that in
3.4.3).

8 years agoSanity check for returning Mjollnir animation
Pasi Kallinen [Fri, 11 Nov 2016 16:18:55 +0000 (18:18 +0200)]
Sanity check for returning Mjollnir animation

8 years agoMake older corpses not taste okay
Pasi Kallinen [Thu, 27 Oct 2016 18:44:38 +0000 (21:44 +0300)]
Make older corpses not taste okay

Post-3.6.0 change made practically all corpses taste okay.
Change it so there's always a 10% chance for the corpse
to taste terrible, and increase the chance if the corpse
is slightly old.

8 years agoMerge branch 'ais523-elbereth' into NetHack-3.6.0
Alex Smith [Fri, 21 Oct 2016 22:30:09 +0000 (23:30 +0100)]
Merge branch 'ais523-elbereth' into NetHack-3.6.0

8 years agoAccept custom level annotations at the level teleport prompt
Pasi Kallinen [Tue, 18 Oct 2016 20:19:12 +0000 (23:19 +0300)]
Accept custom level annotations at the level teleport prompt

via UnNetHack, original implementation by aaxelb

8 years agoWith fragile wands, use snap instead of break
Pasi Kallinen [Tue, 18 Oct 2016 16:42:20 +0000 (19:42 +0300)]
With fragile wands, use snap instead of break

8 years agoChangelog for the Elbereth changes
Alex Smith [Tue, 18 Oct 2016 15:52:21 +0000 (16:52 +0100)]
Changelog for the Elbereth changes

8 years agoWielding Demonbane prevents demons summoning friends
Pasi Kallinen [Tue, 18 Oct 2016 15:07:53 +0000 (18:07 +0300)]
Wielding Demonbane prevents demons summoning friends

8 years agoUgh, why does NH3's commit process have to differ from NH4's?
Alex Smith [Mon, 17 Oct 2016 17:29:09 +0000 (18:29 +0100)]
Ugh, why does NH3's commit process have to differ from NH4's?

8 years agoChange the rules for Elbereth erosion
Alex Smith [Mon, 17 Oct 2016 17:26:44 +0000 (18:26 +0100)]
Change the rules for Elbereth erosion

If you attack a monster under Elbereth protection, and it wasn't
scuffed by the attack itself, then it'll be automatically removed
with an alignment penalty. It no longer fades from scaring monsters;
only from being abused to attack monsters while protected.

8 years agoDifferentiate between monster anger from attacks and from other causes
Alex Smith [Mon, 17 Oct 2016 17:15:57 +0000 (18:15 +0100)]
Differentiate between monster anger from attacks and from other causes

setmangry() and wakeup() were being used for multiple purposes. Add an
extra parameter to track which. This fixes several minor bugs (e.g.
whether monsters with no eyes were angered by (useless) gaze attacks
against them previously depended on the state of a UI option, and
the Minetown guards would be annoyed if you used a cursed scroll of
tame monster on a shopkeeper). It's also a prerequisite for the
Elbereth changes I'm working on.

8 years agoFix engrave.c; I used the wrong commit command
Alex Smith [Mon, 17 Oct 2016 16:34:08 +0000 (17:34 +0100)]
Fix engrave.c; I used the wrong commit command

8 years agoMake the Elbereth restrictions more flavour-consistent
Alex Smith [Mon, 17 Oct 2016 16:31:00 +0000 (17:31 +0100)]
Make the Elbereth restrictions more flavour-consistent

Elbereth now has to be on a square by itself; it's hard to justify
why text before it would prevent it working if text after it fails
to prevent it working.

8 years agoWielding Trollsbane prevents trolls from reviving
Pasi Kallinen [Sat, 15 Oct 2016 16:47:04 +0000 (19:47 +0300)]
Wielding Trollsbane prevents trolls from reviving

8 years agoPut throne room gold in the chest
Pasi Kallinen [Sat, 15 Oct 2016 07:26:20 +0000 (10:26 +0300)]
Put throne room gold in the chest

8 years agoX11: Handle define-lines in NetHack.ad
Pasi Kallinen [Fri, 14 Oct 2016 13:43:49 +0000 (16:43 +0300)]
X11: Handle define-lines in NetHack.ad

xrdb can load a X recource file with #define-lines, but NetHack
cannot. Substitute the defines in Makefile during compile.

Requires grep

8 years agomore lint and formatting
PatR [Thu, 13 Oct 2016 19:08:06 +0000 (12:08 -0700)]
more lint and formatting

Fix a C89/C90 complaint about a declaration following executable code.
The rest is formatting (of stuff I saw rather than systematic fixups).

8 years agoAllow toggling menu for any travel target list
Pasi Kallinen [Thu, 13 Oct 2016 17:16:21 +0000 (20:16 +0300)]
Allow toggling menu for any travel target list

8 years agoOccasionally remove maze dead ends, creating loops
Pasi Kallinen [Wed, 12 Oct 2016 15:39:24 +0000 (18:39 +0300)]
Occasionally remove maze dead ends, creating loops

8 years agolint fix
PatR [Tue, 11 Oct 2016 23:03:45 +0000 (16:03 -0700)]
lint fix

8 years agoShow correct keybind in ext cmd list
Pasi Kallinen [Tue, 11 Oct 2016 20:03:32 +0000 (23:03 +0300)]
Show correct keybind in ext cmd list

8 years agoFree allocated memory
Pasi Kallinen [Tue, 11 Oct 2016 15:34:41 +0000 (18:34 +0300)]
Free allocated memory

8 years agoFix valgrind complaint
Pasi Kallinen [Tue, 11 Oct 2016 14:59:35 +0000 (17:59 +0300)]
Fix valgrind complaint

8 years agoAdd wizmode command to recreate current level
Pasi Kallinen [Tue, 11 Oct 2016 14:26:32 +0000 (17:26 +0300)]
Add wizmode command to recreate current level

8 years agoSometimes create mazes with wide corridors
Pasi Kallinen [Tue, 11 Oct 2016 09:45:24 +0000 (12:45 +0300)]
Sometimes create mazes with wide corridors

...and/or thick walls.

8 years agoUse even more enums
Pasi Kallinen [Mon, 10 Oct 2016 18:55:23 +0000 (21:55 +0300)]
Use even more enums

8 years agoUse more enums
Pasi Kallinen [Mon, 10 Oct 2016 13:18:14 +0000 (16:18 +0300)]
Use more enums

We're already using enums, so convert some already existing defines.

8 years agoDon't clobber up and down ext cmd binds
Pasi Kallinen [Sun, 9 Oct 2016 15:10:28 +0000 (18:10 +0300)]
Don't clobber up and down ext cmd binds

8 years agoGive quest guardians some equipment
Pasi Kallinen [Sat, 8 Oct 2016 18:09:31 +0000 (21:09 +0300)]
Give quest guardians some equipment

8 years agoTypofix
Pasi Kallinen [Sat, 8 Oct 2016 11:11:20 +0000 (14:11 +0300)]
Typofix

8 years agoHero polyed into ghoul can eat only non-veggy corpses or eggs
Pasi Kallinen [Sat, 8 Oct 2016 10:57:39 +0000 (13:57 +0300)]
Hero polyed into ghoul can eat only non-veggy corpses or eggs

Change via dNetHack.  Restrict heroes polymorphed into ghouls
so they can only eat non-vegan corpses and eggs.  This matches
more closely what pet ghouls prefer.

8 years agoAdd couple hallu monsters
Pasi Kallinen [Sat, 8 Oct 2016 10:16:46 +0000 (13:16 +0300)]
Add couple hallu monsters

8 years agoMake kicking activate statue trap
Pasi Kallinen [Sat, 8 Oct 2016 09:47:27 +0000 (12:47 +0300)]
Make kicking activate statue trap

Change via dNetHack

8 years agoPet starting apport equals your current charisma
Pasi Kallinen [Sat, 8 Oct 2016 08:55:22 +0000 (11:55 +0300)]
Pet starting apport equals your current charisma

8 years agokeybinding lint and formatting
PatR [Fri, 7 Oct 2016 20:14:54 +0000 (13:14 -0700)]
keybinding lint and formatting

8 years agoUse symbolic name STONE for levl typ 0
Pasi Kallinen [Fri, 7 Oct 2016 12:43:27 +0000 (15:43 +0300)]
Use symbolic name STONE for levl typ 0

8 years agowin32: Save and load map colors from registry
Pasi Kallinen [Thu, 6 Oct 2016 17:55:30 +0000 (20:55 +0300)]
win32: Save and load map colors from registry

8 years agoFixes entry for cursor positioning via menu
Pasi Kallinen [Thu, 6 Oct 2016 10:38:09 +0000 (13:38 +0300)]
Fixes entry for cursor positioning via menu

8 years agoIron bars, water and lava are not interesting for travel
Pasi Kallinen [Thu, 6 Oct 2016 10:33:54 +0000 (13:33 +0300)]
Iron bars, water and lava are not interesting for travel

8 years agoAccessibility: Pick travel/cursor targets from a menu
Pasi Kallinen [Thu, 6 Oct 2016 10:03:56 +0000 (13:03 +0300)]
Accessibility: Pick travel/cursor targets from a menu

Adds two new configurable keys to the cursor targeting: 'A' (getpos.menu)
and 'a' (getpos.menu.cansee). First one shows a menu of all interesting
glyphs on the map, second one shows only those in sight.

Travel command also now obeys the "request menu" -prefix, showing
the menu with interesting targets in sight, and then traveling there.

Idea via the NetHack accessibility research by Alexei Pepers.

8 years agoShow menu control keys in help menu
Pasi Kallinen [Thu, 6 Oct 2016 05:53:38 +0000 (08:53 +0300)]
Show menu control keys in help menu

8 years agoAdd key rebinding
Pasi Kallinen [Wed, 5 Oct 2016 14:19:06 +0000 (17:19 +0300)]
Add key rebinding

This is a modified version of Jason Dorje Short's key rebinding
patch, and allows also binding special keys, such as the ones
used in getloc and getpos.

One of the ways to play NetHack on nethack.alt.org is via a HTML
terminal in browser. Unfortunately this means several ctrl-key
combinations cannot be entered, because the browser intercepts
those. Similar thing applies to some international keyboard layouts
on Windows. With this patch, the user can just rebind the command
to a key that works best for them.

I've tested this on Linux TTY, X11, and Windows TTY and GUI.

8 years agotribute: The Shepherd's Crown
PatR [Wed, 5 Oct 2016 00:08:16 +0000 (17:08 -0700)]
tribute: The Shepherd's Crown

8 years agoAdd configurable symbol entry for strange object
Pasi Kallinen [Mon, 3 Oct 2016 06:36:28 +0000 (09:36 +0300)]
Add configurable symbol entry for strange object

8 years agoFix Blank symset
Pasi Kallinen [Sat, 1 Oct 2016 21:03:33 +0000 (00:03 +0300)]
Fix Blank symset

8 years agoShow some timed properties in #timeout
Pasi Kallinen [Thu, 29 Sep 2016 15:48:52 +0000 (18:48 +0300)]
Show some timed properties in #timeout

Also simplify the levitation_dialogue a bit

8 years agoFix a bug binding menu command to a default object class character
Pasi Kallinen [Sun, 25 Sep 2016 15:37:24 +0000 (18:37 +0300)]
Fix a bug binding menu command to a default object class character

Due to a wrong looping variable, it was possible to bind a menu accelerator key
to a default object class.

8 years agoGive feedback just before timed levitation runs out
Pasi Kallinen [Sat, 24 Sep 2016 17:59:19 +0000 (20:59 +0300)]
Give feedback just before timed levitation runs out

8 years agoAdd missing dark room symbol to the Guidebook
Pasi Kallinen [Sat, 24 Sep 2016 16:51:43 +0000 (19:51 +0300)]
Add missing dark room symbol to the Guidebook

8 years agoAdd missing glyphs to Blank symset
Pasi Kallinen [Sat, 24 Sep 2016 16:04:38 +0000 (19:04 +0300)]
Add missing glyphs to Blank symset

8 years agoSeparate function to check for prefix command keys
Pasi Kallinen [Sat, 24 Sep 2016 14:18:07 +0000 (17:18 +0300)]
Separate function to check for prefix command keys

8 years agoMove getpos return values to header
Pasi Kallinen [Sat, 24 Sep 2016 14:07:42 +0000 (17:07 +0300)]
Move getpos return values to header

8 years agoShow keys in travel help wrapped in single quotes
Pasi Kallinen [Wed, 21 Sep 2016 16:25:25 +0000 (19:25 +0300)]
Show keys in travel help wrapped in single quotes

8 years agoMake it easier to add entries to the help-menu
Pasi Kallinen [Wed, 21 Sep 2016 15:43:01 +0000 (18:43 +0300)]
Make it easier to add entries to the help-menu

8 years agoAdd completely blank symbol set
Pasi Kallinen [Tue, 20 Sep 2016 18:03:47 +0000 (21:03 +0300)]
Add completely blank symbol set

The blank symbol set can be used with screen reader software
to prevent it from reading the map symbols.

Prevent a segfault when looking at the map and many symbols
share the same character. Don't list too many symbols when
looking at those, if many share the same character.

8 years agoAdd full compass coordinate mode for screen readers
Pasi Kallinen [Tue, 20 Sep 2016 15:36:03 +0000 (18:36 +0300)]
Add full compass coordinate mode for screen readers

8 years agofixes entry
Pasi Kallinen [Mon, 19 Sep 2016 12:47:12 +0000 (15:47 +0300)]
fixes entry

8 years agoHorses have a tiny chance of being generated with a saddle
Pasi Kallinen [Mon, 19 Sep 2016 12:44:04 +0000 (15:44 +0300)]
Horses have a tiny chance of being generated with a saddle

Saddles are rare. Make them less so by giving domestic saddleable
creatures 1% chance of being generated with a saddle.

8 years agoFixes entries
Pasi Kallinen [Fri, 16 Sep 2016 19:05:32 +0000 (22:05 +0300)]
Fixes entries

8 years agoShow mon vs mon attack messages only when target is visible
Pasi Kallinen [Fri, 16 Sep 2016 18:28:19 +0000 (21:28 +0300)]
Show mon vs mon attack messages only when target is visible

The visibility check in mattackm doesn't guarantee both the
attacker and defender can be seen by hero. Before giving
messages, check more strictly whether we could see the
message happening - either really seeing the monster or
sensing the monster by some other means, depending on
the message.  This should remove most of the "It" messages.

Also unhide mimics who get gazed by umber hulks.  We could
keep the mimic hidden and make the messages reflect the
hulk gazing at the thing the mimic is mimicing, but this
is much easier.  This fixes bz631 / H4500

8 years agoDifferentiate the symset and roguesymset menu prompts
Pasi Kallinen [Fri, 16 Sep 2016 12:50:42 +0000 (15:50 +0300)]
Differentiate the symset and roguesymset menu prompts

8 years agoUpdate X11 style, define button rounding
Pasi Kallinen [Thu, 15 Sep 2016 15:45:18 +0000 (18:45 +0300)]
Update X11 style, define button rounding

8 years agoBetter default style for X11
Pasi Kallinen [Thu, 15 Sep 2016 15:23:15 +0000 (18:23 +0300)]
Better default style for X11

This tries to mimic the terminal, and adds some defines making it easier
to configure.

8 years agofix #H4521 - distant squeak
PatR [Mon, 12 Sep 2016 07:24:14 +0000 (00:24 -0700)]
fix #H4521 - distant squeak

Vary the message about hearing a squeak when it is close.

8 years agoFix wrong parameter order
Pasi Kallinen [Tue, 6 Sep 2016 14:35:59 +0000 (17:35 +0300)]
Fix wrong parameter order

8 years agofix bz623 - 'D' when not carrying anything
PatR [Fri, 2 Sep 2016 09:38:10 +0000 (02:38 -0700)]
fix bz623 - 'D' when not carrying anything

With menustyle set to "full" or "partial", using 'D' when not
carrying anything gave no feedback.  (Modes "traditional" and
"combination" give "you have nothing to drop" via ggetobj().)

Also, there's no need to reset in-progress armor removal, lock
picking, or trap setting if you don't actually drop anything.
The inventory they're set to operate on or with stays intact.

8 years agoExpand blind/accessibility section in the Guidebook
Pasi Kallinen [Fri, 2 Sep 2016 06:24:22 +0000 (09:24 +0300)]
Expand blind/accessibility section in the Guidebook

8 years agocorpse eating feedback
PatR [Fri, 2 Sep 2016 01:26:09 +0000 (18:26 -0700)]
corpse eating feedback

Eating a corpse and being told that it "tastes okay" (relatively
recent change so that omnivores don't find the taste of everything
to be "terrible") doesn't warrant an exclamation point.

8 years agoFor travel target location, report if no known travel path
Pasi Kallinen [Wed, 31 Aug 2016 19:00:45 +0000 (22:00 +0300)]
For travel target location, report if no known travel path

Yet another accessibility feature.  When asked for a location
to travel, and autodescribe is on, the location description
has "(no travel path)" appended, if there is no known path
to that location.

8 years agoAccessibility messages when run or travel is interrupted
Pasi Kallinen [Mon, 29 Aug 2016 17:47:36 +0000 (20:47 +0300)]
Accessibility messages when run or travel is interrupted

These were inspired by the blind accessibility changes by
Alexei Pepers.

8 years agoAlso pass raw printed texts to the msghandler
Pasi Kallinen [Sat, 27 Aug 2016 18:07:33 +0000 (21:07 +0300)]
Also pass raw printed texts to the msghandler

8 years agoWait for the message handler process to finish
Pasi Kallinen [Sat, 27 Aug 2016 17:13:17 +0000 (20:13 +0300)]
Wait for the message handler process to finish

8 years agofix #H4492 - ing_suffix("throw") gave "throwwing"
PatR [Wed, 24 Aug 2016 02:37:42 +0000 (19:37 -0700)]
fix #H4492 - ing_suffix("throw") gave "throwwing"

The bug report assumed "you mime throwwing something" feedback
from 't-' was a typo, but 'throwwing' gets generated from 'throw'.
Change ing_suffix() not to double final 'w'.  Presumeably 'w' and 'y'
are exceptions because they're sometimes used as vowels.

Change 'strrchr()' to 'rindex()' like the rest of nethack.  Someday
those will need to be switched the other way around.

Add some missing bounds checking, although since ing_suffix() isn't
used for user-supplied strings, that's probably superfluous.

8 years agoFix Guidebook typos
Pasi Kallinen [Sun, 21 Aug 2016 07:05:45 +0000 (10:05 +0300)]
Fix Guidebook typos

8 years agoFix tribute typos
Pasi Kallinen [Sun, 21 Aug 2016 06:16:22 +0000 (09:16 +0300)]
Fix tribute typos

Ran the tribute file through a spellchecker, and double-checked with Pat as he
added most of the tributes.

8 years agofix #H4482 - "a some <foo> corpses"
PatR [Sat, 13 Aug 2016 18:17:32 +0000 (11:17 -0700)]
fix #H4482 - "a some <foo> corpses"

farlook was changed (end of December) to use doname instead of xname
to yield more info for items which had already been seen up close,
but it gave away info about ones which hadn't.  So doname was changed
(end of April) to use "some" instead of precise quantity (when the
quantity is greater than 1) for the latter, but that doesn't work
well with corpse_xname() when the hero is blind, yielding "a some
<foo> corpses".  While testing the first fix attempt, I noticed that
pickup gave "you can only lift some of the some <foo> corpses".

This fix is far from perfect.  farlook can still say "some <item>s"
but lookhere and pickup always say "N <item>s".  Picking up a stack
while blind will show "N <item>s" in inventory display, but dropping
it while still blind will revert to "some <item>s" for farlook.

8 years agofix #H4476 - monster class via member of class
PatR [Fri, 12 Aug 2016 01:53:52 +0000 (18:53 -0700)]
fix #H4476 - monster class via member of class

Blessed genocide of "titans" wiped out all quadrupeds because
"titan" is a prefix of "titanothere".  After class letters and
class descriptions have been rejected, Have name_to_monclass()
resort to name_to_mon() instead of doing its own less detailed
name matching.

8 years agofix #H4475 - shop message about disenchanted item
PatR [Wed, 10 Aug 2016 09:04:09 +0000 (02:04 -0700)]
fix #H4475 - shop message about disenchanted item

drain_item() always assumed player was responsible, so called
costly_alteration() to adjust shop price of disenchanted item.
If it was unpaid and the effect was caused by a disenchanter
attack rather than by the hero, the feedback was nonsensical.

This also lets a disenchanter hit worn rings, amulet, or blindfold
if no armor gets targetted.  Amulets, blindfolds, and most rings
have no charge to be drained, but several types of rings do.

8 years agofix #H4472 & #H4473 - incorrect total_tiles_used
PatR [Sun, 7 Aug 2016 02:30:44 +0000 (19:30 -0700)]
fix #H4472 & #H4473 - incorrect total_tiles_used

The value calculated for total_tiles_used never got adjusted for
displaying statues-as-monsters.  The most common configuration(s)
using tiles don't care, but the combination of X11 plus USE_XPM
needs an accurate value there.