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:
parent
7defa55394
commit
1a4fc50d57
1 changed files with 3 additions and 2 deletions
|
@ -823,14 +823,15 @@ pinflak_planedamage(struct plnstr *pp, struct plchrstr *pcp, natid from,
|
||||||
if (eff < PLANE_MINEFF) {
|
if (eff < PLANE_MINEFF) {
|
||||||
sprintf(dmess, " -- shot down");
|
sprintf(dmess, " -- shot down");
|
||||||
disp = 1;
|
disp = 1;
|
||||||
} else if (chance((100 - eff) / 100.0)) {
|
} else if (eff < 80 && chance((80 - eff) / 100.0)) {
|
||||||
sprintf(dmess, " -- aborted with %d%% damage", 100 - eff);
|
sprintf(dmess, " -- aborted @%d%%", eff);
|
||||||
disp = 2;
|
disp = 2;
|
||||||
}
|
}
|
||||||
PR(plane_owner, " Flak! %s %s takes %d%s.\n",
|
PR(plane_owner, " Flak! %s %s takes %d%s.\n",
|
||||||
cname(pp->pln_own), prplane(pp), dam, dmess);
|
cname(pp->pln_own), prplane(pp), dam, dmess);
|
||||||
|
|
||||||
pp->pln_effic = eff;
|
pp->pln_effic = eff;
|
||||||
|
pp->pln_mobil -= MIN(32 + pp->pln_mobil, dam / 2);
|
||||||
if (disp == 1) {
|
if (disp == 1) {
|
||||||
if (from != 0)
|
if (from != 0)
|
||||||
nreport(from, N_DOWN_PLANE, pp->pln_own, 1);
|
nreport(from, N_DOWN_PLANE, pp->pln_own, 1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue