Commit Graph
100 Commits
Author SHA1 Message Date
Pasi Kallinen c49490dfd4 Rename getpos_coord values to "compass" and "map" 2016-01-13 12:21:27 +02:00
Pasi Kallinen ef3ce49dd4 Make getpos monster/object coord picker deterministic
...and make it pick coordinates top-left to bottom-right.
2016-01-13 10:22:44 +02:00
Pasi Kallinen 99ee354637 Fix get_count: ^H should go left instead of backspacing a count 2016-01-12 08:20:13 +02:00
Pasi Kallinen 6dd6584e21 Add getpos_coord to fixes file 2016-01-11 21:12:52 +02:00
Pasi Kallinen 0ee5d8ce47 Add getpos_coord option
Allows showing the coordinate when picking a position on the
map with '/' and autodescribe is on.

This is another blind player request
2016-01-11 21:10:51 +02:00
Pasi Kallinen c902b44b5b Document fixes 2016-01-10 18:54:35 +02:00
Pasi Kallinen 854fe40609 Fix bz175: Pile mark is shown when potion is destroyed
Original bug report:

> When killing something that's carrying a potion, or death-drops a potion,
> or stands on top of a potion, with a force bolt or a wand of striking,
> "you hear something shatter" or "a potion of foo shatters" but the corpse
> is inverse as if it's (still) a pile.

Unfortunately the newsym() checks for already existing glyph, and
the gbuf doesn't distinguish between object piles and single items,
so newsym doesn't mark the location for update.

This is a dirty hack to force the newsym to update the glyph.
The glyph buffering should be revisited in a future version.
2016-01-10 18:33:41 +02:00
Pasi Kallinen a8172e1208 Fix unreferenced variable 2016-01-10 18:24:38 +02:00
Pasi Kallinen fe01018d90 Enable TIMED_DELAY for linux hints files
runmode is completely useless in TTY without this
2016-01-10 15:09:03 +02:00
Pasi Kallinen c6bf49f647 Small code cleanup 2016-01-10 14:47:06 +02:00
Pasi Kallinen 65d780dc3d Add compile-time option MSGHANDLER
This was a feature request from a blind player; he wanted to
play a sound whenever a pline message was given.
2016-01-10 13:08:20 +02:00
Pasi Kallinen e7d65a44cd TTY: Add compile-time option for tile data hinting
Several people have asked if 3.6.0 supports playing with tiles on
a public server. Because there's no way for the user's end to know
what that white @ is, this adds special console escape codes for
tile hinting.

The idea was originally a patch called TelnetTiles by Justin Hiltscher,
but this expanded version comes via NAO, where it's been in use for years.

This is basically an interim hack, which should go away when/if
we support actual client-server model.
2016-01-10 10:53:15 +02:00
Pasi Kallinen 653f75edc1 Add missing variable init 2016-01-10 10:09:56 +02:00
Pasi Kallinen 1e1557ed46 Add extended command #kick
I've seen some complaints about not being able to kick with ^d
so add kick as an extended command.

Also add the missing #exploremode command to the Guidebook.
2016-01-09 13:39:47 +02:00
Pasi Kallinen 7e4e9f263a Update fixes 2016-01-09 13:16:43 +02:00
Pasi Kallinen ff4a59ef23 Fix bz258: Covetous monsters malfunction when there are no upstairs
Make the monsters pick downstairs/ladders if the branch builds up
(like Sokoban), otherwise try upstairs/ladders.
2016-01-09 12:07:35 +02:00
Pasi Kallinen a2a1027be1 Fix bz62: Pets walk into poison clouds
Makes monsters who would be damaged by the poison cloud
not walk into it
2016-01-09 02:25:52 +02:00
Pasi Kallinen befc6a65b5 TTY: Add menu_overlay option
This was a request from a blind player.  It's hard to find
the left edge of the menu when it's drawn on the map, so
clear the screen and align menus to the left edge of the screen
when this option is turned off.

Originally this was called the window edge patch.
2016-01-08 22:17:40 +02:00
Pasi Kallinen f16e9a8890 Use plain ASCII for the database 2016-01-08 07:55:56 +02:00
Pasi Kallinen 0f5809c924 Add some new database entries 2016-01-07 22:38:33 +02:00
Pasi Kallinen 5d1281c9ac Make getpos monster targeting use glyph lookup 2016-01-06 21:42:45 +02:00
Pasi Kallinen 50359a3552 Fix possible lev_comp segfault when map was too tall 2016-01-06 19:49:38 +02:00
Pasi Kallinen c8d0b04c74 Make the raven medusa level shortsighted
This prevents all of the ravens mobbing the player immediately.

