]> git.pond.sub.org Git - empserver/blob - tests/fire/03-ship-1
tests/fire: Cover mission clearing
[empserver] / tests / fire / 03-ship-1
1 ||| fire ship
2 | ship must have mil>0, glim>0, gun>0, shell>0, eff>=60
3 |
4 || assets
5 ship * ?shell>0
6 carg * ?shell>0
7 |
8 || ship not firing
9 | nonexistant ship
10 fire sh 666 6,0
11 | 100% cs
12 fire sh 9 6,0
13 | 59% bb
14 fire sh 1 6,0
15 | 60% bb, at itself
16 fire sh 2 2
17 | at sector that doesn't exist
18 fire sh 2 1,0
19 | at ship that doesn't exist
20 fire sh 2 666
21 | at valid target, but no mil
22 unload m 2 13
23 fire sh 2 6,0
24 load m 2 13
25 | likewise no guns
26 unload g 2 10
27 fire sh 2 6,0
28 load g 2 10
29 | likewise no shells
30 unload s 2 100
31 fire sh 2 6,0
32 load s 2 100
33 | show mission
34 miss s * ?mission#0 q
35 __cmd added 1 2 0
36 |
37 || ship firing nowhere (shells consumed)
38 | 100% bb
39 | at sea out of range
40 fire sh 3 -12,0
41 | at ship out of range
42 fire sh 3 0
43 | at sub, server pretends out of range
44 fire sh 3 13
45 | likewise in port
46 fire sh 3 12
47 |
48 || ship firing at bogus target
49 | 100% bb
50 | at sea
51 fire sh 3 6,0
52 | at sanctuary
53 fire sh 3 2,-2
54 |
55 || ship firing at undefended target
56 | 100% bb with 1, 2, 3 guns
57 | at empty highway
58 unload g 4 -1
59 fire sh 4 0,2
60 load g 4 1
61 fire sh 4 0,2
62 load g 4 1
63 fire sh 4 0,2
64 load g 4 7
65 | likewise 1, 2 shell (take care to avoid automatic supply)
66 unload s 4 -1
67 load s 3 100
68 fire sh 4 0,2
69 tend s 3 2 4
70 __cmd added -2 -2 0
71 fire sh 4 0,2
72 tend s 3 93 4
73 __cmd added -1 -1 0
74 | likewise 1, 2, 3 mil
75 unload m 4 -1
76 fire sh 4 0,2
77 load m 4 1
78 fire sh 4 0,2
79 load m 4 1
80 fire sh 4 0,2
81 load m 4 10
82 | 60% bb
83 fire sh 2 0,2
84 | 100% bb
85 fire sh 3 0,2
86 | 100% dd
87 | at sub, two sunk
88 fire sh 5 13
89 fire sh 6 12
90 fire sh 5 11
91 fire sh 6 10
92 | at ship, fractional range, ~50% chance
93 navi 5 jh
94 fire sh 5 24
95 fire sh 5 24
96 fire sh 5 24
97 fire sh 5 24
98 fire sh 5 24
99 fire sh 5 24
100 |
101 || show shell use
102 carg * ?shell>0