Symbol: ROLL
games/phantasia/fight.c
1054
(int) ROLL(0.0, (double) Curmonster.m_treasuretype);
games/phantasia/fight.c
1075
which = (int) ROLL(0.0, 100.0);
games/phantasia/fight.c
1150
whichtreasure = (int) ROLL(1.0, 3.0); /* pick a treasure */
games/phantasia/fight.c
1163
gems = ROLL(1.0, (treasuretype - 7.0)
games/phantasia/fight.c
1169
gold = ROLL(treasuretype * 10.0, treasuretype
games/phantasia/fight.c
1213
Player.p_mana += ROLL(Circle * 4.0, Circle * 30.0);
games/phantasia/fight.c
1219
ROLL(0.0, 2000.0 + Circle * 400.0);
games/phantasia/fight.c
1254
dtemp = ROLL(7.0, 30.0 + Circle / 10.0);
games/phantasia/fight.c
1289
switch ((int) ROLL(1, 6)) {
games/phantasia/fight.c
1317
Player.p_brains += ROLL(2.0, Circle);
games/phantasia/fight.c
1318
Player.p_magiclvl += ROLL(1.0, Circle / 2.0);
games/phantasia/fight.c
1339
dtemp = ROLL(Circle / 4.0 + 5.0, Circle / 2.0 + 9.0);
games/phantasia/fight.c
1348
dtemp = ROLL(7.5 + Circle * 3.0, Circle * 2.0 + 160.0);
games/phantasia/fight.c
1381
dtemp = ROLL(2.0 + Circle / 4.0, Circle / 1.2 + 10.0);
games/phantasia/fight.c
1407
dtemp = ROLL(5.0 + Circle / 3.0, Circle / 1.5 + 20.0);
games/phantasia/fight.c
1440
dtemp = ROLL(10.0 + Circle / 1.2, Circle * 3.0 + 30.0);
games/phantasia/fight.c
1492
temp = 15 + Statptr->c_ringduration + (int) ROLL(0,5);
games/phantasia/fight.c
1534
dtemp = ROLL(1.0, Circle / 5.0 + 5.0);
games/phantasia/fight.c
1631
first = (int) ROLL(0, 5);
games/phantasia/fight.c
1632
second = (int) ROLL(0, 5);
games/phantasia/fight.c
221
return ((int) ROLL(0.0, 100.0));
games/phantasia/fight.c
225
return ((int) ROLL(0.0, 15.0));
games/phantasia/fight.c
229
return ((int) ROLL(14.0, 86.0));
games/phantasia/fight.c
233
return ((int) (ROLL(0.0, 50.0) + ROLL(14.0, 37.0)));
games/phantasia/fight.c
237
return ((int) (ROLL(0.0, 50.0) + ROLL(14.0, 26.0)));
games/phantasia/fight.c
241
return ((int) ROLL(14.0, 50.0));
games/phantasia/fight.c
245
return ((int) ROLL(14.0, 25.0));
games/phantasia/fight.c
310
inflict = ROLL(Player.p_might / 2.0 + 5.0, 1.3 * Player.p_might)
games/phantasia/fight.c
322
inflict = ROLL(Player.p_might / 3.0 + 3.0, 1.1 * Player.p_might)
games/phantasia/fight.c
463
Whichmonster = (int) ROLL(70.0, 30.0);
games/phantasia/fight.c
468
inflict = ROLL(10.0, Curmonster.m_strength);
games/phantasia/fight.c
499
inflict = ROLL(1.0, (Circle - 1.0) / 2.0);
games/phantasia/fight.c
538
inflict = ROLL(0, 7.5 * Circle);
games/phantasia/fight.c
622
inflict = ROLL(15.0, Circle * 10.0);
games/phantasia/fight.c
890
inflict = dtemp * ROLL(15.0, sqrt(Player.p_magiclvl / 3.0 + 1.0));
games/phantasia/fight.c
915
Whichmonster = (int) ROLL(0.0, 100.0);
games/phantasia/interplayer.c
385
dtemp = ROLL(2.0, Player.p_might);
games/phantasia/interplayer.c
670
Enrgyvoid.ev_x = ROLL(-1.0e6, 2.0e6);
games/phantasia/interplayer.c
671
Enrgyvoid.ev_y = ROLL(-1.0e6, 2.0e6);
games/phantasia/interplayer.c
998
temp1 += ROLL(-temp1 / 10.0, temp1 / 5.0); /* add some error */
games/phantasia/io.c
213
return ((int) ROLL(0.0, 5.0) + '0');
games/phantasia/main.c
1099
ROLL(statptr->c_quickness.base, statptr->c_quickness.interval);
games/phantasia/main.c
1101
ROLL(statptr->c_strength.base, statptr->c_strength.interval);
games/phantasia/main.c
1103
ROLL(statptr->c_mana.base, statptr->c_mana.interval);
games/phantasia/main.c
1106
ROLL(statptr->c_energy.base, statptr->c_energy.interval);
games/phantasia/main.c
1108
ROLL(statptr->c_brains.base, statptr->c_brains.interval);
games/phantasia/main.c
1110
ROLL(statptr->c_magiclvl.base, statptr->c_magiclvl.interval);
games/phantasia/main.c
1116
Player.p_experience = ROLL(600.0, 200.0);
games/phantasia/main.c
965
switch ((int) ROLL(0.0, 100.0)) {
games/phantasia/main.c
994
temp = ROLL(10.0, 75.0);
games/phantasia/misc.c
1079
xnew = Player.p_x + ROLL(1.0, 5.0);
games/phantasia/misc.c
1080
ynew = Player.p_y - ROLL(1.0, 5.0);
games/phantasia/misc.c
1098
xnew = Player.p_x + SGN(Player.p_x) * ROLL(50 * Circle, 250 * Circle);
games/phantasia/misc.c
1099
ynew = Player.p_y + SGN(Player.p_y) * ROLL(50 * Circle, 250 * Circle);
games/phantasia/misc.c
1233
Player.p_ring.ring_duration = (short) ROLL(10.0, 25.0);
games/phantasia/misc.c
1312
playerp->p_gold = ROLL(50.0, 75.0) + 0.1; /* give some gold */
games/phantasia/misc.c
1314
playerp->p_x = ROLL(-125.0, 251.0);
games/phantasia/misc.c
1315
playerp->p_y = ROLL(-125.0, 251.0); /* give random x, y */
games/phantasia/misc.c
349
Player.p_brains += floor(numitems) * ROLL(20, 8);
games/phantasia/misc.c
456
ROLL(Circle * 20.0, 40.0), (drandom() < 0.5) ? "him" : "her");
games/phantasia/misc.c
60
statptr = &Stattable[(int) ROLL(C_MAGIC, C_HALFLING - C_MAGIC + 1)];
games/phantasia/misc.c
930
addstr(deathmesg[(int) ROLL(0.0, (double) sizeof(deathmesg) / sizeof(char *))]);
games/phantasia/setup.c
133
Enrgyvoid.ev_x = ROLL(-1.0e6, 2.0e6);
games/phantasia/setup.c
134
Enrgyvoid.ev_y = ROLL(-1.0e6, 2.0e6);