Change via Dynahack by Tung Nguyen
2016-01-06 18:54:56 +02:00
Pasi Kallinen caf872be05 Allow knife and stiletto as possible tin opening tools
Via Dynahack, original idea from K-mod by Karadoc.
2016-01-06 18:41:13 +02:00
Pasi Kallinen 0a25502593 Fix weight of containers in lev_comp 2016-01-06 18:25:50 +02:00
Pasi Kallinen 785aba242a Fix the mtrack memset 2016-01-06 18:15:04 +02:00
Pasi Kallinen c2ceb88d3c Make vault guard accept names starting with number
Fix via Dynahack by Tung Nguyen
2016-01-06 17:28:45 +02:00
Pasi Kallinen c740425a90 Use define for iron ball weight increment 2016-01-06 16:23:48 +02:00
Pasi Kallinen da0e660110 Poison breath leaves a trail of poison gas clouds
Original patch by L
2016-01-06 16:05:43 +02:00
Pasi Kallinen 237c4a2787 Allow dissolving iron bars with potion of acid
Force-fight iron bars with wielded potion of acid to dissolve them

This change comes via UnNetHack by Patric Mueller.
2016-01-06 15:49:06 +02:00
Pasi Kallinen 72f55fedb5 Zapping wand of opening at yourself, unlock carried boxes 2016-01-06 14:17:11 +02:00
Pasi Kallinen 5ccfd34328 Allow picking a used inventory letter from menu when #adjusting 2016-01-06 14:05:24 +02:00
Pasi Kallinen 4c016853d4 Unify getting a count into single function 2016-01-06 13:54:09 +02:00
Pasi Kallinen 1bc05714b5 Fix bz66: Count number cannot be backspaced
... or at least partially fix it - ^H does now backspace.
I can't be bothered to dive into the (n)curses raw-mode stuff.
2016-01-06 11:50:10 +02:00
Pasi Kallinen 4aeb2913cf Only requiver pickup_thrown ammo and throwing weapons 2016-01-06 04:58:37 +02:00
Pasi Kallinen 6b559d06f0 Redraw map when hilite_pile is toggled 2016-01-06 04:41:57 +02:00
Pasi Kallinen 4d919b4d1f Update fixes entries 2016-01-06 03:37:35 +02:00
Pasi Kallinen f314fe87bd Fix unmapped branch stairs on premapped levels
This happens when levelporting to the first Sokoban level in wizard mode
before visiting the level, causing the branch stairs to not appear until
the space it is in comes in sight of the player.

The issue was that levels flagged premapped would cause the special
level coder to call sokoban_detect() before fixup_special() had a chance
to place the branch stairs properly.

Fix from Dynahack by Tung Nguyen.
2016-01-06 03:35:58 +02:00
Pasi Kallinen ed1c592a9a Remove double defines of hunger states 2016-01-06 03:23:24 +02:00
Pasi Kallinen 31f883da0d Use appropriate place description for drum of earthquake shake
Fix via Dynahack by Tung Nguyen
2016-01-06 03:17:36 +02:00
Pasi Kallinen 2c9ae20c5a Allow quickly moving cursor on monsters
Original patch was mine, but this implementation took
ideas from Dynahack by Tung Nguyen
2016-01-06 03:05:50 +02:00
Pasi Kallinen fd709d6840 Clear mimic vision blocking after genocide
Fix via Dynahack by Tung Nguyen
2016-01-06 01:55:39 +02:00
Pasi Kallinen db4120012d Make mimics mimicing walls or trees also block light 2016-01-06 01:44:18 +02:00
Pasi Kallinen a049cd070b Never route a travel path through boulders in Sokoban
Change via Dynahack by Tung Nguyen
2016-01-06 01:05:22 +02:00
Pasi Kallinen e92b80b2ab Requiver pickup_thrown objects if quiver is empty
Change via Dynahack by Tung Nguyen
2016-01-06 00:53:03 +02:00
Pasi Kallinen 192d1bd89e Add mtrack changes to fixes file 2016-01-05 12:59:54 +02:00
Pasi Kallinen e80a9e0daf Make (level) teleporting clear monster movement tracking 2016-01-05 12:32:18 +02:00
Pasi Kallinen 861afbb1c9 Fix bz276,H4172: Fleeing monsters don't actually flee
This fix comes via DynaHack by Tung Nguyen.
2016-01-05 12:09:43 +02:00
Pasi Kallinen 3506062c7d Fix bz270, H4166: Finding a secret corridor shows it unlit with lit_corridor
Also #terrain command with dark_room on showed lit room floor on places with
objects or traps. We don't want to show dark room symbol anyway, because
the dark room symbols are only for line-of-sight, and #terrain should
override that...
2016-01-05 11:14:04 +02:00
Pasi Kallinen a329d7a6dd Capitalize Linux in guidebook 2016-01-05 09:11:42 +02:00
Pasi Kallinen ece4407c41 Finish splitting wallification into two 2016-01-05 07:42:28 +02:00
Pasi Kallinen 1e0b16c99d Add the compile-time options to fixes-file 2016-01-04 23:19:49 +02:00
Pasi Kallinen e9b0fa23d2 Add server admin messaging functionality
It's occasionally important for public servers to notify
all the players. Sending a mail is not reliable, as not everyone
wants to break conduct, or have mail on.

