-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathlarndata.h
More file actions
185 lines (124 loc) · 3.43 KB
/
larndata.h
File metadata and controls
185 lines (124 loc) · 3.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
/* Larn is copyrighted 1986 by Noah Morgan. */
/*
*
* types
*
*/
/* this is the structure that holds the entire dungeon specifications */
struct cel
{
short hitp; /* monster's hit points */
signed char mitem; /* the monster ID */
signed char item; /* the object's ID */
short iarg; /* the object's argument */
signed char know; /* have we been here before*/
};
/* this is the structure for maintaining & moving the spheres of annihilation */
struct sphere
{
struct sphere *p; /* pointer to next structure */
signed char x,y,lev; /* location of the sphere */
signed char dir; /* direction sphere is going in */
signed char lifetime; /* duration of the sphere */
};
/* this is the structure definition of the monster data
*/
struct monst
{
char *name;
signed char level;
short armorclass;
signed char damage;
signed char attack;
signed char defense;
signed char genocided;
signed char intelligence; /* monsters intelligence -- used to choose movement */
short gold;
short hitpoints;
unsigned long experience;
};
/* this is the structure definition for the items in the dnd store */
struct _itm
{
short price;
signed char obj;
signed char arg;
signed char qty;
};
/*
*
* data declarations
*
*/
extern signed char regen_bottom;
extern char floorc, wallc;
extern signed char VERSION, SUBVERSION;
extern signed char beenhere[],cheat;
extern signed char course[];
extern signed char item[MAXX][MAXY],iven[],know[MAXX][MAXY];
extern char aborted[];
extern char *classname[];
extern char lastmonst[];
extern char *lpnt, *lpbuf, *lpend, *inbuffer;
extern signed char level;
extern signed char mitem[MAXX][MAXY],monstlevel[];
extern signed char nch[],ndgg[],nlpts[],nomove;
extern signed char nplt[],nsw[];
extern signed char potprob[];
extern char monstnamelist[];
extern char *levelname[];
extern char objnamelist[];
extern char logname[];
extern char larnlevels[];
extern char diagfile[];
extern char fortfile[];
extern char helpfile[];
extern char logfile[];
extern char playerids[];
extern signed char predostuff,restorflag;
extern char savefilename[];
extern char scorefile[];
extern signed char scprob[];
extern signed char screen[MAXX][MAXY],sex;
extern signed char spelknow[];
extern char *spelmes[];
extern char *speldescript[];
extern char *spelcode[];
extern char *spelname[];
extern signed char splev[],stealth[MAXX][MAXY],wizard;
extern short diroffx[],diroffy[],hitflag,hit2flag,hit3flag,hitp[MAXX][MAXY];
extern short iarg[MAXX][MAXY],ivenarg[],lasthx,lasthy,lastnum,lastpx,lastpy;
extern short oldx,oldy,playerx,playery;
extern int enable_scroll,yrepcount,userid,wisid,lfd,fd;
extern long initialtime,outstanding_taxes,skill[],gtime,c[],cbak[];
extern unsigned long lrandx;
extern struct cel *cell;
extern struct sphere *spheres;
extern struct monst monster[];
extern struct _itm dnd_item[];
/*
* config.c
*/
extern char *password;
/*
* data.c
*/
extern signed char prayed;
extern char scrollname[MAXSCROLL+1][MAXSCROLLNAME];
extern char potionname[MAXPOTION+1][MAXPOTIONNAME];
extern char *objectname[];
extern signed char spelweird[MAXMONST+8][SPNUM];
/*
* main.c
*/
extern int rmst;
extern int dropflag;
extern int save_mode;
/*
* store.c
*/
extern int lasttime;
/*
* tok.c
*/
extern signed char move_no_pickup;