shktalk patch - speech by polymorphed shopkeepers (trunk only)

Add a patch attached to one of the bug reports sent by <email deleted>
which prevents shopkeepers who have been polymorphed into animals from
speaking.  Some messages are altered so that the player gets informed about
shop interactions without it seeming to be spoken by the shk, other messages
are suppressed outright.  I cleaned it up a bit (mostly formatting, but the
``getcad'' section seemed to have a logic error--using goto to jump into
the middle of an if-then-else is evil...) and implemented a TODO comment he
added (to use mbodypart() when second shopkeeper at end of game shakes his
head; also, skip that phrase if shk is in headless form--futility while
attempting to test this led to discovery of the misplaced parenthesis bug).
This commit is contained in:
nethack.rankin
2006-05-21 04:22:09 +00:00
parent d736570d01
commit 1c66428a26
2 changed files with 64 additions and 33 deletions

View File

@@ -137,6 +137,7 @@ preform autopickup and/or report on objects at the spot when a failed #untrap
thrown silver weapon hitting silver-hating poly'd hero got double silver damage
wielded silver weapon hitting silver-hating poly'd hero lacked silver message
don't welcome the hero to Delphi if the Oracle was angered before first entry
shopkeeper polymorphed into animal form can no longer speak
Platform- and/or Interface-Specific Fixes