Commit Graph

1523 Commits

Author SHA1 Message Date
warwick
fb4f19662b Honour more WINCAP flags. 2002-07-29 05:19:49 +00:00
warwick
0b7c39a331 alloc, not malloc 2002-07-29 05:16:54 +00:00
nethack.allison
6baca91d81 comment update mon.c 2002-07-28 23:22:24 +00:00
nethack.allison
33864d0cf7 flag changes follow-up makedefs.c 2002-07-28 16:28:26 +00:00
nethack.allison
46721b5a91 flag changes
Several flags added since 3.4.0 were destined for flags
(to be saved with the game) but were placed in iflags for
savefile compatibility.  These include:
 boolean  lootabc;	/* use "a/b/c" rather than "o/i/b" when looting */
 boolean  showrace;	/* show hero glyph by race rather than by role */
 boolean  travelcmd;	/* allow travel command */
 int	 runmode;	/* update screen display during run moves */

This patch has no effect unless you define this in your port's
XXconf.h file.
#define SAVEFILE_340_CONVERT	/* allow moving of some iflags fields to flags
					without destroying savefile compatibility */
Without it, the new flags remain in "iflags."  With it, the flags are moved to
"flags" and the structures are converted when the save file is read. There
is no reverse compatibility.  If you save the game after conversion, you
can't load the savefile on 3.4.0, only 3.4.1.
2002-07-28 16:03:00 +00:00
nethack.rankin
aedd6947d4 runmode option
Provide user control over screen updating for multi-step movement
(run via shift, control, &c and also travel).  [See cvs history for
fixes34.1 for more details.]
2002-07-28 10:45:46 +00:00
nethack.rankin
c5540f4687 runmode option
<Someone>'s submittal of his `showrun' option has goaded
me to finally finish something I tried to implement some time back.
This adds a new run-time option called "runmode" which gives the
user control over how much screen udpating takes place during run
and travel movement.  It has four settings:
  teleport - update the map after movement has finished (this is
	the old behavior and also <Someone>'s !showrun behavior);
  run - update the map periodically (this is the new default);
	it uses (`moves' mod 7) to control the updating; it may
	need to have its own counter so that the updates are
	sync'd with the start of current movement rather than
	with `moves', but perhaps that won't matter;
  walk - update the map after each step (this is the behavior
	when <Someone>'s showrun is enabled);
  crawl - like walk, but with a longer delay after each step.

This option won't work well on configurations where delay_output()
doesn't produce a pause of reasonable duration, but I don't think
there's much we can do about that.

     The option setting ought to be stored in struct flags so that
it's maintained across save/restore cycles, but I put it into the
iflags structure with the other new options so that it won't cause
3.4.0 save files to be invalidated.

     I can't test the changes to Guidebook.mn; the corresponding
changes to Guidebook.tex process ok and don't show any obvious
glitches when viewed with xdvi.
2002-07-28 10:44:14 +00:00
nethack.allison
cca62c762f B04007 unknown corpse type revealed by hider
"It was hidden under a green mold corpse!  It bites!"
	Never seen corpse from a never seen monster can be
	revealed by the hider.
	-problem is that the corpse of the monster is
	always created with dknown set to 1 when make_corpse() finishes,
	even in the case where you never knew what it was while alive.
2002-07-28 02:19:21 +00:00
nethack.allison
02ed5c37c9 From the newsgroup, there was a discussion about how you
can't just blind yourself with a cream pie in your inventory
directly by applying it or by throwing it.

On 27 Jul 2002 14:11:06 GMT, <Someone> wrote:
> <email deleted> wrote:
>> <email deleted> (<Someone>) hypothesised:
>>
>> [cream pie]
>>> So I a)pply the pie. What I want to do is to hit MYSELF in the
>>> face with the pie, thereby blinding me and giving me T-P for
>>> just a few turns.
>>
>> Not a bad TTDTDTO ("Thing The DevTeam Didn't Think Of," which is
>> subtly different to a YANI, and not a bug; sorry, I seem to be
>> on a neologismathon today.)
> I tried throwing a cream pie upwards, hoping it would blind me,
> but no luck:
>
> "A cream pie hits the ceiling. What a mess!"
>
2002-07-27 20:48:45 +00:00
nethack.allison
7374338424 payment messages
Change the message for paying off consumed items to
"You paid for a xxxx at a cost of nnn gold pieces."
to distinguish it from objects that you still have in your inventory which is
"You bought a xxx for nnn gold pieces."
2002-07-27 19:23:20 +00:00
keni
bca0aca579 <email deleted> Thu Jul 25 13:59:29 2002
<email deleted>
 <email deleted>
 Subject: patch: missing amiga bits

Hi,

here are some missing bits from the amigafiles.

Current source compiles fine, seems to work ok (launches, runs, opens windows
and quits as usual). I haven't had much time to test it rigorously (or play
at all), but I don't remember there having been any major changes that would've
affected the amigaport, so it probably should be okay as it is.

-jhsa
2002-07-26 10:47:34 +00:00
nethack.rankin
b5405940a2 R1007 - Monk kicking bug
Kicking a monster as a monk or samurai or while wearing kicking
boots might make it "reel from the blow" and be knocked back a step.
If that knock back put it into a trap which killed it, the kicking
code would kill it an extra time, then the player would get a warning
about dmonsfree finding the wrong number of dead monsters.
2002-07-26 00:33:14 +00:00
nethack.rankin
c740d732cc phantom venom
[ I didn't keep a copy of the message which reported this
  so don't have any reference number for it. ]

     If you used '/' to look at multiple items one after another,
then looking at floor or other item represented by the same '.' as
venom could result in subsequent things being falsely categorized as
possibly venom.  The subsequent items needed to have less than two
possible descriptions, and the triggering item needed to be a plain
dot rather than the graphic dot used for floor with IBMgraphics and
DECgraphics.
2002-07-25 23:55:06 +00:00
nethack.rankin
72dbd302c0 do_look at self
Suggested by <Someone>:  when examining an `@' monster, only include
"or you" in the description if you might reasonably expect to be seen
as something else.  So if you're playing as a human or an elf, or if
you're polymorphed regardless of race, the ordinary description of
"human or elf" doesn't need to add "or you".  And the setting of the
`showrace' option only matters if the `@' comes from prompting the
user instead of picking a symbol from the map.
2002-07-25 23:34:47 +00:00
nethack.rankin
afa939f4f9 traps burning paper golems
Paper golems destroyed by fire traps won't leave any scrolls
of blank paper behind.  (There's still no handling of other forms
of fire attack against such critters.)
2002-07-25 01:04:08 +00:00
nethack.allison
46d1595c67 sys/winnt more macro mods
(Sorry, but checking these in is the only way to see the results)
2002-07-24 08:25:21 +00:00
warwick
036d873dbb Just a comment. 2002-07-24 08:10:36 +00:00
nethack.allison
05c0d2cb9a sys/winnt change SCCS to Id macro 2002-07-24 07:34:02 +00:00
nethack.allison
1af06f69cd add date macro to Install.dos 2002-07-24 06:30:21 +00:00
nethack.allison
1e52445608 add date macro to Install.nt 2002-07-24 06:28:50 +00:00
warwick
b5847aea11 Honour wc_tile_width, wc_tile_height, and wc_tile_file. 2002-07-24 06:28:18 +00:00
nethack.allison
9596b68dff wince date macro fix in Install.ce 2002-07-24 06:26:28 +00:00
nethack.allison
93efef792d wince date macro fix in Install.ce 2002-07-24 06:24:02 +00:00
nethack.allison
931f5a4521 minor typo in Install.ce 2002-07-24 06:21:35 +00:00
nethack.rankin
cdc0677383 ending hallucination while blind
Don't suppress hallucination on/off messages when blind.
This fixes the case where you might be observing hallucinatory
monsters via telepathy yet not be told that perception was back
to normal when hallucination timed out.  It does not fix the
case where temporary hallucination times out while the effect is
being blocked (in which case successful application of a unicorn
horn yields no feedback), nor the hypothetical cases where timed
hallucination starts or ends while also hallucinating for some
other reason (which could happen via polymorph someday if a
monster which is always hallucinating--the way that bats are
always stunned--ever gets introduced).
2002-07-24 06:13:29 +00:00
nethack.rankin
5773c461ef throwing through iron bars
Make throwing things through iron bars by the player and
by monsters behave consistently with each other.  Also prevent
stone-to-flesh'd boulders and wands from passing through.
2002-07-24 05:42:49 +00:00
cohrs
59c34c852b sync Guidebook 2002-07-24 04:20:07 +00:00
nethack.allison
822a633563 (from <Someone>)
- added menu option to show/hide keypad window
2002-07-24 00:21:52 +00:00
warwick
bdc6c965af Rollback NAME_MAX workarounds as suggested. 2002-07-23 06:07:21 +00:00
nethack.allison
4da155e376 djgpp build was also broken 2002-07-23 05:33:00 +00:00
nethack.allison
c6f7560bdd credit updates 2002-07-23 05:10:37 +00:00
nethack.allison
c6c17bc00f more Windows CE 2002-07-23 04:52:48 +00:00
nethack.allison
d9dad62838 build fix for files.c
Warwick's plname files.c addition broke the
build on both win32 and CE because NAMES_MAX
wasn't defined.

In win32 it was defined in limits.h, but only
when _POSIX_ was defined.

In CE it just didn't exist in any of the
header files.  Since it was also complaining
about strdup(), I #ifdef'd Warwick's code out
under CE.
2002-07-23 04:51:28 +00:00
warwick
7b5618e03c Enclose savefile format change by STORE_PLNAME_IN_FILE macro. 2002-07-22 09:13:04 +00:00
warwick
7174e31024 Some non-enabled perminv code in Qt windowport. (missed in previous patch) 2002-07-22 09:10:13 +00:00
warwick
16b7d4a099 Store plname in save files (and restore it).
Move get_saved_games() functionality to files.c
Use moved get_saved_games() functionality in Qt windowport.
[also some non-enabled perminv code in Qt windowport]
2002-07-22 06:25:52 +00:00
nethack.allison
6bc604ecf3 Windows CE port addition 2002-07-22 03:27:01 +00:00
nethack.allison
0cc5b698d5 Windows CE port addition 2002-07-22 03:20:52 +00:00
nethack.allison
4957a7f5be another follow-up to fname_decode() routine 2002-07-21 16:58:12 +00:00
nethack.allison
2161fbe18c remove unnecessary variable
follow-up to fname_decode() routine
2002-07-21 16:49:19 +00:00
nethack.rankin
4c4c99b889 build fix 2002-07-21 10:11:32 +00:00
nethack.allison
03cc2afa2e WIN32: file naming
Allow single character variations in player names
to remain unique in file names by encoding rather
than substituting.
"plnam one", "plnam_one", and "plnam~one" at the
"Who are you?" prompt get unique filenames after this patch.
2002-07-21 04:07:32 +00:00
nethack.allison
5d040e4da5 prevent strange crash with some player names 2002-07-21 03:53:13 +00:00
arromdee
74c5eae064 bear trap wizard wishing 2002-07-20 06:45:48 +00:00
nethack.allison
cdec686d09 More untrap message clean-up 2002-07-20 02:07:09 +00:00
nethack.allison
8a9c09a8b1 (From <Someone>)
> It's probably best to empty
> mswin_update_inventory() in win\win32\. If I
> remember correctly there is some code in there now
> which probably behaves badly if perm_invent is
> switched on
2002-07-19 13:42:24 +00:00
nethack.rankin
34bcb2bb2b polyself typo 2002-07-19 01:45:26 +00:00
nethack.rankin
09cb5be946 B01005 - fasting by monks
Implement a suggestion by <Someone> that turns spent in
"hungry" state exercise wisdom for monk characters; also make
turns spent in "satiated" state abuse it instead.
2002-07-17 23:31:12 +00:00
nethack.allison
c286e48570 remove sparks lighting oil
for now at least, until there is more time to look into it.

<email deleted>
> Yet more nitpicking about potions of oil being lit by sparks from axed
> statues, I'm afraid.
>
> Konosja's potions of oil catch light!
> "That will cost you 66 zorkmids (Yendorian Fuel Tax)."
> "That's in addition to the cost of Konosja's potions of oil themselves, of
> course."
> You snuff the lit potion.
>
> a) why is the Fuel Tax on (in this case) six potions the same as on one?
>
> b) if you a)pply-light a potion, it's just "in addition to the cost of
>    the potion". Is Yname2() the right name-function for catch_lit() to
>    be using? It's odd for Konosja to be talking about herself in the
>    third person.
>
> c) Grammar on the snuffing message is wrong for multiple potions.
2002-07-17 23:26:48 +00:00
nethack.rankin
8aa428058c B01003 - showrace display
Enabling the showrace option displays a nonhuman hero in
white rather than in corresponding monster type's usual color.
2002-07-17 23:26:36 +00:00