Units no longer die from lack of maintenance
Damage due to lack of maintenance is now limited by the unit's minimum efficiency. Before, units could die. Unfortunately, the update left any embarked units on their dead carrier. Should have seen this when I fixed a related bug in commitc2c0d1ff
, v4.3.22. Broken for ships and land units when Empire 2 added their maintenance cost, and for planes when commit2e40a4bb
(v4.3.4) replaced nuclear stockpiles by nuke units. The common root cause of these bugs is the update bypassing pre-write functions (bug#1010856). If another unit with the same number got built, it picked up the stuck cargo, triggering the oops from commit6fb5caf6
, which see. In "stuck on dead carrier" state, units pretty much behave as if their carrier was still alive, with additional protection from the fact that a dead carrier can't be damaged or boarded. The server detects this state on startup since commit7da9aab5
, and refuses to start. Only a deity can take units off a dead carrier.
This commit is contained in:
parent
8621911b4d
commit
8ccad0d779
Notes:
Markus Armbruster
2011-07-13 19:47:10 +02:00
Correction: commit 2e40a4bb
is in v4.3.3.
4 changed files with 31 additions and 50 deletions
|
@ -23,9 +23,10 @@ Also note that engineering land units costs 3 times what
|
|||
normal units cost, after the tech is figured in.
|
||||
.s1
|
||||
If you can not afford to pay maintenance costs then your unit will
|
||||
lose ETU/5 points of
|
||||
efficiency. Thus, if you were playing in a 60 ETU game, and you did
|
||||
not pay your maintenance costs for a 50% frigate, then the frigate
|
||||
would drop to 38% efficiency.
|
||||
lose ETU/5 points of efficiency. It won't go below its minimum
|
||||
efficiency, though. Thus, if you were playing in a 60 ETU game, and
|
||||
you did not pay your maintenance costs for a 40% frigate, then the
|
||||
frigate would drop to 28% efficiency at the first update, and to 20%
|
||||
at the second update.
|
||||
.s1
|
||||
.SA "Unit-types, Ship-types, Plane-types, Ships, LandUnits, Planes, Updates"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue