static char sccsid
[] = "@(#)init.c 1.2 %G%";
puts("Version 4.2, fall 1984.");
puts("First Adventure game written by His Lordship, the honorable");
puts("Admiral D.W. Riggle\n");
for (p
= dayobjs
; p
->room
!= 0; p
++)
setbit(location
[p
->room
].objects
, p
->obj
);
ptr
= getpwuid(getuid());
strcpy(uname
, ptr
? ptr
->pw_name
: "");
char *list
[] = { /* hereditary wizards */
if (flag
= checkout(uname
))
printf("You are the Great wizard %s.\n", uname
);
for (ptr
= list
; *ptr
; ptr
++)
if (strcmp(*ptr
, uname
) == 0)
for (ptr
= badguys
; *ptr
; ptr
++)
if (strcmp(*ptr
, uname
) == 0) {
printf("You are the Poor anti-wizard %s. Good Luck!\n",
WEIGHT
= 9; /* that'll get him! */
setbit(location
[7].objects
, WOODSMAN
); /* viper room */
setbit(location
[20].objects
, WOODSMAN
); /* laser " */
setbit(location
[13].objects
, DARK
); /* amulet " */
setbit(location
[8].objects
, ELF
); /* closet */
return 0; /* anything else, Chris? */