head 1.2; access; symbols pkgsrc-2013Q2:1.2.0.44 pkgsrc-2013Q2-base:1.2 pkgsrc-2012Q4:1.2.0.42 pkgsrc-2012Q4-base:1.2 pkgsrc-2011Q4:1.2.0.40 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q2:1.2.0.38 pkgsrc-2011Q2-base:1.2 pkgsrc-2009Q4:1.2.0.36 pkgsrc-2009Q4-base:1.2 pkgsrc-2008Q4:1.2.0.34 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.32 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.30 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.28 pkgsrc-2008Q2-base:1.2 pkgsrc-2008Q1:1.2.0.26 pkgsrc-2008Q1-base:1.2 pkgsrc-2007Q4:1.2.0.24 pkgsrc-2007Q4-base:1.2 pkgsrc-2007Q3:1.2.0.22 pkgsrc-2007Q3-base:1.2 pkgsrc-2007Q2:1.2.0.20 pkgsrc-2007Q2-base:1.2 pkgsrc-2007Q1:1.2.0.18 pkgsrc-2007Q1-base:1.2 pkgsrc-2006Q4:1.2.0.16 pkgsrc-2006Q4-base:1.2 pkgsrc-2006Q3:1.2.0.14 pkgsrc-2006Q3-base:1.2 pkgsrc-2006Q2:1.2.0.12 pkgsrc-2006Q2-base:1.2 pkgsrc-2006Q1:1.2.0.10 pkgsrc-2006Q1-base:1.2 pkgsrc-2005Q4:1.2.0.8 pkgsrc-2005Q4-base:1.2 pkgsrc-2005Q3:1.2.0.6 pkgsrc-2005Q3-base:1.2 pkgsrc-2005Q2:1.2.0.4 pkgsrc-2005Q2-base:1.2 pkgsrc-2005Q1:1.2.0.2 pkgsrc-2005Q1-base:1.2 pkgsrc-2004Q4:1.1.1.1.0.18 pkgsrc-2004Q4-base:1.1.1.1 pkgsrc-2004Q3:1.1.1.1.0.16 pkgsrc-2004Q3-base:1.1.1.1 pkgsrc-2004Q2:1.1.1.1.0.14 pkgsrc-2004Q2-base:1.1.1.1 pkgsrc-2004Q1:1.1.1.1.0.12 pkgsrc-2004Q1-base:1.1.1.1 pkgsrc-2003Q4:1.1.1.1.0.10 pkgsrc-2003Q4-base:1.1.1.1 netbsd-1-6-1:1.1.1.1.0.6 netbsd-1-6-1-base:1.1.1.1 netbsd-1-6:1.1.1.1.0.8 netbsd-1-6-RELEASE-base:1.1.1.1 pkgviews:1.1.1.1.0.4 pkgviews-base:1.1.1.1 buildlink2:1.1.1.1.0.2 buildlink2-base:1.1.1.1 netbsd-1-5-PATCH003:1.1.1.1 netbsd-1-5-PATCH001:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.2 date 2005.02.28.02.48.56; author ben; state dead; branches; next 1.1; 1.1 date 2001.04.27.15.27.30; author agc; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2001.04.27.15.27.30; author agc; state Exp; branches; next ; desc @@ 1.2 log @Remove ularn package, as the code is unmaintained and messy. @ text @$NetBSD: patch-ab,v 1.1 2001/04/27 15:27:30 agc Exp $ --- action.c.orig Sat Jan 13 16:20:10 2001 +++ action.c Sat Jan 13 17:54:58 2001 @@@@ -4,7 +4,7 @@@@ #include "player.h" #include "extern.h" -run (dir) +void run (dir) int dir; { int i; @@@@ -27,7 +27,7 @@@@ /* function to wield a weapon */ -wield () +void wield () { int i; @@@@ -56,14 +56,14 @@@@ /* common routine to say you don't have an item */ -ydhi (x) +void ydhi (x) int x; { cursors(); lprintf("\nYou don't have item %c!",x); } -ycwi (x) +void ycwi (x) int x; { cursors(); @@@@ -73,7 +73,7 @@@@ /* function to wear armor */ -wear () +void wear () { int i; @@@@ -124,10 +124,10 @@@@ /* function to drop an object */ -dropobj () +void dropobj () { int i, pitflag=0; - char *p; + int *p; long amt; p = &item[playerx][playery]; @@@@ -197,7 +197,7 @@@@ /* * readscr() Subroutine to read a scroll one is carrying */ -readscr () +void readscr () { int i; @@@@ -230,39 +230,40 @@@@ /* * subroutine to eat a cookie one is carrying */ -eatcookie () +void eatcookie () { int i; char *fortune(), *p; while (1) { - if ((i = whatitem("eat"))==ESC) - return; - if (i != '.') - if (i=='*') - showeat(); - else { - if (iven[i-'a']==OCOOKIE) { - lprcat("\nThe cookie was delicious."); - iven[i-'a']=0; - if (!c[BLINDCOUNT]) { - if ((p=fortune(fortfile))!=0) { - lprcat(" Inside you find a scrap of paper that says:\n"); - lprcat(p); + if ((i = whatitem("eat"))==ESC) + return; + if (i != '.') { + if (i=='*') { + showeat(); + } else { + if (iven[i-'a']==OCOOKIE) { + lprcat("\nThe cookie was delicious."); + iven[i-'a']=0; + if (!c[BLINDCOUNT]) { + if ((p=fortune(fortfile))!=0) { + lprcat(" Inside you find a scrap of paper that says:\n"); + lprcat(p); + } + } + return; } + if (iven[i-'a']==0) { ydhi(i); return; } + lprcat("\nYou can't eat that!"); return; } - return; } - if (iven[i-'a']==0) { ydhi(i); return; } - lprcat("\nYou can't eat that!"); return; - } } } /* * subroutine to quaff a potion one is carrying */ -quaff () +void quaff () { int i; @@@@ -289,7 +290,7 @@@@ } } -qwhatitem () +int qwhatitem () { int j, i=0; char tmp[IVENSIZE]; @@@@ -316,7 +317,7 @@@@ /* function to ask what player wants to do */ -whatitem (str) +int whatitem (str) char *str; { int j=0, flag=0, i=0; @@@@ -440,7 +441,7 @@@@ return (amt); } -do_create() +void do_create() { int t, a; @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ @ 1.1.1.1 log @Initial import of ularn-6.12.92 into the packages collection. Provided in PR 12072 by Ben Collver (collver@@linuxfreemail.com). Ularn is a fantasy games in which your child has contracted a strange dis- ease, and none of your home remedies seem to have any effect. You set out to find a remedy in a limited amount of time, and to collect gold along the way of course! Ularn is based on larn, and adds the concept of character classes. @ text @@