Lines Matching defs:hit
104 int hit;
167 hit = getintpar("units");
168 if (hit < 0)
170 if (hit == 0)
172 extra += hit;
179 b->units = hit;
180 hit = getintpar("course");
181 if (hit < 0 || hit > 360)
183 b->angle = hit * 0.0174532925;
201 hit = getintpar("Units to fire");
202 if (hit <= 0)
204 if (hit > Ship.energy) {
210 Ship.energy -= hit;
211 extra = hit;
239 hit = b->units - hitreqd[i];
240 if (hit > 0) {
241 extra += hit;
242 b->units -= hit;
250 hit = hitreqd[i] - b->units;
251 if (hit <= 0)
253 if (hit >= extra) {
259 extra -= hit;
294 ** The formula for hit is as follows:
299 ** * hit
311 ** up to "* hit" between zero and one,
313 ** hit is the number of units in the bank, and
314 ** zap is the amount of the actual hit.
336 hit = anglefactor * distfactor + 0.5;
337 k->power -= hit;
338 printf("%d unit hit on Klingon", hit);
342 b->units -= hit;