This adds a compile-time defined filename, which NetHack
will monitor. The contents of the file are in the same
format as SIMPLE_MAIL: "sender:message" on one line.
2016-01-04 23:04:59 +02:00
Pasi Kallinen 89e4d5e9fa Add SIMPLE_MAIL compile-time option for public servers 2016-01-04 19:54:36 +02:00
Pasi Kallinen 34b45a2c10 Add an alternative paniclog format as compile-time option 2016-01-04 18:05:16 +02:00
Pasi Kallinen d1ef006eef Fix bz241, H4143: LoS still blocked after mimic hit by force bolt 2016-01-03 16:27:55 +02:00
Pasi Kallinen cb574aadcc Split wallification into two by function 2016-01-03 00:36:36 +02:00
Pasi Kallinen 0106901078 Move and reorder ap exc, menucolor and msgtype entries in options
Move autopickup exception, menucolor, and message type entries
in the options menu under "Other settings" -header, and reorders
them into alphabetical order.

Also use enums instead of hardcoded values.
2016-01-02 13:40:53 +02:00
Pasi Kallinen 8b0ada1d31 Allow scrolling X11 extended cmd menu with cursors 2016-01-02 00:47:10 +02:00
Pasi Kallinen 8e7e79448e Enable scroll bar in X11 menu windows 2016-01-01 21:24:55 +02:00
Pasi Kallinen 7be8e1f8bb Another tiny formatting fix 2015-12-30 17:41:48 +02:00
Pasi Kallinen e29c21f367 Tiny formatting fix 2015-12-30 17:29:44 +02:00
Pasi Kallinen ff30a56e3e Add config file examples to Guidebook 2015-12-28 20:00:50 +02:00
Pasi Kallinen a5ed69288f Split get_rnd_toptenentry from tt_oname 2015-12-28 18:06:48 +02:00
Pasi Kallinen 32305ace5c Prevent minotaur in mines end and bigroom mazes 2015-12-28 17:42:55 +02:00
Pasi Kallinen e55dd6919a Fix prot from shape changers at level generation
Mimics and other shape changers created at level generation
did not obey protection from shape changers.
2015-12-26 21:40:22 +02:00
Pasi Kallinen 3c9b0f25b6 Add alternate spelling of prot from shape changers 2015-12-26 13:12:59 +02:00
Pasi Kallinen 1cddb2f717 Fix bz210, H4114: Castle chest can be trapped 2015-12-24 14:07:35 +02:00
Pasi Kallinen 69e7f4e29b Allow defining symbols with OPTIONS
Some people are confused by the boulder -option, and
SYMBOLS=S_boulder, so allow defining symbols with
OPTION-lines in addition to the SYMBOLS.

So these are the same thing:

  SYMBOLS=S_boulder:0
  OPTIONS=S_boulder:0
2015-12-24 12:33:17 +02:00
Pasi Kallinen cc7d5c31b4 Allow optional parameter for boolean config options
Some people try to set boolean options in the config file
by giving the option a parameter, so allow that:

OPTIONS=color:true

Allowed parameters are "true", "yes", "false", and "no".
Negating an option and giving it a parameter is an error.
2015-12-24 11:24:13 +02:00
Pasi Kallinen 91a7d393cd Do not autopickup unpaid items in shops
This is overridden by pickup_thrown and autopickup
exceptions.
2015-12-22 22:36:30 +02:00
Pasi Kallinen cdde5b76c9 Some shopkeepers are always stingier
This prevents the "drop the item few times, just to see if
the sell price changes"
2015-12-22 21:44:59 +02:00
Pasi Kallinen 715fd7e3d9 Displace a pet rather than stop travel
... and stop travel if you take damage from any source.

