Commit Graph
100 Commits
Author SHA1 Message Date
Pasi Kallinen ce482ba2ba Lua: Fix getmap nodoor flag 2021-04-03 21:44:05 +03:00
Pasi Kallinen 54eb25ad2e Show extended command name in key help
(In the "?f")
2021-03-26 17:57:59 +02:00
Pasi Kallinen f9aff476c4 Increment editlevel
Just in case, even though changing joined to boolean shouldn't cause problems.
2021-02-19 17:28:43 +02:00
Pasi Kallinen 1b7faaf661 Add couple more config tests 2021-02-13 11:51:25 +02:00
Pasi Kallinen b1097df86d Make runmode option complain, add some tests for it 2021-02-12 19:41:46 +02:00
Pasi Kallinen 7f51e59770 Don't complain about unknown option if param is wrong
When a compound option was given an erroneous parameter,
for example "OPTIONS=runmode:foo",
you first got "Unknown runmode parameter 'foo", and
then "Unknown option 'runmode:foo'".

Prevent the Unknown option complaint, if we actually did
find a match.
2021-02-11 18:22:18 +02:00
Pasi Kallinen da92e0349b Fix lua doc copypaste error 2021-02-10 22:06:36 +02:00
Pasi Kallinen cc25f40d69 Add lua tests for config file parsing
Bare-bones for now, more tests needed.
2021-02-10 19:22:16 +02:00
Pasi Kallinen 9576154690 Add in_lua flag
In preparation of making config errors available to lua scripts,
instead outputting them via pline.
2021-02-10 17:06:12 +02:00
Pasi Kallinen d817564a6a Lua: set and get config options
Still needs more work, especially the error handling.
2021-02-06 19:02:25 +02:00
Pasi Kallinen 9e550ccb07 Fix BIND segfault
Recent commit that added terminator entry to default_menu_cmd_info
caused a segfault when trying to BIND keys.
2021-02-05 11:14:14 +02:00
Pasi Kallinen 933c7f215c Move the other options to alphabetical order 2021-01-30 19:07:58 +02:00
Pasi Kallinen 10cd5af500 Move other options into the options array 2021-01-30 18:43:21 +02:00
Pasi Kallinen b502a7d9b2 Remove leftover variables 2021-01-28 12:44:45 +02:00
Pasi Kallinen a3c8dead91 Remove unused function 2021-01-23 15:19:34 +02:00
Pasi Kallinen 0516fa9e35 Fix leftover variables from trap refactor 2021-01-23 11:32:54 +02:00
Pasi Kallinen 0dd6960cb1 Fix article used for steed when stepping on trap
This was caused by the trap code refactor I did a month ago.
2021-01-23 11:25:53 +02:00
Pasi Kallinen 2b525aab02 Fix missing proto 2021-01-23 10:56:56 +02:00
Pasi Kallinen ad0c701127 Fix unused param 2021-01-22 18:16:08 +02:00
Pasi Kallinen 8681aec71b Fix uninitialized variable 2021-01-22 17:58:54 +02:00
Pasi Kallinen 44bb68fe82 Curses: Select menu items via mouse 2021-01-21 12:53:02 +02:00
Pasi Kallinen 57181c5655 Remove Aztec C workaround from core
Aztec C is closed-source and dead for more than 20 years.
2021-01-20 19:19:43 +02:00
Pasi Kallinen e41c029262 Give barrow wights a cold touch
Their attack is described as "the icy touch froze his bones"
in Lord of the Rings
2021-01-13 21:29:07 +02:00
Pasi Kallinen de5da621ac Fix glyph lookup
Seems to have been a mistake in c9673b3d9e
2021-01-07 21:53:56 +02:00
Pasi Kallinen bc8dd92621 Monster ranged attacks and staying away from hero
Move the check for monsters that want to stay away from hero
due to having a ranged attack into a separate function.

Add monsters with polearms and breath attacks to it.
Monsters with breath attacks stay away only if they haven't
used their breath recently, or if they are injured.
2021-01-06 14:38:39 +02:00
Pasi Kallinen 0a60a80f50 Fix zero-damage attacks
Disenchanters dealt 0 damage with their disenchanting attack,
as did monsters with sleeping and slowing attacks.

Fixes #439
2021-01-05 17:51:04 +02:00
Pasi Kallinen a4184c8684 Prevent monsters from picking up locked containers 2020-12-24 22:37:58 +02:00
Pasi Kallinen 957990c14d More futureproofing hypotheticals
If you set COLNO larger than BUFSZ, few places cause a buffer overrun.
Add a new buffer size definition, COLBUFSZ, which is the larger of
COLNO and BUFSZ, used in places that care about a screen-wide string.
2020-12-20 12:32:29 +02:00
Pasi Kallinen 44f4085f69 Add a new themed room: "Twin business"
This themed room boasts two shops, a weapons and an armor store,
that can generate in a number of different configurations.

