replace some weight-related magic numbers

adds a header file include/nhconst.h  (I'm open to a better name)
This commit is contained in:
nhmall
2025-03-19 13:29:58 -04:00
parent 00a5d811ee
commit a943c4c10b
19 changed files with 118 additions and 86 deletions

View File

@@ -910,7 +910,7 @@ nh_timeout(void)
* are to make noise when you fumble. Adjustments
* to this number must be thoroughly play tested.
*/
if ((inv_weight() > -500)) {
if ((inv_weight() > (WT_NOISY_INV * -1))) {
if (!Deaf)
You("make a lot of noise!");
wake_nearby(FALSE);