Original patch via Acehack by Alex Smith
2015-12-21 19:13:45 +02:00
Pasi Kallinen 4b876b1aec Fix findtravelpath buffer overflow
Test case: Bigroom, full of boulders, with a single
path from travel start to travel end. Boulders (and
doors) are added to the travelstep[xy] arrays multiple
times, and will overflow the arrays.

Original patch via Acehack by Alex Smith
2015-12-21 18:18:40 +02:00
Pasi Kallinen 9a2eb370e7 Make travel consider traps like closed doors
Test case: U-shaped corridor, with a known trap in it.
Before this change, travel would try to move straight at
the target, bumping the wall or walking into a dead-end.
After this, travel will go along the corridor and then stop
right before the trap.

Original patch via AceHack by Alex Smith.
2015-12-21 17:36:14 +02:00
Pasi Kallinen 43bf9c978d Improve the tin opener 2015-12-19 14:44:39 +02:00
Pasi Kallinen 24aea231d4 Add fixes entries 2015-12-18 18:49:50 +02:00
Pasi Kallinen 164b64b263 Allow color name aliases for menucolors 2015-12-18 16:12:53 +02:00
Pasi Kallinen 6c76738697 Fix typo in random epitaph 2015-12-18 13:28:23 +02:00
Pasi Kallinen 85d7d2bc43 Remove symbol setting options which do not work anymore 2015-12-17 21:12:59 +02:00
Pasi Kallinen 8af8c42e62 Clarify regex support in the guidebook 2015-12-17 12:47:03 +02:00
Pasi Kallinen f02253dbbb Fix bz189 H4092: Broken qt_xpms.h 2015-12-17 08:46:04 +02:00
Pasi Kallinen 929be769ec Add option to have autodescribe on by default 2015-12-16 21:42:43 +02:00
Pasi Kallinen f4a6ccf3f0 Update sysconf MAXPLAYERS docs a bit 2015-12-10 10:14:24 +02:00
Pasi Kallinen 43550bee53 Allow unlimited number of players
This is important for public servers.  Setting the MAXPLAYERS
sysconf value to 0 (or commenting it out) constructs the lock
files with the player UID and player name, so each player may
have one game at a time.
2015-12-09 22:27:26 +02:00
Pasi Kallinen ea2f3225cc Fix history stating 3.5 Amiga and Atari ports existed 2015-12-09 17:44:15 +02:00
Pasi Kallinen c20638938e Update precompiled lev_comp lex and yacc files 2015-12-02 18:33:44 +02:00
Pasi Kallinen d8d0e5b3bd More fixes entries 2015-11-25 13:01:34 +02:00
Pasi Kallinen 476db5b63a Update fixes to reflect multiple weakened farming strats 2015-11-25 12:55:56 +02:00
Pasi Kallinen 943cc6057c More tiny formatting fixes, move function names to start of line 2015-11-25 10:15:41 +02:00
Pasi Kallinen d4578bbf23 More tiny formatting fixes 2015-11-24 12:04:52 +02:00
Pasi Kallinen 772fea0361 Prevent kraken farming
...or at least make it more inconvenient, by preventing fishy
creatures from revival by undead turning unless they're in a pool.
2015-11-24 11:35:50 +02:00
Pasi Kallinen 3a1e9ccd80 Fix infinite throne looting when confused
This could be used to generate monsters ad infinitum.
2015-11-24 11:16:07 +02:00
Pasi Kallinen 6ed4f24d24 Tiny formatting fix 2015-11-24 09:59:20 +02:00
Pasi Kallinen c2c8259877 Add some hallu monsters 2015-11-23 14:10:10 +02:00
Pasi Kallinen 08b041f15f Pacify some clang compile warnings, pt 2 2015-11-21 23:50:11 +02:00
Pasi Kallinen 7063488621 Pacify some clang compile warnings 2015-11-21 23:40:06 +02:00
Pasi Kallinen 90302ce86d Declare a variable as static 2015-11-21 20:56:47 +02:00
Pasi Kallinen 70cfeb08d8 Remove useless variable 2015-11-21 20:51:46 +02:00
Pasi Kallinen e1090de7b3 Declare missing function proto 2015-11-21 20:47:31 +02:00