(guerrilla): Round security unit raid value below one to zero instead
of one. Before, an empty, inefficient unit could be used to kill one rebel per update.
This commit is contained in:
parent
6de081a384
commit
b6e40305df
1 changed files with 1 additions and 3 deletions
|
@ -185,9 +185,7 @@ 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 = (lnd_getmil(lp) * lp->lnd_effic) / 500;
|
r = (lnd_getmil(lp) * lp->lnd_effic) / 500;
|
||||||
if (r < 1)
|
che_kill = r < 1 ? 0 : roll(r);
|
||||||
r = 1;
|
|
||||||
che_kill = roll(r);
|
|
||||||
if (che_kill > che)
|
if (che_kill > che)
|
||||||
che_kill = che;
|
che_kill = che;
|
||||||
if (che_kill) {
|
if (che_kill) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue