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

@@ -415,11 +415,11 @@ DECL_H = $(YOU_H) $(INCL)/spell.h $(INCL)/color.h \
GLOBAL_H = $(PCCONF_H) $(INCL)/coord.h $(INCL)/global.h
HACK_H = $(CONFIG_H) $(INCL)/context.h $(DUNGEON_H) \
$(DECL_H) $(DISPLAY_H) $(INCL)/sym.h \
$(INCL)/defsym.h $(INCL)/mkroom.h $(INCL)/objclass.h \
$(INCL)/trap.h $(INCL)/flag.h $(RM_H) \
$(INCL)/vision.h $(INCL)/wintype.h $(INCL)/engrave.h \
$(INCL)/rect.h $(INCL)/hack.h $(REGION_H) \
$(INCL)/sys.h
$(INCL)/defsym.h $(INCL)/mkroom.h $(INCL)/nhconst.h \
$(INCL)/objclass.h $(INCL)/trap.h $(INCL)/flag.h \
$(RM_H) $(INCL)/vision.h $(INCL)/wintype.h \
$(INCL)/engrave.h $(INCL)/rect.h $(INCL)/hack.h \
$(REGION_H) $(INCL)/sys.h
DLB_H = $(INCL)/dlb.h
ifeq ($(SUPPRESS_GRAPHICS),Y)

View File

@@ -564,11 +564,11 @@ HACKINCL = align.h artifact.h artilist.h attrib.h botl.h \
display.h dlb.h dungeon.h engrave.h extern.h flag.h fnamesiz.h \
func_tab.h global.h warnings.h hack.h lint.h mextra.h mfndpos.h \
micro.h mkroom.h monattk.h mondata.h monflag.h monst.h monsters.h \
nhmd4.h obj.h objects.h objclass.h optlist.h patchlevel.h pcconf.h \
permonst.h prop.h rect.h region.h selvar.h sym.h defsym.h rm.h sp_lev.h \
spell.h sndprocs.h seffects.h stairs.h sys.h tcap.h timeout.h \
tradstdc.h trap.h unixconf.h vision.h vmsconf.h wintty.h wincurs.h \
winX.h winprocs.h wintype.h you.h youprop.h cstd.h
nhconst.h nhmd4.h obj.h objects.h objclass.h optlist.h patchlevel.h \
pcconf.h permonst.h prop.h rect.h region.h selvar.h sym.h defsym.h \
rm.h sp_lev.h spell.h sndprocs.h seffects.h stairs.h sys.h tcap.h \
timeout.h tradstdc.h trap.h unixconf.h vision.h vmsconf.h wintty.h \
wincurs.h winX.h winprocs.h wintype.h you.h youprop.h cstd.h
HSOURCES = $(HACKINCL) dgn_file.h
@@ -883,15 +883,15 @@ $(HACK_H): $(CONFIG_H) ../include/align.h ../include/artilist.h \
../include/hack.h ../include/lint.h ../include/mextra.h \
../include/mkroom.h ../include/monattk.h ../include/mondata.h \
../include/monflag.h ../include/monst.h ../include/monsters.h \
../include/nhlua.h ../include/obj.h ../include/objclass.h \
../include/objects.h ../include/permonst.h ../include/prop.h \
../include/quest.h ../include/rect.h ../include/region.h \
../include/rm.h ../include/seffects.h ../include/selvar.h \
../include/skills.h ../include/sndprocs.h ../include/spell.h \
../include/stairs.h ../include/sym.h ../include/sys.h \
../include/timeout.h ../include/trap.h ../include/vision.h \
../include/winprocs.h ../include/wintype.h ../include/you.h \
../include/youprop.h
../include/nhconst.h ../include/nhlua.h ../include/obj.h \
../include/objclass.h ../include/objects.h ../include/permonst.h \
../include/prop.h ../include/quest.h ../include/rect.h \
../include/region.h ../include/rm.h ../include/seffects.h \
../include/selvar.h ../include/skills.h ../include/sndprocs.h \
../include/spell.h ../include/stairs.h ../include/sym.h \
../include/sys.h ../include/timeout.h ../include/trap.h \
../include/vision.h ../include/winprocs.h ../include/wintype.h \
../include/you.h ../include/youprop.h
touch $(HACK_H)
#
$(TARGETPFX)cppregex.o: ../sys/share/cppregex.cpp $(CONFIG_H)

View File

@@ -393,7 +393,7 @@ $(HACK_H) : $(INC)hack.h $(CONFIG_H) $(INC)align.h \
$(INC)dungeon.h $(INC)sym.h $(INC)defsym.h $(INC)mkroom.h \
$(INC)objclass.h $(INC)youprop.h $(INC)prop.h \
$(INC)permonst.h $(INC)monattk.h \
$(INC)monflag.h $(INC)mondata.h $(INC)pm.h \
$(INC)monflag.h $(INC)mondata.h $(INC)nhconst.h $(INC)pm.h \
$(INC)wintype.h $(INC)context.h $(INC)decl.h $(INC)quest.h \
$(INC)spell.h $(INC)color.h $(INC)obj.h \
$(INC)you.h $(INC)attrib.h $(INC)monst.h \

View File

@@ -1121,15 +1121,15 @@ HACK_H = $(CONFIG_H) $(INCL)align.h $(INCL)artilist.h \
$(INCL)hack.h $(INCL)lint.h $(INCL)mextra.h \
$(INCL)mkroom.h $(INCL)monattk.h $(INCL)mondata.h \
$(INCL)monflag.h $(INCL)monst.h $(INCL)monsters.h \
$(INCL)nhlua.h $(INCL)obj.h $(INCL)objclass.h \
$(INCL)objects.h $(INCL)permonst.h $(INCL)prop.h \
$(INCL)quest.h $(INCL)rect.h $(INCL)region.h \
$(INCL)rm.h $(INCL)seffects.h $(INCL)selvar.h \
$(INCL)skills.h $(INCL)sndprocs.h $(INCL)spell.h \
$(INCL)stairs.h $(INCL)sym.h $(INCL)sys.h \
$(INCL)timeout.h $(INCL)trap.h $(INCL)vision.h \
$(INCL)winprocs.h $(INCL)wintype.h $(INCL)you.h \
$(INCL)youprop.h
$(INCL)nhconst.h $(INCL)nhlua.h $(INCL)obj.h \
$(INCL)objclass.h $(INCL)objects.h $(INCL)permonst.h \
$(INCL)prop.h $(INCL)quest.h $(INCL)rect.h \
$(INCL)region.h $(INCL)rm.h $(INCL)seffects.h \
$(INCL)selvar.h $(INCL)skills.h $(INCL)sndprocs.h \
$(INCL)spell.h $(INCL)stairs.h $(INCL)sym.h \
$(INCL)sys.h $(INCL)timeout.h $(INCL)trap.h \
$(INCL)vision.h $(INCL)winprocs.h $(INCL)wintype.h \
$(INCL)you.h $(INCL)youprop.h
TILE_H = $(WSHR)tile.h