summaryrefslogtreecommitdiffstats
path: root/sail/pl_3.c
diff options
context:
space:
mode:
authorjwise <jwise@NetBSD.org>2000-11-30 22:02:20 +0000
committerjwise <jwise@NetBSD.org>2000-11-30 22:02:20 +0000
commit57a75ab7b9a0f4999cae7c0fa5acb46f230f38f2 (patch)
tree3bc754d092f41e7b5667b0fa6271416284ab03db /sail/pl_3.c
parent104808840672ea22714fd8cedb51ead07e21a3c5 (diff)
downloadbsdgames-darwin-57a75ab7b9a0f4999cae7c0fa5acb46f230f38f2.tar.gz
bsdgames-darwin-57a75ab7b9a0f4999cae7c0fa5acb46f230f38f2.tar.zst
bsdgames-darwin-57a75ab7b9a0f4999cae7c0fa5acb46f230f38f2.zip
Change the macro to roll a six-sided die from die() to dieroll() (for
obvious reasons of convention).
Diffstat (limited to 'sail/pl_3.c')
-rw-r--r--sail/pl_3.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sail/pl_3.c b/sail/pl_3.c
index be5cbb21..9b476f6c 100644
--- a/sail/pl_3.c
+++ b/sail/pl_3.c
@@ -1,4 +1,4 @@
-/* $NetBSD: pl_3.c,v 1.8 1999/09/08 21:17:59 jsm Exp $ */
+/* $NetBSD: pl_3.c,v 1.9 2000/11/30 22:02:20 jwise Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)pl_3.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: pl_3.c,v 1.8 1999/09/08 21:17:59 jsm Exp $");
+__RCSID("$NetBSD: pl_3.c,v 1.9 2000/11/30 22:02:20 jwise Exp $");
#endif
#endif /* not lint */
@@ -177,7 +177,7 @@ acceptcombat()
if (windspeed == 6 && temp <= 3)
hit--;
if (hit >= 0) {
- roll = die();
+ roll = dieroll();
if (load == L_GRAPE)
chits = hit;
else {
@@ -232,7 +232,7 @@ grapungrap()
switch (sgetch("Attempt to grapple or ungrapple $$: ",
sp, 1)) {
case 'g':
- if (die() < 3
+ if (dieroll() < 3
|| ms->nationality == capship(sp)->nationality) {
Write(W_GRAP, ms, sp->file->index, 0, 0, 0);
Write(W_GRAP, sp, player, 0, 0, 0);
@@ -245,7 +245,7 @@ grapungrap()
for (i = grappled2(ms, sp); --i >= 0;) {
if (ms->nationality
== capship(sp)->nationality
- || die() < 3) {
+ || dieroll() < 3) {
cleangrapple(ms, sp, 0);
Msg("Attempt succeeds!");
makesignal(ms, "ungrappling with $$",
@@ -270,7 +270,7 @@ unfoulplayer()
if (sgetch("Attempt to unfoul with the $$? ", to, 1) != 'y')
continue;
for (i = fouled2(ms, to); --i >= 0;) {
- if (die() <= 2) {
+ if (dieroll() <= 2) {
cleanfoul(ms, to, 0);
Msg("Attempt succeeds!");
makesignal(ms, "Unfouling $$", to);