Mercurial > hg > early-roguelike
annotate rogue4/Makefile.in @ 245:e7aab31362af
Rogue V[345], Super-Rogue: Fix violet fungi/venus flytraps.
Violet fungi (renamed venus flytraps in Rogue V5) do an increasing
amount of damage each time they hit. If they miss, you still suffer
the same number of HP. This worked by keeping a counter and printing
new damage strings into monsters[5].m_stats.s_dmg, which is the
"prototype" of that particular monster.
Each individual monster has its own damage string. Apparently these
were once char *, pointing to the same string as the prototype. When
the s_dmg member was changed to be an internal char array, changing the
prototype's damage string no longer had any effect on actual monsters.
As a result, flytraps did no damage on a hit, or only one point in V5.
The mechanism for doing damage on a miss continued to work.
This has been fixed by overwriting the individual monster's damage
string instead of the prototype's. It is now no longer necessary to
reset the damage string when the flytrap is killed. The method for
resetting it when the hero teleports away had to be modified. Comments
referencing the long-unused xstr have been removed.
author | John "Elwin" Edwards |
---|---|
date | Sun, 01 May 2016 19:39:56 -0400 |
parents | bac2c81fec78 |
children | 0b3d1b38998f |
rev | line source |
---|---|
51 | 1 # |
2 # Makefile for rogue | |
3 # @(#)Makefile 4.13 (Berkeley) 1/23/82 | |
4 # | |
5 # Rogue: Exploring the Dungeons of Doom | |
6 # Copyright (C) 1980, 1981, 1982 Michael Toy, Ken Arnold and Glenn Wichman | |
7 # All rights reserved. | |
8 # | |
9 # See the file LICENSE.TXT for full copyright and licensing information. | |
10 # | |
11 | |
12 DISTNAME=@PACKAGE_TARNAME@@PACKAGE_VERSION@ | |
13 PACKAGE_TARNAME = @PACKAGE_TARNAME@-@PACKAGE_VERSION@ | |
14 PROGRAM=@PROGRAM@ | |
15 | |
16 CC = @CC@ | |
17 LIBS = @LIBS@ | |
18 | |
19 SCOREFILE=@SCOREFILE@ | |
20 LOGFILE=@LOGFILE@ | |
21 SAVEDIR=@SAVEDIR@ | |
22 LOCKFILE=@LOCKFILE@ | |
116
97f8fdf9595c
Makefiles: don't set defaults for CFLAGS.
John "Elwin" Edwards
parents:
109
diff
changeset
|
23 |
51 | 24 GROUPOWNER=@GROUPOWNER@ |
25 | |
93 | 26 DESTDIR= |
51 | 27 prefix=@prefix@ |
28 exec_prefix=@exec_prefix@ | |
29 datarootdir=@datarootdir@ | |
30 bindir=@bindir@ | |
31 mandir=@mandir@ | |
32 man6dir=$(mandir)/man6 | |
33 docdir=@docdir@ | |
34 | |
104
fbc75509f4cd
Add config.h to the list of headers in the Makefiles.
John "Elwin" Edwards
parents:
96
diff
changeset
|
35 HDRS= rogue.h extern.h config.h |
51 | 36 DOBJS= vers.o extern.o armor.o chase.o command.o daemon.o daemons.o \ |
37 fight.o init.o io.o list.o main.o misc.o monsters.o move.o \ | |
38 new_level.o options.o pack.o passages.o potions.o rings.o rip.o \ | |
39 rooms.o save.o scrolls.o state.o sticks.o things.o weapons.o wizard.o\ | |
40 xcrypt.o mdport.o | |
41 OBJS= $(DOBJS) mach_dep.o | |
42 CFILES= vers.c extern.c armor.c chase.c command.c daemon.c daemons.c \ | |
43 fight.c init.c io.c list.c main.c misc.c monsters.c move.c \ | |
44 new_level.c options.c pack.c passages.c potions.c rings.c rip.c \ | |
45 rooms.c save.c scrolls.c state.c sticks.c things.c weapons.c wizard.c \ | |
46 mach_dep.c xcrypt.c mdport.c | |
47 MISC= Makefile LICENSE.TXT rogue.6 rogue.me | |
223
0e99eade579c
Generate text documentation from the troff source files.
John "Elwin" Edwards
parents:
116
diff
changeset
|
48 DOCS= $(PROGRAM).cat $(PROGRAM).doc |
51 | 49 |
116
97f8fdf9595c
Makefiles: don't set defaults for CFLAGS.
John "Elwin" Edwards
parents:
109
diff
changeset
|
50 CFLAGS= |
109
ec9db3bb6b0b
rogue4: don't include config.h if it wasn't created.
John "Elwin" Edwards
parents:
104
diff
changeset
|
51 CPPFLAGS=@DEFS@ |
51 | 52 CRLIB = -lcurses |
53 RM = rm -f | |
54 TAR = tar | |
55 TOUCH=touch | |
56 MKDIR=mkdir | |
57 CHGRP=chgrp | |
58 CHMOD=chmod | |
59 INSTALL=@INSTALL@ | |
223
0e99eade579c
Generate text documentation from the troff source files.
John "Elwin" Edwards
parents:
116
diff
changeset
|
60 GROFF=@GROFF@ |
0e99eade579c
Generate text documentation from the troff source files.
John "Elwin" Edwards
parents:
116
diff
changeset
|
61 NROFF=@NROFF@ |
0e99eade579c
Generate text documentation from the troff source files.
John "Elwin" Edwards
parents:
116
diff
changeset
|
62 COLCRT=@COLCRT@ |
0e99eade579c
Generate text documentation from the troff source files.
John "Elwin" Edwards
parents:
116
diff
changeset
|
63 TBL=@TBL@ |
51 | 64 |
65 SF= | |
66 NAMELIST= | |
67 NL= | |
68 #MACHDEP= -DMAXLOAD=40 -DLOADAV -DCHECKTIME=4 | |
69 MACHDEP= | |
70 | |
232
bac2c81fec78
Makefiles: don't rely on built-in implicit rules.
John "Elwin" Edwards
parents:
224
diff
changeset
|
71 .SUFFIXES: .c .o |
bac2c81fec78
Makefiles: don't rely on built-in implicit rules.
John "Elwin" Edwards
parents:
224
diff
changeset
|
72 |
51 | 73 .c.o: |
109
ec9db3bb6b0b
rogue4: don't include config.h if it wasn't created.
John "Elwin" Edwards
parents:
104
diff
changeset
|
74 @echo $(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c |
ec9db3bb6b0b
rogue4: don't include config.h if it wasn't created.
John "Elwin" Edwards
parents:
104
diff
changeset
|
75 @$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c -o $*.o |
51 | 76 # @cpp -P $(CFLAGS) $*.c | ./xstr -v -c - |
77 # @cc -c $(CFLAGS) x.c | |
78 # @mv x.o $*.o | |
79 | |
223
0e99eade579c
Generate text documentation from the troff source files.
John "Elwin" Edwards
parents:
116
diff
changeset
|
80 all: $(PROGRAM) docs |
0e99eade579c
Generate text documentation from the troff source files.
John "Elwin" Edwards
parents:
116
diff
changeset
|
81 |
0e99eade579c
Generate text documentation from the troff source files.
John "Elwin" Edwards
parents:
116
diff
changeset
|
82 $(PROGRAM): $(HDRS) $(OBJS) # xs.o |
51 | 83 # @rm -f x.c |
84 # $(CC) $(LDFLAGS) xs.o $(OBJS) $(CRLIB) | |
85 $(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o $@ | |
86 | |
87 main.o: main.c $(HDRS) | |
109
ec9db3bb6b0b
rogue4: don't include config.h if it wasn't created.
John "Elwin" Edwards
parents:
104
diff
changeset
|
88 $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ main.c |
51 | 89 |
90 vers.o: | |
109
ec9db3bb6b0b
rogue4: don't include config.h if it wasn't created.
John "Elwin" Edwards
parents:
104
diff
changeset
|
91 $(CC) -c $(CPPFLAGS) $(CFLAGS) vers.c |
51 | 92 |
93 mach_dep.o: mach_dep.c | |
109
ec9db3bb6b0b
rogue4: don't include config.h if it wasn't created.
John "Elwin" Edwards
parents:
104
diff
changeset
|
94 $(CC) -c $(CPPFLAGS) $(CFLAGS) $(SF) $(NL) $(MACHDEP) mach_dep.c |
51 | 95 |
96 xs.o: strings | |
97 ./xstr | |
98 $(CC) -c $(CFLAGS) xs.c | |
99 | |
100 xstr: xstr.c | |
101 $(CC) -s -O -o xstr xstr.c | |