Symbol: ROLL
games/phantasia/fight.c
1001
Player.p_mana += ROLL(Circle * 4.0, Circle * 30.0);
games/phantasia/fight.c
1007
ROLL(0.0, 2000.0 + Circle * 400.0);
games/phantasia/fight.c
1042
dtemp = ROLL(7.0, 30.0 + Circle / 10.0);
games/phantasia/fight.c
1076
switch ((int) ROLL(1, 6)) {
games/phantasia/fight.c
1107
Player.p_brains += ROLL(2.0, Circle);
games/phantasia/fight.c
1108
Player.p_magiclvl += ROLL(1.0, Circle / 2.0);
games/phantasia/fight.c
1129
dtemp = ROLL(Circle / 4.0 + 5.0, Circle / 2.0 + 9.0);
games/phantasia/fight.c
1138
dtemp = ROLL(7.5 + Circle * 3.0, Circle * 2.0 + 160.0);
games/phantasia/fight.c
1171
dtemp = ROLL(2.0 + Circle / 4.0, Circle / 1.2 + 10.0);
games/phantasia/fight.c
1197
dtemp = ROLL(5.0 + Circle / 3.0, Circle / 1.5 + 20.0);
games/phantasia/fight.c
1230
dtemp = ROLL(10.0 + Circle / 1.2, Circle * 3.0 + 30.0);
games/phantasia/fight.c
1301
temp = 15 + Statptr->c_ringduration + (int) ROLL(0, 5);
games/phantasia/fight.c
1341
dtemp = ROLL(1.0, Circle / 5.0 + 5.0);
games/phantasia/fight.c
1391
first = (int) ROLL(0, 5);
games/phantasia/fight.c
1392
second = (int) ROLL(0, 5);
games/phantasia/fight.c
180
return ((int) ROLL(0.0, 100.0));
games/phantasia/fight.c
184
return ((int) ROLL(0.0, 15.0));
games/phantasia/fight.c
189
return ((int) ROLL(14.0, 86.0));
games/phantasia/fight.c
195
return ((int) (ROLL(0.0, 50.0) + ROLL(14.0, 37.0)));
games/phantasia/fight.c
201
return ((int) (ROLL(0.0, 50.0) + ROLL(14.0, 26.0)));
games/phantasia/fight.c
207
return ((int) ROLL(14.0, 50.0));
games/phantasia/fight.c
212
return ((int) ROLL(14.0, 25.0));
games/phantasia/fight.c
252
inflict = ROLL(Player.p_might / 2.0 + 5.0, 1.3 * Player.p_might)
games/phantasia/fight.c
264
inflict = ROLL(Player.p_might / 3.0 + 3.0, 1.1 * Player.p_might)
games/phantasia/fight.c
377
Whichmonster = (int) ROLL(70.0, 30.0);
games/phantasia/fight.c
383
inflict = ROLL(10.0, Curmonster.m_strength);
games/phantasia/fight.c
414
inflict = ROLL(1.0, (Circle - 1.0) / 2.0);
games/phantasia/fight.c
453
inflict = ROLL(0, 7.5 * Circle);
games/phantasia/fight.c
537
inflict = ROLL(15.0, Circle * 10.0);
games/phantasia/fight.c
731
inflict = dtemp * ROLL(15.0, sqrt(Player.p_magiclvl / 3.0 + 1.0));
games/phantasia/fight.c
758
Whichmonster = (int) ROLL(0.0, 100.0);
games/phantasia/fight.c
876
(int) ROLL(0.0, (double) Curmonster.m_treasuretype);
games/phantasia/fight.c
896
which = (int) ROLL(0.0, 100.0);
games/phantasia/fight.c
942
whichtreasure = (int) ROLL(1.0, 3.0); /* pick a treasure */
games/phantasia/fight.c
955
gems = ROLL(1.0, (treasuretype - 7.0)
games/phantasia/fight.c
961
gold = ROLL(treasuretype * 10.0, treasuretype
games/phantasia/interplayer.c
310
dtemp = ROLL(2.0, Player.p_might);
games/phantasia/interplayer.c
543
Enrgyvoid.ev_x = ROLL(-1.0e6, 2.0e6);
games/phantasia/interplayer.c
544
Enrgyvoid.ev_y = ROLL(-1.0e6, 2.0e6);
games/phantasia/interplayer.c
784
temp1 += ROLL(-temp1 / 10.0, temp1 / 5.0); /* add some error */
games/phantasia/io.c
110
return ((int) ROLL(0.0, 5.0) + '0');
games/phantasia/main.c
346
Enrgyvoid.ev_x = ROLL(-1.0e6, 2.0e6);
games/phantasia/main.c
347
Enrgyvoid.ev_y = ROLL(-1.0e6, 2.0e6);
games/phantasia/main.c
832
switch ((int) ROLL(0.0, 100.0)) {
games/phantasia/main.c
862
temp = ROLL(10.0, 75.0);
games/phantasia/main.c
944
ROLL(statptr->c_quickness.base, statptr->c_quickness.interval);
games/phantasia/main.c
946
ROLL(statptr->c_strength.base, statptr->c_strength.interval);
games/phantasia/main.c
948
ROLL(statptr->c_mana.base, statptr->c_mana.interval);
games/phantasia/main.c
951
ROLL(statptr->c_energy.base, statptr->c_energy.interval);
games/phantasia/main.c
953
ROLL(statptr->c_brains.base, statptr->c_brains.interval);
games/phantasia/main.c
955
ROLL(statptr->c_magiclvl.base, statptr->c_magiclvl.interval);
games/phantasia/main.c
961
Player.p_experience = ROLL(600.0, 200.0);
games/phantasia/misc.c
288
Player.p_brains += floor(numitems) * ROLL(20, 8);
games/phantasia/misc.c
39
statptr = &Stattable[(int) ROLL(C_MAGIC, C_HALFLING - C_MAGIC + 1)];
games/phantasia/misc.c
400
ROLL(Circle * 20.0, 40.0), (drandom() < 0.5) ? "him" : "her");
games/phantasia/misc.c
678
addstr(deathmesg[(int) ROLL(0.0, (double) sizeof(deathmesg) / sizeof(char *))]);
games/phantasia/misc.c
728
xnew = Player.p_x + ROLL(1.0, 5.0);
games/phantasia/misc.c
729
ynew = Player.p_y - ROLL(1.0, 5.0);
games/phantasia/misc.c
748
xnew = Player.p_x + SGN(Player.p_x) * ROLL(50 * Circle, 250 * Circle);
games/phantasia/misc.c
749
ynew = Player.p_y + SGN(Player.p_y) * ROLL(50 * Circle, 250 * Circle);
games/phantasia/misc.c
837
Player.p_ring.ring_duration = (short) ROLL(10.0, 25.0);
games/phantasia/misc.c
892
playerp->p_gold = ROLL(50.0, 75.0) + 0.1; /* give some gold */
games/phantasia/misc.c
894
playerp->p_x = ROLL(-125.0, 251.0);
games/phantasia/misc.c
895
playerp->p_y = ROLL(-125.0, 251.0); /* give random x, y */