empserver/tests/retreat
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-retreat-1 retreat: Fix group retreat after failed board sinks ship 2015-03-02 08:20:51 +01:00
99-POGO tests: Wean off deprecated retreat syntax 2015-03-02 08:20:49 +01:00
final.xdump board: Fix mobility cost when defender's efficiency < 100% 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 Revert "retreat: Oops on retreating ghosts" 2015-03-02 08:20:51 +01:00
setup-2 tests/retreat: Cover ships and land units on sale 2015-03-02 08:20:48 +01:00
setup-POGO tests/retreat: Cover retreat after failed board sinks victim 2015-03-02 08:20:50 +01:00