Fix "info Damage" for shells, depth charges and torpedoes

Each random() is off by one there.
This commit is contained in:
Markus Armbruster 2012-08-14 20:45:54 +02:00
parent c3be487479
commit 146454a6db

View file

@ -14,11 +14,11 @@ different ways (see below).
Shelling Shelling
You can be shelled by a fort, artillery unit, ship, depth-charge, or torpedo: You can be shelled by a fort, artillery unit, ship, depth-charge, or torpedo:
fort damage = guns * eff * (random(30) + 20) / 7 fort damage = guns * eff * (random(30) + 19) / 7
unit damage = guns * eff * (5 + random(6)) unit damage = guns * eff * (4 + random(6))
ship damage = guns * eff * (10 + random(6)) ship damage = guns * eff * (9 + random(6))
depth damage = 3 * eff * (10 + random(6)) depth damage = 3 * eff * (9 + random(6))
torp damage = 40 + random(40) + random(40) torp damage = 38 + random(40) + random(40)
Note that for forts, a maximum of 7 guns may be fired. Note that for forts, a maximum of 7 guns may be fired.
Bombs Bombs