]> git.pond.sub.org Git - empserver/blob - tests/torpedo/01-torpedo-1
tests/torpedo: New; exercises torpedo command
[empserver] / tests / torpedo / 01-torpedo-1
1 || no torpedo launched
2 | ship doesn't exist
3 torp 666 50
4 | foreign ship
5 torp 31 50
6 | ship lacks capability torp
7 torp 1 50
8 | no guns
9 torp 2 50
10 | not enough shells
11 torp 3 50
12 | no military
13 torp 4 50
14 | inefficient
15 torp 5 50
16 | no mobility
17 torp 6 50
18 | target doesn't exist
19 torp 0 666
20 torp 0 19
21 | targeting self
22 torp 0 0
23 | ship lacks capability sub-torp
24 torp 7 45
25 |
26 || torpedo launched at nothing (shells consumed)
27 | out of range
28 torp 11 40
29 | blocked by land
30 torp 11 41
31 | odd: torpedo sighted anyway
32 | both
33 torp 11 42
34 |
35 || torpedo launched at helpless target
36 | range 0, surface to submarine, vis>5, 90% chance
37 torp 0 45
38 | range 1, submarine to surface, vis 5, 45% chance
39 torp 10 50
40 torp 10 51
41 torp 10 52
42 torp 10 53
43 | range 1, surface to surface, vis>5, 45% chance
44 torp 15 55
45 torp 15 56
46 torp 15 57
47 torp 15 58
48 | likewise, to submarine
49 torp 15 60
50 torp 15 61
51 torp 15 62
52 torp 15 63
53 | range 2, submarine to submarine, vis 3, 36% chance
54 torp 11 65
55 torp 11 66
56 torp 11 67
57 torp 11 68
58 |
59 || torpedo launched at armed target
60 | lone pt, dd#60/af#61/bb#65 and maybe dd#66/sb#67 (50% chance) defend,
61 | pt sunk before launch
62 torp 20 70
63 | odd: af defends with torpedo
64 | odd: fort and hat and allied dd do nothing
65 | 4pt, same defense, half damage, #3 sinks target
66 torp 21/22/23/24 70
67 | odd: command fails
68 | lone sb, af#61 and maybe dd#66 (50% chance) defend
69 torp 25 75
70 | 4sb, same defense, half damage, #3 sinks target
71 torp 26/27/28/29 75
72 | odd: command fails
73 | submarine at own ship
74 torp 10 16
75 | surface at own ship
76 torp 15 16