]> git.pond.sub.org Git - empserver/commit
Make depth-charging code and documentation match
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 2 Mar 2008 10:01:42 +0000 (11:01 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Fri, 14 Mar 2008 19:25:37 +0000 (20:25 +0100)
commita3ad623b2aabb6c04be4e3ab1cbcd0e8eba6be80
tree4330915763cde27b606795169c35f43d641c0916
parente8595066d1ebf0f4c44e8307f92c6a27f43c3363
Make depth-charging code and documentation match

Before 4.0.6, depth charges required no guns, one military, did damage
like shell fire from two guns, and used two shells.  Missions were not
quite consistent with that (bug).  4.0.6 changed depth charges to work
exactly like shell fire (but without updating documentation
accordingly): require guns and gun crew, non-zero firing range, scale
damage and ammunition use with guns.

Go back to the old model, but with damage like three guns, to avoid
changing the stock game's dd now (three gun damage for two shells).
Stock game's af changes from two gun damage for one shell, and nas
from four gun damage for two shells.

Factor out common depth-charging code into shp_dchrg().
include/ship.h
info/Damage.t
src/lib/commands/mfir.c
src/lib/commands/torp.c
src/lib/subs/landgun.c
src/lib/subs/mission.c