]>
git.cameronkatri.com Git - bsdgames-darwin.git/blob - hack/hack.timeout.c
d828297684ff8faf287c6bb0d488641a7c79b17d
1 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
2 /* hack.timeout.c - version 1.0.3 */
7 register struct prop
*upp
;
8 if(Stoned
) stoned_dialogue();
9 for(upp
= u
.uprops
; upp
< u
.uprops
+SIZE(u
.uprops
); upp
++)
10 if((upp
->p_flgs
& TIMEOUT
) && !--upp
->p_flgs
) {
11 if(upp
->p_tofn
) (*upp
->p_tofn
)();
12 else switch(upp
- u
.uprops
){
14 killer
= "cockatrice";
18 pline("You die because of food poisoning.");
19 killer
= u
.usick_cause
;
23 pline("You feel yourself slowing down.");
26 pline("You feel less confused now.");
29 pline("You can see again.");
34 pline("You are no longer invisible.");
43 /* He is being petrified - dialogue by inmet!tower */
44 char *stoned_texts
[] = {
45 "You are slowing down.", /* 5 */
46 "Your limbs are stiffening.", /* 4 */
47 "Your limbs have turned to stone.", /* 3 */
48 "You have turned to stone.", /* 2 */
49 "You are a statue." /* 1 */
54 register long i
= (Stoned
& TIMEOUT
);
56 if(i
> 0 && i
<= SIZE(stoned_texts
))
57 pline(stoned_texts
[SIZE(stoned_texts
) - i
]);