]> git.pond.sub.org Git - empserver/blob - tests/load-tend/03-tend-1
client: Unbreak standalone build
[empserver] / tests / load-tend / 03-tend-1
1 ||| General tend rules
2 |
3 | tender and target must be in the same sector
4 | only own ships can tend
5 | only own and friendly ships can be tended to
6 | a ship doesn't tend to itself
7 |
8 | ships (in 1,-1 unless stated otherwise)
9 | cs#150/.../153 (fleet t)
10 | cs#160/162/163/164 (fleet u) in 0,-2, owned by #0/2/3/4
11 | ls#165
12 | cs#166 in 0,-2
13 | frg#170/sb#171/cs#172/sbc#173 land tendees, sub x supply
14 | cs#175 land tendee
15 |
16 | lands:
17 | sup#300/linf#301/302/303/hat#304 (army t) riding fleet t
18 | linf#312/231/314 (army u) riding fleet u
19 | linf#315/316/317 riding ls#165
20 | spy#320/321/323 (army s) riding ls#165
21 | linf#330/331 riding cs#166
22 |
23 ||| tend commodities
24 |
25 || general sanity
26 | invalid commodity
27 tend x
28 | invalid tender
29 tend f -1
30 | no tenders match
31 tend f n
32 | foreign tender
33 tend f 160/162/163/164
34 | invalid amount
35 | impossible, as crap is mapped to zero
36 | invalid target
37 tend f 150 1 -1
38 | no targets match
39 tend f 150 1 n
40 |
41 || tender/target pairs that can't
42 | targeting self:
43 tend f 150 1 150
44 | target not in same sector:
45 tend f 150 1 0
46 |
47 || from own ships to own ships:
48 | #150/151 give 4m each
49 | #150/151 receive 1m each, #152/153/154 2m
50 tend m 150/151 1 t
51 | likewise, civilians: same result
52 tend c 150/151 1 t
53 | likewise, zero amount: fails
54 tend m 150/151 0 t
55 | likewise, negative amount:
56 | #150/151 receive 4m each
57 | #150/151 give 1m each, #152/153/154 2m
58 tend u 150/151 -1 t
59 || from own ships to foreign ships:
60 | list: #166 give 2f, #162/163 receive 1f each
61 tend f 166 1 160/162/163/164
62 | group: same
63 | odd: can use foreign fleet assignment
64 tend f 166 1 u
65 | area: same
66 realm 2 0,-2
67 tend f 166 1 #2
68 tend f 166 1 0,-2
69 tend f 166 1 -1:1,-2
70 | civilians don't work:
71 tend c 166 1 160/162/163/164
72 | negative amount doesn't work:
73 tend f 160/162/163/164 -1 166
74 || from foreign ships to own ships doesn't work:
75 tend f 166 -1 160/162/163/164
76 |
77 || tend something the tender can't hold
78 tend h 170/171 1 150
79 tend h 150 -1 170/171
80 |
81 || tend something the tender doesn't have
82 tend h 150/152 1 151
83 tend h 151 -1 150/152
84 |
85 || tend something the target can't hold
86 tend u 150 1 170/171
87 tend u 170/171 -1 150
88 |
89 || tend more than the tender has
90 | #150 gives 7s, #152 gives 9s
91 | #150 receives 5s, #151 9s, #152 receives 2s
92 tend s 150/152 5 t
93 | #152/154 give 7s each, #150 receives 10s, #151 receive 4s
94 tend s t -5 153/154
95 |
96 || tend more then the target can hold
97 | #151 gives 5g, #152 gives 3g
98 | #150 receives 8g
99 tend g t 5 150
100 | #150 gives 8g to #153
101 tend g 153 -40 t
102 |
103 || interactive
104 tend
105 x
106 tend
107 f
108 -1
109 tend
110 f
111 150
112 x
113 tend
114 f
115 150/151
116 1
117 153
118 -1
119 154
120 |
121 ||| tend lands
122 |
123 || general sanity
124 | invalid tender
125 tend land -1
126 | foreign tender
127 tend land 160/162/163/164
128 | invalid land
129 tend land 150 -1
130 | invalid target
131 tend land 151 301 -1
132 |
133 || tender/target pairs that can't
134 | no ships match
135 tend land n
136 tend land 151 301 n
137 | targeting self:
138 tend land 151 301 151
139 | target not friendly
140 tend land 166 330 164
141 | target not in same sector
142 tend land 151 301 0
143 |
144 || lands that can't be tended
145 | no lands match
146 tend land 150 n 151
147 | not capable: lacks assault (#300)
148 tend land 150 * 151
149 | not on tender
150 tend land 150 301 150
151 | carrying civilians, to foreign ship
152 | TODO need a land unit that can carry c to test this
153 |
154 || target's load limits
155 | can't carry non-light
156 | TODO need a non-light assault land unit to test this
157 | can't carry light (only spies)
158 tend land 151 301 171/173
159 | no room for non-light
160 | TODO need a non-light assault land unit to test this
161 | no room for light (transfers first 2)
162 tend land t 301/302/303 170
163 | usability: useless "not on this ship" complaints
164 | no room for spy (transfers first 2)
165 tend land 165 320/321/322 171
166 tend land 165/171 s 173
167 | spy can use light and non-light slot
168 tend land 173 s 150/165
169 |
170 || to foreign ships
171 tend land 166 330 162
172 tend land 166 331 163
173 |
174 || interactive
175 tend
176 land
177 !
178 tend
179 land
180 -1
181 tend
182 land
183 165
184 -1
185 tend
186 land
187 165
188 322
189 -1
190 tend
191 land
192 165
193 322
194 172