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