diff options
author | Paul Janzen <pjanzen@cvs.openbsd.org> | 1998-08-22 08:56:02 +0000 |
---|---|---|
committer | Paul Janzen <pjanzen@cvs.openbsd.org> | 1998-08-22 08:56:02 +0000 |
commit | 6910826c1b27cf6a9d4cb8400743d571d3c9a27b (patch) | |
tree | 9562c830236235b683790903daad5db093658719 /games/rogue/zap.c | |
parent | 92cf145f2c1e59139400da3a8db7b06cc24b7b54 (diff) |
More largely NetBSD-inspired code cleanup
Diffstat (limited to 'games/rogue/zap.c')
-rw-r--r-- | games/rogue/zap.c | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/games/rogue/zap.c b/games/rogue/zap.c index 9bda4dddac2..eeb2070d4c3 100644 --- a/games/rogue/zap.c +++ b/games/rogue/zap.c @@ -1,3 +1,4 @@ +/* $OpenBSD: zap.c,v 1.3 1998/08/22 08:55:53 pjanzen Exp $ */ /* $NetBSD: zap.c,v 1.3 1995/04/22 10:28:41 cgd Exp $ */ /* @@ -40,7 +41,7 @@ #if 0 static char sccsid[] = "@(#)zap.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$NetBSD: zap.c,v 1.3 1995/04/22 10:28:41 cgd Exp $"; +static char rcsid[] = "$OpenBSD: zap.c,v 1.3 1998/08/22 08:55:53 pjanzen Exp $"; #endif #endif /* not lint */ @@ -60,9 +61,7 @@ static char rcsid[] = "$NetBSD: zap.c,v 1.3 1995/04/22 10:28:41 cgd Exp $"; boolean wizard = 0; -extern boolean being_held, score_only, detect_monster; -extern short cur_room; - +void zapp() { short wch; @@ -119,8 +118,8 @@ zapp() object * get_zapped_monster(dir, row, col) -short dir; -short *row, *col; + short dir; + short *row, *col; { short orow, ocol; @@ -140,9 +139,10 @@ short *row, *col; } } +void zap_monster(monster, kind) -object *monster; -unsigned short kind; + object *monster; + unsigned short kind; { short row, col; object *nm; @@ -207,8 +207,9 @@ unsigned short kind; } } +void tele_away(monster) -object *monster; + object *monster; { short row, col; @@ -226,6 +227,7 @@ object *monster; } } +void wizardize() { char buf[100]; @@ -248,8 +250,9 @@ wizardize() } } +void wdrain_life(monster) -object *monster; + object *monster; { short hp; object *lmon, *nm; @@ -277,8 +280,9 @@ object *monster; relight(); } +void bounce(ball, dir, row, col, r) -short ball, dir, row, col, r; + short ball, dir, row, col, r; { short orow, ocol; char buf[DCOLS], *s; |