Home | History | Annotate | Download | only in larn

Lines Matching defs:dam

33  * direct(spnum,dam,str,arg)Routine to direct spell damage 1 square in 1 dir
34 * int spnum,dam,arg;
37 * godirect(spnum,dam,str,delay,cshow) Function to perform missile attacks
38 * int spnum,dam,delay;
47 * omnidirect(sp,dam,str) Routine to damage all monsters 1 square from player
48 * int sp,dam;
718 * direct(spnum,dam,str,arg) Routine to direct spell damage 1 square in 1 dir
719 * int spnum,dam,arg;
723 * Enter with the spell number in spnum, the damage to be done in dam,
728 direct(int spnum, int dam, const char *str, int arg)
757 losehp(dam);
772 hitm(x, y, dam);
776 * godirect(spnum,dam,str,delay,cshow) Function to perform missile attacks
777 * int spnum,dam,delay;
788 godirect(int spnum, int dam, const char *str, int delay, int cshow_i)
809 while (dam > 0) {
813 dam = 0;
821 losehp(dam);
840 dam -= hitm(x, y, dam);
851 if (dam >= 50 + c[HARDGAME]) /* enough damage? */
859 god2: dam = 0;
866 if (dam >= 40) {
877 if (dam > 44) {
889 if (dam > 39) {
902 dam -= 3 + (c[HARDGAME] >> 1);
963 * omnidirect(sp,dam,str) Routine to damage all monsters 1 square from player
964 * int sp,dam;
968 * Enter with the spell number in sp, the damage done to wach square in dam,
973 omnidirect(int spnum, int dam, const char *str)
987 hitm(x, y, dam);
1228 int dam, tmp, mster, bias;
1262 dam = 1;
1264 dam = monster[mster].damage;
1265 dam += rnd((int) ((dam < 1) ? 1 : dam)) + monster[mster].level;
1269 if (((dam + bias + 8) > c[AC]) || (rnd((int) ((c[AC] > 0) ? c[AC] : 1)) == 1)) {
1278 if (((dam + bias) > c[AC]) || (rnd((int) ((c[AC] > 0) ? c[AC] : 1)) == 1)) {
1281 if ((dam -= c[AC]) < 0)
1282 dam = 0;
1283 if (dam > 0) {
1284 losehp(dam);