Make flak vs. pinpoint bombing consistent with ordinary flak

Reduce abort chance from 100-eff to 80-eff.  Ordinary flak's abort
chance was reduced from 100-eff (if eff<80) to 80-eff in commit
0252d4a7, v4.3.6.

Report plane efficiency when it aborts, not 100 - efficiency.

Charge mobility proportional to damage, down to -32.
This commit is contained in:
Markus Armbruster 2010-06-17 07:38:47 +02:00
parent 7defa55394
commit 1a4fc50d57

View file

@ -823,14 +823,15 @@ pinflak_planedamage(struct plnstr *pp, struct plchrstr *pcp, natid from,
if (eff < PLANE_MINEFF) {
sprintf(dmess, " -- shot down");
disp = 1;
} else if (chance((100 - eff) / 100.0)) {
sprintf(dmess, " -- aborted with %d%% damage", 100 - eff);
} else if (eff < 80 && chance((80 - eff) / 100.0)) {
sprintf(dmess, " -- aborted @%d%%", eff);
disp = 2;
}
PR(plane_owner, " Flak! %s %s takes %d%s.\n",
cname(pp->pln_own), prplane(pp), dam, dmess);
pp->pln_effic = eff;
pp->pln_mobil -= MIN(32 + pp->pln_mobil, dam / 2);
if (disp == 1) {
if (from != 0)
nreport(from, N_DOWN_PLANE, pp->pln_own, 1);