]> git.pond.sub.org Git - empserver/commit
Remove inconsistent shelling damage reduction for range
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 2 Jun 2008 05:42:14 +0000 (07:42 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Fri, 6 Jun 2008 19:31:55 +0000 (21:31 +0200)
commit53d984343240400e0e4c3f77bd67d33af4a5e7ff
treea78a0ae182c6792d98c15f5e93e298169a1b8eee
parentfa7e3aa9bebeeda8daf1613571febdd46f807d1b
Remove inconsistent shelling damage reduction for range

Firing damage reduction for range is a feature that was always there
and never really documented.  Different ways to fire reduced damage
differently for range, or not at all.  Fix that by dropping the
reduction everywhere.

The reduction happened randomly, with probability p = (d/m)^2, where d
is the distance to the target, and m is the maximum firing range.  The
fire command printed "Wind deflects shells" when it happened.

The old fire command (before MULTIFIRE) either halved damage (50%
chance), or reduced it by a factor of 1-p.

MULTIFIRE's fire command halved damage.  v4.0.2 reduced that loss to
10-20%.

Interdiction halved damage, but only when firing from ships.

Other ways to fire (support, return fire, interdiction from forts and
land units) did not reduce damage for range.
src/lib/commands/mfir.c
src/lib/subs/mission.c