Files
nethack/include/nhconst.h
nhmall a943c4c10b replace some weight-related magic numbers
adds a header file include/nhconst.h  (I'm open to a better name)
2025-03-19 13:29:58 -04:00

43 lines
1.9 KiB
C

/* NetHack 3.7 nhconst.h $NHDT-Date: 1725653014 2024/09/06 20:03:34 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.26 $ */
/* Copyright (c) Michael Allison, 2025. */
/* NetHack may be freely redistributed. See license for details. */
#ifndef NHCONST_H
#define NHCONST_H
/* weight-related constants and thresholds */
enum weight_constants {
WT_ETHEREAL = 0,
WT_SPLASH_THRESHOLD = 9, /* weight needed to make splash in water */
WT_WEIGHTCAP_STRCON = 25, /* str + con multiplied by this for conv to
* carrying capacity in weight_cap() */
WT_WEIGHTCAP_SPARE = 50, /* used in weight_cap calc */
WT_JELLY = 50, /* weight of jelly body */
WT_WOUNDEDLEG_REDUCT = 100, /* wounded legs reduce carrcap by this */
WT_TO_DMG = 100, /* divisor to convert weight to dmg amt */
WT_IRON_BALL_INCR = 160, /* weight increment of heavy iron ball */
WT_IRON_BALL_BASE = 480, /* base starting weight of iron ball */
WT_NOISY_INV = 500, /* inv_weight() max for noisy fumbling */
WT_NYMPH = 600, /* weight of nymph body */
WT_TOOMUCH_DIAGONAL = 600, /* weight_cap threshold for diag squeeze */
WT_ELF = 800, /* weight of elf body */
WT_SQUEEZABLE_INV = 850, /* inv_weight() maximum for squeezing */
MAX_CARR_CAP = 1000, /* max carrying capacity, so that
* boulders can be heavier */
WT_HUMAN = 1450, /* weight of human body */
WT_BABY_DRAGON = 1500, /* weight ob baby dragon body */
WT_DRAGON = 4500, /* weight of dragon body */
};
enum monster_speeds {
VERY_SLOW = 3,
SLOW_SPEED = 9,
NORMAL_SPEED = 12, /* movement rates */
FAST_SPEED = 15,
VERY_FAST = 24,
};
#endif /* NHCONST_H */