Symbol: ROLL
games/phantasia/fight.c
1007
whichtreasure = (int)ROLL(1.0, 3.0); /* pick a treasure */
games/phantasia/fight.c
1018
gems = ROLL(1.0, (treasuretype - 7.0)
games/phantasia/fight.c
1023
gold = ROLL(treasuretype * 10.0, treasuretype
games/phantasia/fight.c
1060
Player.p_mana += ROLL(Circle * 4.0, Circle * 30.0);
games/phantasia/fight.c
1066
ROLL(0.0, 2000.0 + Circle * 400.0);
games/phantasia/fight.c
1101
dtemp = ROLL(7.0, 30.0 + Circle / 10.0);
games/phantasia/fight.c
1135
switch ((int)ROLL(1, 6)) {
games/phantasia/fight.c
1166
Player.p_brains += ROLL(2.0, Circle);
games/phantasia/fight.c
1167
Player.p_magiclvl += ROLL(1.0, Circle / 2.0);
games/phantasia/fight.c
1188
dtemp = ROLL(Circle / 4.0 + 5.0, Circle / 2.0 + 9.0);
games/phantasia/fight.c
1197
dtemp = ROLL(7.5 + Circle * 3.0, Circle * 2.0 + 160.0);
games/phantasia/fight.c
1230
dtemp = ROLL(2.0 + Circle / 4.0, Circle / 1.2 + 10.0);
games/phantasia/fight.c
1256
dtemp = ROLL(5.0 + Circle / 3.0, Circle / 1.5 + 20.0);
games/phantasia/fight.c
1289
dtemp = ROLL(10.0 + Circle / 1.2, Circle * 3.0 + 30.0);
games/phantasia/fight.c
1331
temp = 15 + Statptr->c_ringduration + (int)ROLL(0, 5);
games/phantasia/fight.c
1371
dtemp = ROLL(1.0, Circle / 5.0 + 5.0);
games/phantasia/fight.c
1442
first = (int)ROLL(0, 5);
games/phantasia/fight.c
1443
second = (int)ROLL(0, 5);
games/phantasia/fight.c
195
return ((int)ROLL(0.0, 100.0));
games/phantasia/fight.c
199
return ((int)ROLL(0.0, 15.0));
games/phantasia/fight.c
203
return ((int)ROLL(14.0, 86.0));
games/phantasia/fight.c
207
return ((int)(ROLL(0.0, 50.0) + ROLL(14.0, 37.0)));
games/phantasia/fight.c
211
return ((int)(ROLL(0.0, 50.0) + ROLL(14.0, 26.0)));
games/phantasia/fight.c
215
return ((int)ROLL(14.0, 50.0));
games/phantasia/fight.c
219
return ((int)ROLL(14.0, 25.0));
games/phantasia/fight.c
270
inflict = ROLL(Player.p_might / 2.0 + 5.0, 1.3 * Player.p_might) +
games/phantasia/fight.c
282
inflict = ROLL(Player.p_might / 3.0 + 3.0, 1.1 * Player.p_might) +
games/phantasia/fight.c
403
Whichmonster = (int)ROLL(70.0, 30.0);
games/phantasia/fight.c
409
inflict = ROLL(10.0, Curmonster.m_strength);
games/phantasia/fight.c
439
inflict = ROLL(1.0, (Circle - 1.0) / 2.0);
games/phantasia/fight.c
474
inflict = ROLL(0, 7.5 * Circle);
games/phantasia/fight.c
556
inflict = ROLL(15.0, Circle * 10.0);
games/phantasia/fight.c
776
inflict = dtemp * ROLL(15.0, sqrt(Player.p_magiclvl / 3.0 + 1.0));
games/phantasia/fight.c
801
Whichmonster = (int)ROLL(0.0, 100.0);
games/phantasia/fight.c
929
(int)ROLL(0.0, (double)Curmonster.m_treasuretype);
games/phantasia/fight.c
946
which = (int)ROLL(0.0, 100.0);
games/phantasia/interplayer.c
332
dtemp = ROLL(2.0, Player.p_might);
games/phantasia/interplayer.c
586
Enrgyvoid.ev_x = ROLL(-1.0e6, 2.0e6);
games/phantasia/interplayer.c
587
Enrgyvoid.ev_y = ROLL(-1.0e6, 2.0e6);
games/phantasia/interplayer.c
868
temp1 += ROLL(-temp1 / 10.0, temp1 / 5.0); /* add some error */
games/phantasia/io.c
153
return ((int)ROLL(0.0, 5.0) + '0');
games/phantasia/main.c
837
switch ((int)ROLL(0.0, 100.0)) {
games/phantasia/main.c
865
temp = ROLL(10.0, 75.0);
games/phantasia/main.c
960
ROLL(statptr->c_quickness.base, statptr->c_quickness.interval);
games/phantasia/main.c
962
ROLL(statptr->c_strength.base, statptr->c_strength.interval);
games/phantasia/main.c
964
ROLL(statptr->c_mana.base, statptr->c_mana.interval);
games/phantasia/main.c
967
ROLL(statptr->c_energy.base, statptr->c_energy.interval);
games/phantasia/main.c
969
ROLL(statptr->c_brains.base, statptr->c_brains.interval);
games/phantasia/main.c
971
ROLL(statptr->c_magiclvl.base, statptr->c_magiclvl.interval);
games/phantasia/main.c
977
Player.p_experience = ROLL(600.0, 200.0);
games/phantasia/misc.c
1014
Player.p_ring.ring_duration = (short)ROLL(10.0, 25.0);
games/phantasia/misc.c
1079
playerp->p_gold = ROLL(50.0, 75.0) + 0.1; /* give some gold */
games/phantasia/misc.c
1081
playerp->p_x = ROLL(-125.0, 251.0);
games/phantasia/misc.c
1082
playerp->p_y = ROLL(-125.0, 251.0); /* give random x, y */
games/phantasia/misc.c
299
Player.p_brains += floor(numitems) * ROLL(20, 8);
games/phantasia/misc.c
38
statptr = &Stattable[(int)ROLL(C_MAGIC, C_HALFLING - C_MAGIC + 1)];
games/phantasia/misc.c
407
ROLL(Circle * 20.0, 40.0), (drandom() < 0.5) ? "him" : "her");
games/phantasia/misc.c
783
addstr(deathmesg[(int)ROLL(0.0, (double)sizeof(deathmesg) / sizeof(char *))]);
games/phantasia/misc.c
887
xnew = Player.p_x + ROLL(1.0, 5.0);
games/phantasia/misc.c
888
ynew = Player.p_y - ROLL(1.0, 5.0);
games/phantasia/misc.c
905
xnew = Player.p_x + SGN(Player.p_x) * ROLL(50 * Circle, 250 * Circle);
games/phantasia/misc.c
906
ynew = Player.p_y + SGN(Player.p_y) * ROLL(50 * Circle, 250 * Circle);
games/phantasia/setup.c
108
Enrgyvoid.ev_x = ROLL(-1.0e6, 2.0e6);
games/phantasia/setup.c
109
Enrgyvoid.ev_y = ROLL(-1.0e6, 2.0e6);