]>
git.cameronkatri.com Git - bsdgames-darwin.git/blob - hack/hack.timeout.c
2 * Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985.
6 static char rcsid
[] = "$NetBSD: hack.timeout.c,v 1.3 1995/03/23 08:31:37 cgd Exp $";
12 register struct prop
*upp
;
13 if(Stoned
) stoned_dialogue();
14 for(upp
= u
.uprops
; upp
< u
.uprops
+SIZE(u
.uprops
); upp
++)
15 if((upp
->p_flgs
& TIMEOUT
) && !--upp
->p_flgs
) {
16 if(upp
->p_tofn
) (*upp
->p_tofn
)();
17 else switch(upp
- u
.uprops
){
19 killer
= "cockatrice";
23 pline("You die because of food poisoning.");
24 killer
= u
.usick_cause
;
28 pline("You feel yourself slowing down.");
31 pline("You feel less confused now.");
34 pline("You can see again.");
39 pline("You are no longer invisible.");
48 /* He is being petrified - dialogue by inmet!tower */
49 char *stoned_texts
[] = {
50 "You are slowing down.", /* 5 */
51 "Your limbs are stiffening.", /* 4 */
52 "Your limbs have turned to stone.", /* 3 */
53 "You have turned to stone.", /* 2 */
54 "You are a statue." /* 1 */
59 register long i
= (Stoned
& TIMEOUT
);
61 if(i
> 0 && i
<= SIZE(stoned_texts
))
62 pline(stoned_texts
[SIZE(stoned_texts
) - i
]);