OpenGrok
Home
Sort by:
relevance
|
last modified time
|
path
Full Search
in project(s):
src
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:rn2
(Results
1 - 25
of
36
) sorted by relevancy
1
2
/src/games/hack/
hack.mhitu.c
87
if (mdat->mlet == 'c' && !
rn2
(13)) {
134
(!uarm || objects[uarm->otyp].a_can < rnd(3) || !
rn2
(50));
141
if (!mtmp->cham && !mtmp->mcan && !
rn2
(13)) {
161
if (!u.ustuck && !
rn2
(10)) {
173
if (ctmp &&
rn2
(2)) {
186
if (!
rn2
(5)) {
188
if (ctmp || !
rn2
(20) || (flags.moonphase == NEW_MOON
197
if (
rn2
(6) || mtmp->mcan) {
232
if (ctmp && multi >= 0 && !
rn2
(3)) {
238
if (ctmp && multi >= 0 && !
rn2
(5))
[
all
...]
hack.wizard.c
96
if (mtmp->data->mlet == '1' && mtmp->msleep && !
rn2
(40))
140
if (
rn2
(2)) { /* hit - perhaps steal */
147
&& !
rn2
(20) && stealamulet(mtmp)) {
177
if (
rn2
(WIZSHOT))
185
if (mtmp->mcan ||
rn2
(2)) {
191
if (!
rn2
(3)) {
195
if (!
rn2
(3))
199
if (!
rn2
(6) && !Invis) {
201
nomul(
rn2
(3) + 3);
208
switch (
rn2
(Invis ? 5 : 6))
[
all
...]
hack.mkobj.c
99
let = mkobjstr[
rn2
(sizeof(mkobjstr) - 1)];
129
if (!
rn2
(11))
131
else if (!
rn2
(10)) {
146
otmp->quan =
rn2
(6) ? 1 : 2;
157
if (!
rn2
(8))
159
if (!
rn2
(10))
161
else if (!
rn2
(9)) {
175
if (!
rn2
(3)) {
182
otmp->otyp == RIN_HUNGER || !
rn2
(9))
rnd.c
82
rn2
(int x)
function in typeref:typename:int
hack.mklev.c
142
croom = &rooms[
rn2
(nroom)];
149
croom = &rooms[
rn2
(nroom - 1)];
168
if (!
rn2
(3))
174
while (!
rn2
(8 - (dlevel / 6)))
176
if (!goldseen && !
rn2
(3))
178
if (!
rn2
(3)) {
181
while (!
rn2
(5)) {
197
if (
rn2
(3)) {
205
if (!
rn2
(3))
215
if (dlevel > 1 && dlevel < 20 &&
rn2
(dlevel) < 3
[
all
...]
hack.eat.c
139
r =
rn2
(2 * TTSZ);
231
tmp = 10 +
rn2
(1 + 500 / ((int) (u.ulevel + u.ustr)));
244
if (!
rn2
(7) && otmp->otyp != FORTUNE_COOKIE) {
246
if (!
rn2
(4)) {
249
} else if (!
rn2
(4) && !Blind) {
253
} else if (!
rn2
(3)) {
287
if (
rn2
(2)) {
327
if (!
rn2
(17))
409
if (u.uhs <= WEAK ||
rn2
(20 - u.uhunger / 10) >= 19) {
467
if (let != 'a' && moves > otmp->age + 50 +
rn2
(100))
[
all
...]
hack.mkshop.c
148
for (j =
rn2
(100), i = 0; (j -= shprobs[i]) >= 0; i++)
211
if (
rn2
(100) < dlevel && !m_at(sx, sy) &&
215
(let &&
rn2
(10) < dlevel) ? let : ']';
232
for (sroom = &rooms[
rn2
(nroom)];; sroom++) {
241
if (has_upstairs(sroom) || (has_dnstairs(sroom) &&
rn2
(3)))
243
if (sroom->doorct == 1 || !
rn2
(5))
267
mkgold((long) (10 +
rn2
(i)), sx, sy);
274
if (!moct &&
rn2
(3)) {
280
if (!
rn2
(3))
290
int i =
rn2
(100), hd = rn2(dlevel)
[
all
...]
hack.dog.c
240
if (!
rn2
(udist) || !
rn2
((int) edog->apport))
241
if ((unsigned)
rn2
(10) < edog->apport) {
257
if ((unsigned)
rn2
(20) < edog->apport + 3)
258
if (
rn2
(udist) || !
rn2
((int) edog->apport)) {
293
!mtmp->minvent && edog->apport > (unsigned)
rn2
(8)) {
329
if (!IS_ROOM(levl[u.ux][u.uy].typ) || !
rn2
(4) ||
331
(mtmp->minvent &&
rn2
((int) edog->apport)))
376
if (hitmm(mtmp, mtmp2) == 1 &&
rn2
(4) &
[
all
...]
hack.trap.c
114
if (trap->tseen && !
rn2
(5) && ttype != PIT)
128
u.utrap = 4 +
rn2
(4);
162
while (!
rn2
(4) && newlevel < 29)
175
if (!
rn2
(6))
219
if (!
rn2
(40))
227
if (
rn2
(4))
354
x =
rn2
(2) ? croom->lx : croom->hx;
355
y =
rn2
(2) ? croom->ly : croom->hy;
385
nuy =
rn2
(ROWNO);
489
newlevel = 5 +
rn2
(20); /* 5 - 24 *
[
all
...]
hack.fight.c
128
magr->mhpmax += 1 +
rn2
(pd->mlevel + 1);
151
if (letter(pd->mlet) &&
rn2
(3)) {
185
if (
rn2
(4))
245
&& !
rn2
(3)) {
357
!mtmp->mconf && mtmp->mcansee && !
rn2
(7) &&
409
if (!
rn2
(10))
430
if (!
rn2
(25) && mtmp->mhp < mtmp->mhpmax / 2) {
432
if (!
rn2
(3))
444
if (
rn2
(2)) {
447
if (!
rn2
(30)
[
all
...]
hack.bones.c
87
if (!
rn2
(1 + dlevel / 2))
102
if (
rn2
(5))
154
if (
rn2
(3))
hack.mon.c
238
if (mtmp->cham && !
rn2
(6))
239
(void) newcham(mtmp, &mons[dlevel + 14 +
rn2
(CMNUM - 14 - dlevel)]);
257
(!Stealth || (mdat->mlet == 'e' &&
rn2
(10))) &&
258
(!strchr("NL", mdat->mlet) || !
rn2
(50)) &&
260
|| (!
rn2
(7) && !mtmp->mimic)))
269
if (mtmp->mconf && !
rn2
(50))
273
if (mtmp->mflee && strchr("tNL", mdat->mlet) && !
rn2
(40)) {
282
&& mtmp->mhp == mtmp->mhpmax && !
rn2
(25))
290
mtmp->mfleetim = (
rn2
(7) ? rnd(10) : rnd(100));
295
(mtmp->minvis && !
rn2
(3)) |
[
all
...]
hack.mkmaze.c
135
(void) mkobj_at(
rn2
(2) ? GEM_SYM : 0, mm.x, mm.y);
172
dir = dirs[
rn2
(q)];
214
mm.x = 3 + 2 *
rn2
(COLNO / 2 - 2);
215
mm.y = 3 + 2 *
rn2
(ROWNO / 2 - 2);
hack.wield.c
153
if (amount > 0 && uwep->spe > 5 &&
rn2
(3)) {
161
if (!
rn2
(6))
hack.makemon.c
104
tmp =
rn2
(ct * dlevel / 24 + 7);
106
tmp =
rn2
(ct * dlevel / 24 + 12);
155
(void) newcham(mtmp, &mons[dlevel + 14 +
rn2
(CMNUM - 14 - dlevel)]);
160
|| (in_mklev && strchr("&w;", ptr->mlet) &&
rn2
(5))
224
return (foo[
rn2
(tfoo - foo)]);
250
ty =
rn2
(ROWNO);
hack.potion.c
84
if (!strcmp(objects[otmp->otyp].oc_descr, "smoky") && !
rn2
(13)) {
104
if (!
rn2
(4)) {
302
const char *botlnam = bottlenames[
rn2
(SIZE(bottlenames))];
315
if (
rn2
(5) && mon->mhp > 1)
320
if (!isyou && !
rn2
(3))
354
mon->mblinded |= 64 +
rn2
(64);
362
if (uclose &&
rn2
(5))
hack.u_init.c
229
i =
rn2
(NR_OF_ROLES);
279
if (!
rn2
(25))
285
if (!
rn2
(5))
286
Wizard[i].trquan +=
rn2
(3) - 1;
298
if (!
rn2
(10))
318
if (!
rn2
(20)) {
319
int dr =
rn2
(7) - 2; /* biased variation */
hack.zap.c
121
if (newcham(mtmp, &mons[
rn2
(CMNUM)]))
209
if (obj->spe < 0 || (obj->spe == 0 &&
rn2
(121))) {
241
if (!
rn2
(23))
242
cnt +=
rn2
(7) + 1;
251
if (u.uluck +
rn2
(5) < 0) {
302
digdepth = 8 +
rn2
(18);
469
if (
rn2
(20) >= 10 + u.ulevel) { /* we hit ourselves */
531
if (!bounce ||
rn2
(2))
593
if (!
rn2
(3))
618
if (!dx || !dy || !
rn2
(20))
[
all
...]
hack.search.c
132
if (
rn2
(7))
139
if (
rn2
(7))
159
!trap->tseen && !
rn2
(8)) {
hack.rumors.c
133
rn =
rn2
(n_rumors - n_used_rumors);
hack.do.c
270
if (uwep != uball &&
rn2
(3)) {
287
u.uy =
rn2
(ROWNO);
291
if (uwep != uball && !up /* %% */ &&
rn2
(5)) {
433
if (obj->otyp < BOOMERANG &&
rn2
(3)) {
451
} else if (obj->olet == POTION_SYM && u.ulevel >
rn2
(15)) {
505
rn2
(3) ? LEFT_SIDE : RIGHT_SIDE;
509
set_wounded_legs(side, 500 +
rn2
(1000));
hack.read.c
116
if (otmp->spe > 3 &&
rn2
(otmp->spe)) {
217
if (!
rn2
(73))
412
!ggetobj("identify", identify,
rn2
(5) ? 1 :
rn2
(5))
426
if (confused &&
rn2
(7))
460
if (!confused ||
rn2
(7))
hack.do_name.c
286
gn = ghostnames[
rn2
(SIZE(ghostnames))];
287
if (!
rn2
(2))
289
strlcpy((char *) mtmp->mextra, !
rn2
(5) ? plname : gn, mtmp->mxlth);
hack.do_wear.c
425
if (uarmh && (!otmph || !
rn2
(4)))
427
if (uarmg && (!otmph || !
rn2
(4)))
429
if (uarms && (!otmph || !
rn2
(4)))
hack.steal.c
90
if (gold && (!u.ugold || gold->amount > u.ugold || !
rn2
(5))) {
97
if (!u.ugold || !
rn2
(5)) {
161
tmp =
rn2
(tmp);
Completed in 40 milliseconds
1
2
Indexes created Wed Oct 15 16:09:53 GMT 2025