empserver/tests/fire
Markus Armbruster 17abdbc5e0 torpedo fire: Reveal sub hit by return fire or depth charge
This partly reverts a change made in Empire 2.3 to tell a submarine's
opponent only that he's dealing with a "sub" instead of the
submarine's UID and type.  Hiding submarines is done by prsub().
Uses:

* Command torpedo: defender depth charges or torpedoes an attacking
  submarine

  If you can attack a submarine reactively, you should be able to
  attack it actively, too.  But that requires its UID.  Reveal it
  again, but keep the type hidden.

* Command fire: defender fires back at a submarine using its deck gun

  Submarines need to surface to fire deck guns, so they shouldn't be
  treated any different than surface ships.  Revert Empire 2.3's
  change entirely there, i.e. defender learns type as well as UID.

* Command torpedo: attacking submarine hits its target

  Keep the submarine hidden.

* Commands torpedo and fire: attacking ship hits a submarine

  The attacker passed the UID as command argument, so it doesn't
  matter whether we print it or not.  Printing it is simpler to code,
  so do that.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2015-03-02 08:20:52 +01:00
..
01-sector-1 tests/fire: Cover firing at unused / sunk ships 2015-03-02 08:20:52 +01:00
02-POGO tests/fire: Drop reset of #1's BTUs between sub-tests 2014-01-19 10:16:59 +01:00
03-ship-1 tests/fire: Cover firing at unused / sunk ships 2015-03-02 08:20:52 +01:00
04-POGO tests/fire: Drop reset of #1's BTUs between sub-tests 2014-01-19 10:16:59 +01:00
05-land-1 tests/fire: Cover firing at unused / sunk ships 2015-03-02 08:20:52 +01:00
99-POGO tests/fire: Cover mission clearing 2015-03-02 08:20:51 +01:00
final.xdump fire: Always clear mission when firing 2015-03-02 08:20:51 +01:00
journal.log torpedo fire: Reveal sub hit by return fire or depth charge 2015-03-02 08:20:52 +01:00
server.log tests: Enable running_test_suite by default 2014-01-19 10:09:17 +01:00
setup-POGO tests/fire: Cover mission clearing 2015-03-02 08:20:51 +01:00