Makes the random corridor joining routine obey unjoined areas.

Fixes a bug in shopkeeper naming routine, where multiple shops
of the same type on the same level might reuse the shopkeeper name.

This is modified and consolidated commit from xNetHack by
copperwater <aosdict@gmail.com>.
2020-12-19 13:45:35 +02:00
Pasi Kallinen f60ecfc3e7 Fix monster hide state when chain is moved 2020-12-18 19:31:47 +02:00
Pasi Kallinen c8164d86af Fix monster hide status when mon relocated 2020-12-15 17:50:32 +02:00
Pasi Kallinen ec1d01bbe1 Fix monster hide status when moving ball & chain 2020-12-15 17:35:18 +02:00
Pasi Kallinen 480c253933 Fix segfault when the Wizard tried teleporting on the planes
The wizard of Yendor tried teleporting to the stairs on the
plane of Earth, but there are none there.

This was caused by the stairs structure reworking.

Fixes #422
2020-12-14 17:51:16 +02:00
Pasi Kallinen 4729062846 Make Death revive faster
Death will revive faster than the other riders.
Make all the riders revive after 67 turns, instead of 500.
There was practically a zero chance a rider would revive at 500,
so keep it somewhat sensible.
2020-12-13 12:28:45 +02:00
Pasi Kallinen 704b11fb05 Add some new demonic and angelic maledictions
From SpliceHack
2020-12-12 20:54:04 +02:00
Pasi Kallinen ea93c17fa7 Monsters can revive corpses on floor with undead turning
... but only if the corpse is in direct line from the monster to hero
2020-12-11 19:49:25 +02:00
Pasi Kallinen 971ea03b9e Remove accidental compile warning flags 2020-12-10 22:14:07 +02:00
Pasi Kallinen eb1fb93d06 Mark unused parameters 2020-12-10 22:08:32 +02:00
Pasi Kallinen 0dc6792b80 Fixes bit for unifying the traps 2020-12-10 19:04:31 +02:00
Pasi Kallinen f936cd9887 Remove unused variables 2020-12-10 19:04:31 +02:00
Pasi Kallinen fd665a180a Unify trap selector 2020-12-10 19:04:31 +02:00
Pasi Kallinen e6142f1149 Unify vibrating square 2020-12-10 19:04:31 +02:00
Pasi Kallinen d537ceb2c4 Unify magic portals 2020-12-10 19:04:31 +02:00
Pasi Kallinen 31a7f2b4d8 Remove unused label 2020-12-10 19:04:31 +02:00
Pasi Kallinen 5dbcc125f5 Unify rolling boulder traps 2020-12-10 19:04:30 +02:00
Pasi Kallinen 97a9bcf9c5 Unify landmines 2020-12-10 19:04:30 +02:00
Pasi Kallinen 5dcd6b2e17 Unify polymorph traps 2020-12-10 19:04:30 +02:00
Pasi Kallinen 6eb89c6b44 Unify anti magic traps 2020-12-10 19:04:30 +02:00
Pasi Kallinen ed3a736bd8 Unify fire traps 2020-12-10 19:04:30 +02:00
Pasi Kallinen c15d062502 Unify statue traps 2020-12-10 19:04:30 +02:00
Pasi Kallinen eb58352860 Unify webs 2020-12-10 19:04:30 +02:00
Pasi Kallinen 3bd60d6d54 Unify holes, level teleport and teleport traps 2020-12-10 19:04:30 +02:00
Pasi Kallinen afa1fef1ff Unify pits 2020-12-10 19:04:30 +02:00
Pasi Kallinen 5773f49dfe Unify fire trap 2020-12-10 19:04:30 +02:00
Pasi Kallinen c78e873c7c Unify rust trap 2020-12-10 19:04:30 +02:00
Pasi Kallinen 4974a57832 Unify sleeping gas trap 2020-12-10 19:04:30 +02:00
Pasi Kallinen 0a47c3d4f2 Unify bear trap 2020-12-10 19:04:29 +02:00
Pasi Kallinen e07968e8e5 Unify squeaky board 2020-12-10 19:04:29 +02:00
Pasi Kallinen a1227cefb3 Unify rocktrap 2020-12-10 19:04:29 +02:00
Pasi Kallinen 485985968e Unify dart trap 2020-12-10 19:04:29 +02:00
Pasi Kallinen 640be5ff7e Unify arrow trap 2020-12-10 19:04:29 +02:00
Pasi Kallinen b5cfd8333f Split trap effects out of dotrap 2020-12-10 19:04:29 +02:00
Pasi Kallinen 2a181c3955 Detection map redisplay routine code deduplication 2020-12-08 17:08:57 +02:00
Pasi Kallinen 13359648dd Remove duplicate wallify_map code 2020-12-06 18:36:37 +02:00
Pasi Kallinen 452dc3da26 Unify spitmu and spitmm 2020-12-06 13:57:50 +02:00
Pasi Kallinen 0462a2088c Increment EDITLEVEL
Forgot to increment EDITLEVEL when I did the stairs change,
and again after fixing the Oracle bones stairs. Lets do it now.
2020-12-05 19:38:20 +02:00
Pasi Kallinen 44920d4650 Remove duplicate lines 2020-12-05 19:00:19 +02:00
Pasi Kallinen 55b4946305 Fix AD_DCAY mhitm armor erosion type 2020-12-04 19:05:24 +02:00
Pasi Kallinen d28489e55d Fixes bit for mhitm/uhitm/mhitu unification 2020-12-04 09:49:24 +02:00
Pasi Kallinen 1f6a7a5eef Init the done variable to false 2020-12-04 09:30:22 +02:00
Pasi Kallinen 4fb370ee79 Remove unused variables 2020-12-04 09:30:21 +02:00
Pasi Kallinen b797baba7a Make return values use defines 2020-12-04 09:30:21 +02:00
Pasi Kallinen 3ef3b425ad Unify the ad type switches 2020-12-04 09:30:21 +02:00
Pasi Kallinen 88e333a3a8 Unify ad_ssex 2020-12-04 09:30:21 +02:00
Pasi Kallinen 1696019361 Unify ad_sedu 2020-12-04 09:30:21 +02:00
Pasi Kallinen 376593dad5 Unify ad_dise 2020-12-04 09:30:21 +02:00
Pasi Kallinen 4118a7ea44 Unify ad_samu 2020-12-04 09:30:21 +02:00
Pasi Kallinen d679d3a029 Unify ad_dgst 2020-12-04 09:30:20 +02:00
Pasi Kallinen d4625266a7 Remove unused goto label 2020-12-04 09:30:20 +02:00
Pasi Kallinen e777bd9670 Unify ad_legs 2020-12-04 09:30:20 +02:00
Pasi Kallinen 337e7da049 Unify ad_stun 2020-12-04 09:30:19 +02:00
Pasi Kallinen 12ee144936 Unify ad_heal 2020-12-04 09:30:19 +02:00
Pasi Kallinen 4901c8027c Unify ad_were 2020-12-04 09:30:19 +02:00
Pasi Kallinen a6a676f720 Unify ad_ston 2020-12-04 09:30:19 +02:00
Pasi Kallinen 20b6ea602b Unify ad_phys 2020-12-04 09:30:19 +02:00
Pasi Kallinen ac5822fe69 Unify ad_halu 2020-12-04 09:30:19 +02:00
Pasi Kallinen 36bb52466d Unify ad_deth 2020-12-04 09:30:19 +02:00
Pasi Kallinen 2999233332 Unify ad_pest 2020-12-04 09:30:18 +02:00
Pasi Kallinen cb55d7c30f Unify ad_famn 2020-12-04 09:30:18 +02:00
Pasi Kallinen 618feabd88 Unify ad_poly 2020-12-04 09:30:18 +02:00
Pasi Kallinen fda63d145b Unify ad_conf 2020-12-04 09:30:18 +02:00
Pasi Kallinen 558ec78b3a Unify ad_slow 2020-12-04 09:30:18 +02:00
Pasi Kallinen b80c30bcf1 Unify ad_ench 2020-12-04 09:30:18 +02:00
Pasi Kallinen 96a4d14a36 Unify ad_slim 2020-12-04 09:30:17 +02:00
Pasi Kallinen eb5508ba58 Unify ad_slee 2020-12-04 09:30:17 +02:00
Pasi Kallinen 654220f840 Unify ad_plys 2020-12-04 09:30:17 +02:00
Pasi Kallinen 7914237fbf Unify ad_wrap 2020-12-04 09:30:17 +02:00
Pasi Kallinen bfb8931188 Unify ad_stck 2020-12-04 09:30:17 +02:00
Pasi Kallinen b4ed25da46 Unify ad_drin 2020-12-04 09:30:17 +02:00
Pasi Kallinen 1ca0165bb9 Unify ad_drst 2020-12-04 09:30:16 +02:00