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
Pasi Kallinen
dba9aaf424
Unify ad_curs
2020-12-04 09:30:16 +02:00
Pasi Kallinen
d325e2cc60
Unify ad_blnd
2020-12-04 09:30:16 +02:00
Pasi Kallinen
607d1bcd96
Unify ad_tlpt
2020-12-04 09:30:16 +02:00
Pasi Kallinen
bfe773812e
Unify ad_sgld
2020-12-04 09:30:16 +02:00
Pasi Kallinen
b7899ee014
Unify ad_acid
2020-12-04 09:30:15 +02:00
Pasi Kallinen
8a78c49fea
Unify ad_elec
2020-12-04 09:30:15 +02:00
Pasi Kallinen
6abfe7e548
Unify ad_cold
2020-12-04 09:30:15 +02:00
Pasi Kallinen
6712876801
Unify ad_fire
2020-12-04 09:30:14 +02:00
Pasi Kallinen
cfd819f1c1
Unify ad_drli
2020-12-04 09:30:14 +02:00
Pasi Kallinen
518798d0d2
Unify ad_dren
2020-12-04 09:30:14 +02:00
Pasi Kallinen
6436ea1532
Unify ad_dcay
2020-12-04 09:30:14 +02:00
Pasi Kallinen
0d445a7a7c
Unify monster-hits-monster
2020-12-04 09:30:14 +02:00
Pasi Kallinen
cf88808285
Fix stairs on oracle level bones
...
Recent change to the stairs structure now lets each stair keep
the destination level number and dungeon where the stairs go to.
When a level that can be on different depth (such as the Oracle)
became a bones level, and it was loaded in another game at different
depth, the stairs were still pointing to the old level number.
Save it as relative to the current level instead of absolute.
2020-12-03 16:38:20 +02:00
Pasi Kallinen
d79b5388ce
Remove dealloc_obj b&c sanity checking
2020-12-01 22:18:48 +02:00
Pasi Kallinen
30b59acc40
More wish tests
2020-11-30 15:07:44 +02:00
Pasi Kallinen
a8ed1ab5fd
Test wishing "bags of tricks"
2020-11-30 12:06:37 +02:00
Pasi Kallinen
74565c890d
Split readobjnam into multiple functions
...
Also add several new tests for it
2020-11-29 19:08:30 +02:00
Pasi Kallinen
f2218839a3
Move some function names to start of line
2020-11-29 14:10:25 +02:00
Pasi Kallinen
fb188dc1aa
Unify mfndpos monster movement flags
2020-11-28 12:49:18 +02:00
Pasi Kallinen
36d977f61f
Unify HP loss and passing out from overexertion
2020-11-27 23:43:59 +02:00
Pasi Kallinen
bbb3d35252
Unify enlightenment self-knowledgeable effect
2020-11-27 19:59:16 +02:00
Pasi Kallinen
2a7cb3c4b6
Split some parts of getobj into functions
2020-11-27 18:10:47 +02:00
Pasi Kallinen
229930e505
Fixes and sanity checks for monster undetected and trapped states
...
Adds sanity checks for mtrapped and mundetected states.
Fixes cases where those were left in wrong state.
1. Trapped monster (eg. a nymph) teleported out of a trap
2. Monster was hiding under ball or chain, which then got removed
3. While restoring a level, a zombie corpse revived while monster
was hiding under it
4. A general case where the only object was deleted off floor and
a monster was hiding under it
Monsters hiding under ball or chain will now get revealed when
the b or c are moved.
2020-11-24 19:37:43 +02:00
Pasi Kallinen
e100d1a137
More unpolyable unifying
...
... and fix the potion dipping case.
2020-11-17 18:00:43 +02:00
Pasi Kallinen
d81e1672aa
Unify unpolyable objects to single define
2020-11-16 18:42:12 +02:00
Pasi Kallinen
ccb5bc4b55
Avoid hard-coded bit twiddling
2020-11-15 19:56:35 +02:00