]> git.pond.sub.org Git - empserver/commitdiff
Fix "info Damage" for shells, depth charges and torpedoes
authorMarkus Armbruster <armbru@pond.sub.org>
Tue, 14 Aug 2012 18:45:54 +0000 (20:45 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Wed, 8 May 2013 04:55:20 +0000 (06:55 +0200)
Each random() is off by one there.

info/Damage.t

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