]> git.pond.sub.org Git - empserver/blob - tests/fire/05-1
tests/fire: New; exercises fire command
[empserver] / tests / fire / 05-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 | 100% tra
12 fire la 9 6,0
13 | 39% hat
14 fire la 1 6,0
15 | 40% hat, at itself
16 fire la 2 3,1
17 | at sector that doesn't exist
18 fire la 2 1,0
19 | at ship that doesn't exist
20 fire la 2 666
21 | at valid target, but no mil
22 lunload m 2 10
23 fire la 2 6,0
24 lload m 2 10
25 | likewise no guns
26 lunload g 2 12
27 fire la 2 6,0
28 lload g 2 12
29 | likewise no shells
30 lunload s 2 80
31 fire la 2 6,0
32 lload s 2 80
33 | likewise on ship
34 load land 9 2
35 fire la 2 6,0
36 unload land 9 2
37 | likewise on land
38 lload land 9 2
39 fire la 2 6,0
40 lunload land 9 2
41 |
42 || land firing nowhere (shells consumed)
43 | 100% hat
44 | at sea out of range
45 fire la 3 -12,0
46 | at ship out of range
47 fire la 3 0
48 | at sub, server pretends out of range
49 fire la 3 13
50 | likewise in port
51 fire la 3 12
52 |
53 || land firing at bogus target
54 | 100% hat
55 | at sea
56 fire la 3 6,0
57 | at sanctuary
58 fire la 3 2,-2
59 |
60 || land firing at undefended target
61 | 100% hat with one gun
62 | at empty highway
63 lunload g 3 -1
64 fire la 3 0,2
65 lload g 3 11
66 | likewise one shell (take care to avoid automatic supply)
67 lunload s 3 -1
68 march 3 gh
69 fire la 3 0,2
70 march 3 jh
71 lload s 3 51
72 | 40% hat
73 fire la 2 0,2
74 | 100% hat
75 fire la 3 0,2
76 | 100% hat
77 | at sector, fractional range, ~50% chance
78 march 3 yyyh
79 fire la 3 0,2
80 fire la 3 0,2
81 fire la 3 0,2
82 fire la 3 0,2
83 fire la 3 0,2
84 fire la 3 0,2
85 |
86 || show shell use
87 lcarg * ?shell>0