Searched refs:rund (Results 1 – 8 of 8) sorted by relevance
| /netbsd/src/games/larn/ |
| D | create.c | 256 for (i = 18 * rund(i - '0'); i > 0; i--) in cannedlevel() 274 mit = rund(8) + DEMONLORD; in cannedlevel() 359 item[i = tx + rund(xsize)][j = ty + (ysize - 1) * rund(2)] = OCLOSEDDOOR; in troom() 363 item[i = tx + (xsize - 1) * rund(2)][j = ty + rund(ysize)] = OCLOSEDDOOR; in troom() 421 fillmroom(rund(3), OBOOK, j); in makeobject() 422 fillmroom(rund(3), OALTAR, 0); in makeobject() 423 fillmroom(rund(3), OSTATUE, 0); in makeobject() 424 fillmroom(rund(3), OPIT, 0); in makeobject() 425 fillmroom(rund(3), OFOUNTAIN, 0); in makeobject() 427 fillmroom(rund(2), OTHRONE, 0); in makeobject() [all …]
|
| D | header.h | 377 #define newscroll() (scprob[rund(81)]) 379 #define newpotion() (potprob[rund(41)]) 381 #define newleather() (nlpts[rund(c[HARDGAME]?13:15)]) 383 #define newchain() (nch[rund(10)]) 385 #define newplate() (nplt[rund(c[HARDGAME]?4:12)]) 387 #define newdagger() (ndgg[rund(13)]) 389 #define newsword() (nsw[rund(c[HARDGAME]?6:13)]) 439 #define rund(x) ((((randx=randx*1103515245+12345)>>7)%(x)) ) macro
|
| D | global.c | 78 raisemspells((int) rund(3)); in raiseexperience() 110 losemspells((int) rund(3)); /* lose spells */ in loseexperience() 624 i = rund(26); in stealsomething() 857 rund(int x) in rund() function
|
| D | monster.c | 1432 *i = rund(lev / 3 + 1); in newobject() 1439 *i = rund(lev / 4 + 1); in newobject() 1446 *i = rund(lev / 2 + 1); in newobject() 1449 *i = rund(lev / 3 + 1); in newobject() 1455 *i = rund(lev / 2 + 1); in newobject() 1622 i = rund(26); in spattack() 1655 return (spattack(spsel[rund(10)], xx, yy)); in spattack()
|
| D | extern.h | 106 int rund(int);
|
| D | object.c | 745 c[rund(6)]++; in quaffpotion() 1199 i = rund((tmp = splev[lev]) ? tmp : 1); in readbook()
|
| D | diag.c | 121 rndcount[rund(16)]++; in diag()
|
| D | display.c | 504 dir = rund(9); /* if confused any dir */ in moveplayer()
|