1
0
Fork 0
mirror of https://codeberg.org/noisytoot/notnotdnethack.git synced 2025-04-27 02:35:10 +01:00
Commit graph

12756 commits

Author SHA1 Message Date
6ca7d4cad5
Give new races trophy for octopode
Maybe parasitized android should count too?  It's kind-of a new race.
2024-05-21 22:39:28 +01:00
957574c55a
Update junethack trophy descriptions to mention ent and fix typo 2024-05-21 22:32:59 +01:00
e8c6f7b65b
Merge remote-tracking branch 'dNAO/compat-3.23.0' into 2024.05.15 2024-05-21 22:27:05 +01:00
7baf86b221 Bugfix: NetHack license help menu item was only appearing in wizmode
WIZHLP_SLOT was incorrectly set to 9 or 10 (the index of the menu
option to show the license) instead of 10 or 11.
2024-05-21 12:13:58 -04:00
chrisANG
7dcd7393ad Add Elfdalorian token to the junethack trophies csv
Right
2024-05-21 11:33:21 -04:00
chrisANG
cf42f9aaa2 Major balance fix: Pdrag tower shouldn't appear in 100% of games
Debug code :(
2024-05-21 11:22:43 -04:00
de81d63156
Bugfix: NetHack license help menu item was only appearing in wizmode
WIZHLP_SLOT was incorrectly set to 9 or 10 (the index of the menu
option to show the license) instead of 10 or 11.
2024-05-20 18:05:33 +01:00
chrisANG
e4be5923ee sky artifact data.base entries 2024-05-19 16:20:06 -04:00
chrisANG
b6f5a19521 CRASH BUGFIX: Bad code in scorpion carapace props
We can get here with no obj
2024-05-18 22:46:19 -04:00
chrisANG
7c861331af Bugfix: Don't penalize the PC for "peaceful" minons from "hostile" gods
God minion lists can include normally cross-aligned minions for gods, leading to confusion here.
2024-05-18 13:49:22 -04:00
chrisANG
bdbb58899e Bugfix: Clockwork overwound status should cover a food rations worth.
Otherwise the PC can be exploded by a "standard" 80-turn winding.
2024-05-18 13:42:24 -04:00
chrisANG
5895e0b3c5 Bugfix: portal levels must be marked no-bones
Otherwise they link to the wrong dl when loaded.
2024-05-18 13:40:48 -04:00
415c14a960
Allow all non-Ana/Bin/Cav/Acu players to be descendants
Switch to the dNetHack version of validdescendant, fixed to check the
rolenum argument instead of flags.initrole and modified to also
disallow Acu.
2024-05-17 16:07:30 +01:00
chrisANG
973e084a2a Add missing notes to version comment. 2024-05-16 16:35:20 -04:00
chrisANG
5e678970ca Remove array-out-of-bounds error: Check for out-of-bounds kick 2024-05-16 16:34:56 -04:00
e07a583cec
Fix array-out-of-bounds error in kick_object 2024-05-16 17:51:41 +01:00
chrisANG
57789fff30 Fix other array-out-of-bounds in projectile code
h/t Noisytoot
2024-05-16 12:35:17 -04:00
ba3dac7842
Fix undefined behaviour in projectile and do_digging_projectile
Both out of bounds accesses due to missing isok checks.
2024-05-16 17:13:01 +01:00
chrisANG
982d3e8de1 Fix array-out-of-bounds error.
The digging projectile function can be called with the projectile about to go out of bounds.
2024-05-16 11:16:30 -04:00
chrisANG
eb3f82be49 Undefined behavior fixes: explode and worn
Explode now checks if(reg->nlocations > 0) to avoid calling memcpy with a null pointer.
-Explode has some incidental tabbing fixes so that I could actually read it.

Worn just swaps in some long constants.

h/t Noisytoot
2024-05-15 20:41:12 -04:00
748e4fac85
More undefined behaviour bugfixes
-memcpy being called with NULL src in add_location_to_explode_region
--It was copying 0 bytes, but that's still undefined behaviour
-1 << 31 in update_mon_intrinsic (left shift overflow due to 32-bit int)
2024-05-16 00:51:38 +01:00
2f558ca60b
Bugfix: undefined behaviour in make_horror
shift exponent 32 too large for 32-bit type
2024-05-15 23:51:50 +01:00
4b4000b4d8
Autoenable UTF8graphics if supported
Manually reverts 12ffe57715
2024-05-15 22:35:39 +01:00
chrisANG
a31ed0e5af
This is trying to print everything to a %c, so cast it instead.
The other fix was just dumb.
2024-05-15 21:38:02 +01:00
chrisANG
b28c0b89cd This is trying to print everything to a %c, so cast it instead.
The other fix was just dumb.
2024-05-15 16:26:27 -04:00
chrisANG
16052920f9 Revert "Fix bad format strings in curses code"
This reverts commit 3cd8ed80b1.
2024-05-15 16:17:01 -04:00
e42377d361
Merge remote-tracking branch 'notdnethack/master' 2024-05-15 21:15:45 +01:00
chrisANG
414f7fc52a Some compilers do still have warnings, and code freeze is not the time to remove them. 2024-05-15 15:32:30 -04:00
demogorgon22
426f6c657a Remove -Werror for now, as some compilers still have warnings and it breaks the build. 2024-05-15 15:08:11 -04:00
demogorgon22
12ffe57715 Don't autoenable utf8 graphics if supported. 2024-05-15 14:55:32 -04:00
b46d155203 Misc typo fixes
amulet of Yendor -> Amulet of Yendor
truely -> truly
sprit -> spirit

(cherry picked from commit 9828dcaa32)
2024-05-15 14:52:35 -04:00
2f2bbab7d7 Fix SHELL
A semicolon after if(iflags.debug_fuzzer) was causing it to always do
nothing and return 0.  This is either a bug or a very confusing way of
completely disabling it (it's already disabled if you don't set SHELL
at compile time).

(cherry picked from commit 2e7b8dc55e)
2024-05-15 14:52:09 -04:00
257eb92490 curses: Show attributes (bold, underline, etc) in perm_invent
They were shown in normal inventory but not in perm_invent for some
reason.

(cherry picked from commit 59e620d230)
2024-05-15 14:50:31 -04:00
55056bcdd4 Bugfix: Clockwork automata couldn't repair IEA
Due to an extra "else" that meant they never got the prompt.

Fixes https://github.com/Chris-plus-alphanumericgibberish/dNAO/issues/2282

(cherry picked from commit f64ae05944)
2024-05-15 14:49:41 -04:00
dc93fda123 Levelporting to level 0 sends you to nowhere if you are an eth
Doesn't nomul you because no other kind of teleportation does.
Still instadeath for other races.

(cherry picked from commit 6e5e5a5ae6)
2024-05-15 14:49:18 -04:00
a3ab53b39e Add inherited artifact to xlogfile
(cherry picked from commit 6192ac0c2e)
2024-05-15 14:48:35 -04:00
c78314cd77 Bugfix: Deinit windows if recovery is refused
(cherry picked from commit a999e2cb88)
2024-05-15 14:47:39 -04:00
demogorgon22
e91f83129f Merge branch 'compat-3.23.0' of https://github.com/Chris-plus-alphanumericgibberish/dNAO 2024-05-15 14:41:12 -04:00
chrisANG
a0058f8219 Bugfix: Fix building clockwork magic furnaces
Needed for the upgrade trophy, otherwise it would need to wait
2024-05-15 14:29:09 -04:00
chrisANG
acef4efd7c Makefile change: Link vs lncursesw instead of lncurses
I guess this skirts the code freeze since its the makefile :-/
2024-05-15 14:19:04 -04:00
chrisANG
7f2d1aaabb This is now 3.23.0 2024-05-15 14:07:11 -04:00
chrisANG
40e704f425 Expand ring_wishes field to int
Apparently char is sometimes unsigned?
2024-05-15 13:59:04 -04:00
chrisANG
3cd8ed80b1 Fix bad format strings in curses code 2024-05-15 13:58:06 -04:00
chrisANG
26bdaca81a Probably we can just leave Werror on now. 2024-05-15 13:57:17 -04:00
1cba15796a Fix some undefined behaviour
-signed integer overflow in setrandom and check_reseed
-shift exponent 38 with a 32-bit type in makedefs (ranged_attk)

Also update makedefs ranged_attk to match the mondata version.  This
means that monsters with some ranged attacks now get correct
difficulty.  I didn't update the difficulty comments in monst.c.

# Conflicts:
#	src/hacklib.c
#	src/mondata.c
2024-05-15 12:52:14 -04:00
ee57879f1e
Fix some undefined behaviour
-signed integer overflow in setrandom and check_reseed
-shift exponent 38 with a 32-bit type in makedefs (ranged_attk)

Also update makedefs ranged_attk to match the mondata version.  This
means that monsters with some ranged attacks now get correct
difficulty.  I didn't update the difficulty comments in monst.c.
2024-05-15 16:42:33 +01:00
b79869be22
Prompt for levelporting to negative levels
Respects paranoid_quit.
2024-05-12 15:41:01 +01:00
ebe5d531ee
Make prompt for levelporting to level 0 respect paranoid_quit
Since it's instadeath.  Also means it can be configured using
querytypes since it's now using yesno instead of ynq.
2024-05-12 15:33:20 +01:00
6e5e5a5ae6
Levelporting to level 0 sends you to nowhere if you are an eth
Doesn't nomul you because no other kind of teleportation does.
Still instadeath for other races.
2024-05-12 15:20:47 +01:00
f64ae05944
Bugfix: Clockwork automata couldn't repair IEA
Due to an extra "else" that meant they never got the prompt.

Fixes https://github.com/Chris-plus-alphanumericgibberish/dNAO/issues/2282
2024-05-12 13:31:51 +01:00