Source:NetHack 5.0.0/include/weight.h
Jump to navigation
Jump to search
Below is the full text to weight.h from the source code of NetHack 5.0.0. To link to a particular line, write [[Source:NetHack 5.0.0/include/weight.h#line12]], for example.
The NetHack General Public License applies to screenshots, source code and other content from NetHack.
This content was modified from the original NetHack source code distribution (by splitting up NetHack content between wiki pages, and possibly further editing). See the page history for a list of who changed it, and on what dates.
1. /* NetHack 5.0 weight.h $NHDT-Date: 1742427965 2025/03/19 23:46:05 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.1 $ */ 2. /* Copyright (c) Michael Allison, 2025. */ 3. /* NetHack may be freely redistributed. See license for details. */ 4. 5. #ifndef WEIGHT_H 6. #define WEIGHT_H 7. 8. /* weight-related constants and thresholds */ 9. enum weight_constants { 10. WT_ETHEREAL = 0, 11. WT_SPLASH_THRESHOLD = 9, /* weight needed to make splash in water */ 12. WT_WEIGHTCAP_STRCON = 25, /* str + con multiplied by this for conv to 13. * carrying capacity in weight_cap() */ 14. WT_WEIGHTCAP_SPARE = 50, /* used in weight_cap calc */ 15. WT_JELLY = 50, /* weight of jelly body */ 16. WT_WOUNDEDLEG_REDUCT = 100, /* wounded legs reduce carrcap by this */ 17. WT_TO_DMG = 100, /* divisor to convert weight to dmg amt */ 18. WT_IRON_BALL_INCR = 160, /* weight increment of heavy iron ball */ 19. WT_IRON_BALL_BASE = 480, /* base starting weight of iron ball */ 20. WT_NOISY_INV = 500, /* inv_weight() max for noisy fumbling */ 21. WT_NYMPH = 600, /* weight of nymph body */ 22. WT_TOOMUCH_DIAGONAL = 600, /* weight_cap threshold for diag squeeze */ 23. WT_ELF = 800, /* weight of elf body */ 24. WT_SQUEEZABLE_INV = 850, /* inv_weight() maximum for squeezing */ 25. MAX_CARR_CAP = 1000, /* max carrying capacity, so that 26. * boulders can be heavier */ 27. WT_HUMAN = 1450, /* weight of human body */ 28. WT_BABY_DRAGON = 1500, /* weight of baby dragon body */ 29. WT_DRAGON = 4500, /* weight of dragon body */ 30. }; 31. 32. #endif /* WEIGHT_H */ 33. 34.