]>
git.cameronkatri.com Git - bsdgames-darwin.git/blob - hack/hack.timeout.c
1 /* $NetBSD: hack.timeout.c,v 1.5 2001/03/25 20:44:03 jsm Exp $ */
4 * Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985.
9 __RCSID("$NetBSD: hack.timeout.c,v 1.5 2001/03/25 20:44:03 jsm Exp $");
21 for (upp
= u
.uprops
; upp
< u
.uprops
+ SIZE(u
.uprops
); upp
++)
22 if ((upp
->p_flgs
& TIMEOUT
) && !--upp
->p_flgs
) {
26 switch (upp
- u
.uprops
) {
28 killer
= "cockatrice";
32 pline("You die because of food poisoning.");
33 killer
= u
.usick_cause
;
37 pline("You feel yourself slowing down.");
40 pline("You feel less confused now.");
43 pline("You can see again.");
48 pline("You are no longer invisible.");
57 /* He is being petrified - dialogue by inmet!tower */
58 const char *const stoned_texts
[] = {
59 "You are slowing down.",/* 5 */
60 "Your limbs are stiffening.", /* 4 */
61 "Your limbs have turned to stone.", /* 3 */
62 "You have turned to stone.", /* 2 */
63 "You are a statue." /* 1 */
69 long i
= (Stoned
& TIMEOUT
);
71 if (i
> 0 && i
<= SIZE(stoned_texts
))
72 pline(stoned_texts
[SIZE(stoned_texts
) - i
]);