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