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.31; author agc; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2001.04.27.15.27.31; author agc; state Exp; branches; next ; desc @@ 1.2 log @Remove ularn package, as the code is unmaintained and messy. @ text @$NetBSD: patch-ay,v 1.1 2001/04/27 15:27:31 agc Exp $ --- show.c.orig Fri Jun 19 13:55:30 1992 +++ show.c Sat Jan 13 21:55:39 2001 @@@@ -9,7 +9,7 @@@@ show character's inventory */ -showstr() +void showstr(void) { int i,number; @@@@ -20,7 +20,7 @@@@ t_endup(number); } -qshowstr() +void qshowstr(void) { int k; @@@@ -44,7 +44,7 @@@@ /* * subroutine to clear screen depending on # lines to display */ -t_setup (count) +void t_setup (count) int count; { if (count<20) { @@@@ -53,14 +53,14 @@@@ } else { resetscroll(); - clear(); + ularn_clear(); } } /* * subroutine to restore normal display screen depending on t_setup() */ -t_endup (count) +void t_endup (count) int count; { if (count<18) /* how did we clear the screen? */ @@@@ -74,7 +74,7 @@@@ /* function to show the things player is wearing only */ -showwear() +void showwear(void) { int count, i,j; @@@@ -124,7 +124,7 @@@@ /* function to show the things player can wield only */ -showwield() +void showwield(void) { int i,j,count; @@@@ -182,7 +182,7 @@@@ /* * function to show the things player can read only */ -showread () +void showread (void) { int i,j,count; @@@@ -213,7 +213,7 @@@@ /* * function to show the things player can eat only */ -showeat () +void showeat (void) { int i,j,count; @@@@ -242,7 +242,7 @@@@ /* function to show the things player can quaff only */ -showquaff () +void showquaff (void) { int i,j,count; @@@@ -268,27 +268,26 @@@@ t_endup(count); } -show1 (idx, str2) +void show1 (idx, str2, known) int idx; char *str2[]; +int known; { - if (str2==0) - lprintf("\n%c) %s",idx+'a',objectname[iven[idx]]); - else if (*str2[ivenarg[idx]]==0) + if (str2 == 0 || known == 0) lprintf("\n%c) %s",idx+'a',objectname[iven[idx]]); else - lprintf("\n%c) %s of%s", + lprintf("\n%c) %s of %s", idx+'a',objectname[iven[idx]],str2[ivenarg[idx]]); if (wizard) lprintf(" [ %d ]", ivenarg[idx]); } -show3 (index) +void show3 (index) int index; { switch(iven[index]) { - case OPOTION: show1(index,potionname); break; - case OSCROLL: show1(index,scrollname); break; + case OPOTION: show1(index,potionname,potionknown[index]); break; + case OSCROLL: show1(index,scrollname,scrollknown[index]); break; case OLARNEYE: case OBOOK: case OSPIRITSCARAB: @@@@ -305,7 +304,7 @@@@ case OURN: case OWWAND: case OSPHTALISMAN: - case ONOTHEFT: show1(index,(char **)0); break; + case ONOTHEFT: show1(index,(char **)0,0); break; default: lprintf("\n%c) %s",index+'a',objectname[iven[index]]); @@@@ -322,6 +321,6 @@@@ if (++srcount>=22) { srcount=0; more(); - clear(); + ularn_clear(); } } @ 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 @@