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