1- /* $NetBSD: dr_1.c,v 1.10 1999/09 /30 18:01:33 jsm Exp $ */
1+ /* $NetBSD: dr_1.c,v 1.11 2000/11 /30 22:02:20 jwise Exp $ */
22
33/*
44 * Copyright (c) 1983, 1993
3838#if 0
3939static char sccsid [] = "@(#)dr_1.c 8.1 (Berkeley) 5/31/93" ;
4040#else
41- __RCSID ("$NetBSD: dr_1.c,v 1.10 1999/09 /30 18:01:33 jsm Exp $" );
41+ __RCSID ("$NetBSD: dr_1.c,v 1.11 2000/11 /30 22:02:20 jwise Exp $" );
4242#endif
4343#endif /* not lint */
4444
@@ -62,7 +62,7 @@ unfoul()
6262 !is_toughmelee (sp , to , 0 , 0 ))
6363 continue ;
6464 for (i = fouled2 (sp , to ); -- i >= 0 ;)
65- if (die () <= 2 )
65+ if (dieroll () <= 2 )
6666 cleanfoul (sp , to , 0 );
6767 }
6868 }
@@ -173,12 +173,12 @@ int key;
173173 index = fromstrength /10 ;
174174 if (index > 8 )
175175 index = 8 ;
176- toinjured = MT [index ][2 - die () / 3 ];
176+ toinjured = MT [index ][2 - dieroll () / 3 ];
177177 totalto += toinjured ;
178178 index = strengthto /10 ;
179179 if (index > 8 )
180180 index = 8 ;
181- frominjured = MT [index ][2 - die () / 3 ];
181+ frominjured = MT [index ][2 - dieroll () / 3 ];
182182 totalfrom += frominjured ;
183183 menfrom -= frominjured ;
184184 mento -= toinjured ;
@@ -392,7 +392,7 @@ compcombat()
392392 if (hit >= 0 ) {
393393 if (load != L_GRAPE )
394394 hit = hit > 10 ? 10 : hit ;
395- table (shootat , load , hit , closest , sp , die ());
395+ table (shootat , load , hit , closest , sp , dieroll ());
396396 }
397397 }
398398 }
@@ -439,8 +439,8 @@ next()
439439 return -1 ;
440440 }
441441 Write (W_TURN , SHIP (0 ), turn , 0 , 0 , 0 );
442- if (turn % 7 == 0 && (die () >= cc -> windchange || !windspeed )) {
443- switch (die ()) {
442+ if (turn % 7 == 0 && (dieroll () >= cc -> windchange || !windspeed )) {
443+ switch (dieroll ()) {
444444 case 1 :
445445 winddir = 1 ;
446446 break ;
@@ -464,7 +464,7 @@ next()
464464 if (winddir < 1 )
465465 winddir += 8 ;
466466 if (windspeed )
467- switch (die ()) {
467+ switch (dieroll ()) {
468468 case 1 :
469469 case 2 :
470470 windspeed -- ;
0 commit comments