(guerrilla): Security units' raid was broken in 4.0.0: the number of

che killed was 100 times too small, thus zero for all practical cases.
4.2.7 attempted to fix it, but left it broken for efficiency < 100.
It also increased deadliness of 100% units by a factor of 2.5.
Restore pre-4.0.0 behavior.
This commit is contained in:
Markus Armbruster 2006-04-26 16:43:25 +00:00
parent 964176b15f
commit 6de081a384

View file

@ -184,11 +184,10 @@ guerrilla(struct sctstr *sp)
lcp = &lchr[(int)lp->lnd_type]; lcp = &lchr[(int)lp->lnd_type];
mil += lnd_getmil(lp); mil += lnd_getmil(lp);
r = (((float)(lp->lnd_effic / 100) * (float)(lnd_getmil(lp))) / r = (lnd_getmil(lp) * lp->lnd_effic) / 500;
2); if (r < 1)
if (r < 2) r = 1;
r = 2; che_kill = roll(r);
che_kill = (roll(r) - 1);
if (che_kill > che) if (che_kill > che)
che_kill = che; che_kill = che;
if (che_kill) { if (che_kill) {