]> git.pond.sub.org Git - empserver/blob - tests/retreat/01-retreat-1
retreat: Rewrite automatic retreat code to fix its many bugs
[empserver] / tests / retreat / 01-retreat-1
1 ||| Commands
2 || retreat command
3 | garbage path
4 retr 0 garbage i
5 __cmd added 0 -1 0
6 | condition help, then junk conditions
7 retr 1 g
8 ?
9 junk
10 | long path, all conditions
11 retr 2/3 bgyujnbgyujnbgyujn itshbdu
12 | clear retreat order
13 retr 3 h c
14 | group retreat order
15 retr a ?uid=4 b h
16 fleet a 7
17 __cmd added 1 0 0
18 | show retreat orders
19 retr
20 0/1/2/3/4/7
21 || lretreat command
22 | garbage path
23 lret 0 garbage i
24 __cmd added 0 -1 0
25 | condition help, then junk conditions
26 lret 1 g
27 ?
28 junk
29 | long path, all conditions
30 lret 2/3 yujnbgyujnbgyujnbg ihb
31 | clear retreat order
32 lret 3 h c
33 | group retreat order
34 lret a ?uid=4 b h
35 army a 7
36 __cmd added 1 0 0
37 | show retreat orders
38 lret
39 0/1/2/3/4/7
40 ||| Ships
41 || ships failing to retreat
42 | sunk
43 | as group (fleet c): 30 sinks, 32 crewless, 35 no mobility, 36 on sale
44 fire se -2,2 30
45 __cmd added -2 -2 0
46 | in canal 4,0
47 fire se -2,2 31
48 __cmd added 1 1 0
49 | in construction zone 2,2
50 fire se -2,2 33
51 | landlocked in 3,1
52 fire se -2,2 34
53 __cmd added -1 -1 0
54 | as group (fleet c): 30 sinks, 31 on sale, 32 crewless, 35 no mobility,
55 || ships having difficulties during retreat
56 | out of mobility after n
57 fire se -2,2 40
58 | into construction zone 2,2 after n
59 fire se -2,2 41
60 | into unfriendly -3,1 right away
61 fire se -2,2 42
62 | into minefield -6,4, sweep and hit mines, stop
63 | as group (fleet m): 44/43
64 fire se -2,2 44
65 | into canal
66 | as group (fleet n): 46 can't, 47 can
67 fire se -2,2 46
68 __cmd added 1 1 0
69 || ships retreating fully
70 | nh
71 fire se -2,2 10
72 | h
73 fire se -2,2 10
74 | nj into friendly harbor 4,4
75 fire se -2,2 10
76 || own ship stays put
77 fire se -2,2 2
78 || ships retreating from gun fire
79 | injured covered above
80 | helpless
81 fire se -2,2 11
82 | not helpless
83 fire se -2,-2 20
84 | crazy group retreat
85 | as group (fleet g): 25 unremarkable, 24 foreign, 26 group retreat off,
86 | 27 different path, 28 different triggers, 29 is elsewhere
87 fire se -2,2 25
88 | odd: 26/27/28/29 retreat
89 __cmd added 1 1 0
90 || ships retreating from depth charges
91 | depth-charged
92 fire sh 5 50
93 fire sh 5 51
94 | helpless
95 fire sh 5 52
96 | not helpless
97 navi 5 gyuh
98 fire sh 5 53
99 || ships retreating from bombs
100 | injured
101 bomb 0/1/2/3/4 . p -2,2 ggh
102 s
103 60
104 61
105 62
106 63
107 64
108 | bombed
109 bomb 0/1/2/3/4 . p -2,2 ggh
110 s
111 65
112 66
113 67
114 68
115 69
116 | helpless is not implemented
117 || ships retreating from missiles
118 | injured
119 launch 10 80
120 launch 11 81
121 launch 12 82
122 launch 13 83
123 launch 14 84
124 | bombed and helpless doesn't apply to missiles (I guess they should)
125 || ships retreating from torpedoes
126 | torpedoed
127 torp 6 100
128 torp 6 101
129 torp 6 102
130 torp 6 103
131 torp 6 104
132 | BUG: retreats only when hit
133 | injured is not implemented
134 | helpless is not implemented
135 || ships retreating from sonar pings
136 | naval sonar, 120 detects
137 navi 5 bsh
138 | retreat on plane sonar is not implemented
139 || ships retreating from unsuccessful boarding
140 navi 5 nh
141 board 130 5
142 1
143 ||| Land units
144 | BUG: condition b triggers only on hit
145 || land units failing to retreat
146 | these bombing runs must hit; if they don't, use __cmd to make them
147 | destroyed
148 | as group (army c): 30 dies, 31 loaded on ship, 32 crewless,
149 | 34 loaded on train, 35 no mobility, 36 on sale
150 bomb 30 . p -2,2 jh
151 l
152 30
153 __cmd added -1 -2 0
154 | kidnapped in -1,1
155 bomb 30 . p -2,2 uh
156 l
157 33
158 | BUG: retreats anyway
159 | no rail in 1,1
160 bomb 30 . p -2,2 ujh
161 l
162 37
163 || land units having difficulties during retreat
164 | these bombing runs must hit; if they don't, use __cmd to make them
165 | out of mobility after n
166 bomb 30 . p -2,2 ujh
167 l
168 40
169 | into mountain 2,0 after j
170 | not actually having difficulties; such a retreat is permitted now
171 __cmd added -1 0 0
172 bomb 30 . p -2,2 ujh
173 l
174 41
175 | into foreign -1,1 right away
176 bomb 30 . p -2,2 ujh
177 l
178 42
179 | into minefield 0,0, sweep and hit mines, stop
180 | as group (army m): 44/43
181 __cmd added -1 0 0
182 bomb 30 . p -2,2 ujh
183 l
184 44
185 | rail ends after n
186 | as group (army t): 45 train, 46 not
187 bomb 31 . p -2,2 uyuuh
188 l
189 45
190 | into foreign, 47 can't, 48 can
191 __cmd added -1 0 0
192 bomb 31 . p -2,2 uuuh
193 l
194 47
195 __cmd added 2 4 0
196 || land units retreating fully
197 | jh
198 __cmd added -1 0 0
199 bomb 30 . p -2,2 ujh
200 l
201 10
202 | h
203 __cmd added -1 0 0
204 bomb 30 . p -2,2 ujjh
205 l
206 10
207 | uy into allied 3,-1
208 __cmd added -1 0 0
209 bomb 30 . p -2,2 ujjh
210 l
211 10
212 | own land unit stays put
213 bomb 30 . p -3,1 h
214 l
215 2
216 | crazy group retreat
217 | as group (army g): 25 unremarkable, 24 foreign, 26 group retreat off,
218 | 27 different path, 28 different triggers, 29 is elsewhere
219 bomb 30 . p -2,2 ujjh
220 l
221 25
222 | odd: 26/27/28/29 retreat
223 __cmd added 1 2 0
224 || land units retreating from bombs
225 | only retreat on p-bombing is implemented
226 | bombed covered above
227 | injured
228 bomb 20/21/22/23/24 . p -2,2 uuh
229 l
230 60
231 61
232 62
233 63
234 64
235 | bombed covered above
236 | helpless is not implemented