]> git.pond.sub.org Git - empserver/blob - tests/fire/03-1
tests/fire: New; exercises fire command
[empserver] / tests / fire / 03-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 200
31 fire sh 2 6,0
32 load s 2 200
33 |
34 || ship firing nowhere (shells consumed)
35 | 100% bb
36 | at sea out of range
37 fire sh 3 -12,0
38 | at ship out of range
39 fire sh 3 0
40 | at sub, server pretends out of range
41 fire sh 3 13
42 | likewise in port
43 fire sh 3 12
44 |
45 || ship firing at bogus target
46 | 100% bb
47 | at sea
48 fire sh 3 6,0
49 | at sanctuary
50 fire sh 3 2,-2
51 |
52 || ship firing at undefended target
53 | 100% bb with 1, 2, 3 guns
54 | at empty highway
55 unload g 3 -1
56 fire sh 3 0,2
57 load g 3 1
58 fire sh 3 0,2
59 load g 3 1
60 fire sh 3 0,2
61 load g 3 7
62 | likewise 1, 2 shell (take care to avoid automatic supply)
63 unload s 3 -1
64 navi 3 jh
65 fire sh 3 0,2
66 navi 3 gh
67 load s 3 2
68 navi 3 jh
69 fire sh 3 0,2
70 navi 3 gh
71 load s 3 169
72 | likewise 1, 2, 3 mil
73 unload m 3 -1
74 fire sh 3 0,2
75 load m 3 1
76 fire sh 3 0,2
77 load m 3 1
78 fire sh 3 0,2
79 load m 3 10
80 | 60% bb
81 fire sh 2 0,2
82 | 100% bb
83 fire sh 3 0,2
84 | 100% dd
85 | at sub, two retreat, two sink
86 fire sh 5 13
87 fire sh 6 12
88 fire sh 5 11
89 fire sh 6 10
90 | at ship, fractional range, ~50% chance
91 navi 5 jh
92 fire sh 5 24
93 fire sh 5 24
94 fire sh 5 24
95 fire sh 5 24
96 fire sh 5 24
97 fire sh 5 24
98 |
99 || show shell use
100 carg * ?shell>0