pkgsrc/games/ularn/patches/patch-aq
agc dc08309f80 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.
2001-04-27 15:27:30 +00:00

94 lines
1.5 KiB
Text

$NetBSD: patch-aq,v 1.1.1.1 2001/04/27 15:27:31 agc Exp $
--- moreobj.c.orig Sat Jan 13 20:22:49 2001
+++ moreobj.c Sat Jan 13 20:27:37 2001
@@ -7,6 +7,8 @@
* ochest()
* ofountain()
*/
+#include <stdlib.h>
+#include <unistd.h>
#include "header.h"
#include "player.h"
#include "itm.h"
@@ -19,7 +21,7 @@
* ******
*
*/
-oaltar()
+void oaltar(void)
{
long k;
@@ -71,7 +73,7 @@
return;
}
c[GOLD] -= k;
- if (k < c[GOLD]/10 || k<rnd(50) && !wizard) {
+ if ((k < c[GOLD]/10 || k<rnd(50)) && !wizard) {
createmonster(makemonst(level+2));
c[AGGRAVATE] += 500;
}
@@ -129,7 +131,7 @@
/*
function to cast a +3 protection on the player
*/
-ohear()
+void ohear(void)
{
lprcat("You have been heard!");
if (c[ALTPRO]==0)
@@ -144,7 +146,7 @@
* *******
*
*/
-othrone(arg)
+void othrone(arg)
int arg;
{
int i,k;
@@ -194,7 +196,7 @@
} /* NOTREACHED */
}
-odeadthrone()
+void odeadthrone(void)
{
int k;
@@ -228,7 +230,7 @@
* ******
*
*/
-ochest()
+void ochest(void)
{
int i,k;
@@ -294,7 +296,7 @@
* OFOUNTAIN
* *********
*/
-ofountain()
+void ofountain(void)
{
int x;
@@ -371,7 +373,7 @@
a subroutine to raise or lower character levels
if how > 0 they are raised if how < 0 they are lowered
*/
-fntchange(how)
+void fntchange(how)
int how;
{
long j;
@@ -464,7 +466,7 @@
*
* process an up/down of a character attribute for ofountain
*/
-fch(how,x)
+void fch(how,x)
int how;
long *x;
{