/src/games/phantasia/ |
gamesupport.c | 32 double dtemp; /* temporary variable */ local in function:changestats 317 dtemp = infloat(); 318 if (dtemp != 0.0) 319 playerp->p_age = (long) dtemp; 324 dtemp = infloat(); 325 if (dtemp != 0.0) 326 playerp->p_degenerated = (int) dtemp; 425 dtemp = infloat(); 426 if (dtemp != 0.0) 427 *dptr = dtemp; [all...] |
interplayer.c | 67 double dtemp; /* for temporary calculations */ local in function:battleplayer 96 dtemp = (Player.p_level - Other.p_level) / MAX(Player.p_level, Other.p_level); 97 if (dtemp < -0.5) 214 dtemp = Other.p_1scratch - oldhits; 215 mvprintw(Lines++, 0, "%s hit you %.0f times!", Enemyname, dtemp); 216 Shield -= dtemp; 295 double dtemp; /* for temporary calculations */ local in function:myturn 310 dtemp = ROLL(2.0, Player.p_might); 312 mvprintw(Lines++, 0, "You hit %s %.0f times!", Enemyname, dtemp); 314 Player.p_1scratch += dtemp; [all...] |
fight.c | 648 double dtemp; /* for dtemporary calculations */ local in function:throwspell 720 dtemp = floor(infloat()); 722 while (dtemp < 0.0 || dtemp > Player.p_mana); 724 Player.p_mana -= dtemp; 731 inflict = dtemp * ROLL(15.0, sqrt(Player.p_magiclvl / 3.0 + 1.0)); 940 double dtemp; /* for temporary calculations */ local in function:awardtreasure 1042 dtemp = ROLL(7.0, 30.0 + Circle / 10.0); 1043 printw("You've found a +%.0f shield!\n", dtemp); 1044 if (dtemp >= Player.p_shield [all...] |
main.c | 93 double dtemp; /* for temporary calculations */ local in function:main 235 && (dtemp = fabs(Player.p_x)) == fabs(Player.p_y) 240 dtemp = sqrt(dtemp / 100.0); 241 if (floor(dtemp) == dtemp)
|
misc.c | 781 double dtemp; /* for temporary calculations */ local in function:adjuststats 795 dtemp = ((Player.p_gold + Player.p_gems / 2.0) - 1000.0) / Statptr->c_goldtote 797 dtemp = MAX(0.0, dtemp);/* gold slows player down */ 798 Player.p_speed = Player.p_quickness + Player.p_quksilver - dtemp; 804 dtemp = 1.0 - Player.p_poison * Statptr->c_weakness / 800.0; 805 dtemp = MAX(0.1, dtemp); 807 dtemp = 1.0; 808 Player.p_might = dtemp * Player.p_strength + Player.p_sword 1025 double dtemp; \/* for temporary calculations *\/ local in function:collecttaxes [all...] |