Lines Matching defs:hit
58 ** Under certain conditions you can get a critical hit. This
59 ** sort of hit damages devices. The probability that a given
69 ** it) depends on the amount of the hit and the "damfac[]"
80 int hit, i, l;
118 /* complete the hit */
121 hit = Etc.klingon[i].power * pow(dustfac, tothe) * Param.hitfac;
126 /* see how much of hit shields will absorb */
131 shldabsb = propor * chgfac * hit;
136 /* actually do the hit */
137 printf("\aHIT: %d units", hit);
141 cas = (shldabsb * 100) / hit;
142 hit -= shldabsb;
144 printf(", shields absorb %d%%, effective hit %d\n",
145 cas, hit);
148 tothit += hit;
149 if (hit > maxhit)
150 maxhit = hit;
151 Ship.energy -= hit;
153 if (hit >= (15 - Game.skill) * (25 - ranf(12))) {
154 printf("\aCRITICAL HIT!!!\a\n");
161 extradm = (hit * Param.damfac[l]) /