OpenGrok
Home
Sort by:
relevance
|
last modified time
|
path
Full Search
in project(s):
src
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:rand_mod
(Results
1 - 8
of
8
) sorted by relevancy
/src/games/warp/
init.c
106
inumstars = 50 +
rand_mod
(50);
108
inumstars = exdis(800) +
rand_mod
(100) + 1;
110
inumstars = exdis(700) +
rand_mod
(150-super*2) + 50+super*2;
112
tmptholspec = (smarts > 15 && inumstars < 450 && !
rand_mod
(90-sm80));
114
inumenemies =
rand_mod
((smarts+1)/2) + 1;
119
inumfriends =
rand_mod
(smarts/8+1);
121
inumpirates =
rand_mod
(inumfriends/2+1);
138
((!numstars ||
rand_mod
(2) || smarts < 10) ? 0 : 1);
142
crushspec||massacre?1:(
rand_mod
(2000) < inumstars);
145
!
rand_mod
(inumcrushes?3-massacre:8) ); /* < and & are fun together *
[
all
...]
them.c
59
modify_amoeba(y,x,1,' ',(int)
rand_mod
(5+ambsize/10)+1);
64
if (!
rand_mod
(4))
65
obj->image =
rand_mod
(2) ? '<' : '>';
69
obj->vely += (
rand_mod
(222) - 111) / 100;
70
if (!(
rand_mod
(100))) {
75
if (!
rand_mod
(3))
77
if (nuke->strategy && ambsize < 90 && !
rand_mod
(200-smarts))
78
modify_amoeba(0,0,0,'~',(int)
rand_mod
(10));
79
if (ambsize > 200 || (ambsize > 100 && !
rand_mod
(15)))
110
btorp -=
rand_mod
(50)
[
all
...]
weapon.c
76
else if (
rand_mod
(120)+10 > smarts)
86
if (
rand_mod
(160)+10 > smarts)
129
if (massacre || madgorns || !
rand_mod
(53-super) )
130
webnear +=
rand_mod
(2);
141
if (
rand_mod
(2+scandist-prob) <
142
rand_mod
(smarts/40+1))
143
tract(nuke,dy,dx,
rand_mod
(3)?1:-1);
145
if (
rand_mod
(51 - sm50) <= prob) {
147
rand_mod
(ent?4:2)) {
164
rand_mod
(prob<5&&smarts>70?4:3)-1
[
all
...]
us.c
57
if (!
rand_mod
(50)) {
59
damflag[NOTRACTORS] =
rand_mod
(smarts+10)+2;
70
if (!
rand_mod
(30+500/(abs(evely)+abs(evelx)+1))) {
72
damflag[entmode?NOWARP:NOIMPULSE] =
rand_mod
(smarts+10)+2;
122
if (!
rand_mod
(200)) {
124
damflag[NOPHASERS] =
rand_mod
(smarts+10)+2;
147
if (!
rand_mod
(300)) {
149
damflag[NOTORPS] =
rand_mod
(smarts+10)+2;
315
if (!
rand_mod
(100/numzaps)) {
317
damflag[NOZAPPER] =
rand_mod
(smarts+10)+2
[
all
...]
util.h
12
#define
rand_mod
(m) ((myrand() / 37) % (m)) /* pick number in 0..m-1 */
macro
move.c
46
y = (y +
rand_mod
(3) - 1 + YSIZE00) % YSIZE;
47
x = (x +
rand_mod
(3) - 1 + XSIZE00) % XSIZE;
106
curobj->vely =
rand_mod
(3)-1;
107
curobj->velx =
rand_mod
(3)-1;
176
if (!
rand_mod
(10)) {
180
damflag[NOSHIELDS] +=
rand_mod
(smarts)/5+2;
186
blast[y][x] +=
rand_mod
(751)+1;
232
if (tmpblast > 250 && !
rand_mod
(5+(inumstars>>4)))
272
if (
rand_mod
(1 + tmp - curobj->energy) > 100
276
!
rand_mod
(6-smarts/20-massacre) ))
[
all
...]
play.c
65
if (!
rand_mod
(300)) {
67
damflag[NOCLOAKING] =
rand_mod
(smarts+1)+2;
score.c
314
tmp = (34 - damflag[dam]) * 3 -
rand_mod
(3);
445
bonuses += tmp = (long)
rand_mod
(deadmudds * 20 + 1) - deadmudds*10;
505
snprintf(spbuf, sizeof(spbuf), "smap.%d",
rand_mod
(MAPS-PERMMAPS)+PERMMAPS);
Completed in 29 milliseconds
Indexes created Wed Oct 15 16:09:53 GMT 2025