navigate march: Nicer error messages for sub-command 'm'
Don't report every incapable ship or land unit. Complain only when there are no capable ships or land units available. The ships are all in the same sector, so complain about the sector type just once instead of once per capable ship or land unit. Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
f1042f82f1
commit
92f36aa4f5
3 changed files with 110 additions and 90 deletions
|
@ -556,15 +556,14 @@
|
|||
Play#1 input navi 0/1 mh
|
||||
Play#1 command navigate
|
||||
Play#1 output Play#1 1 Flagship is pt patrol boat (#0)
|
||||
Play#1 output Play#1 1 pt patrol boat (#0) doesn't have minesweeping capability!
|
||||
Play#1 output Play#1 1 cs cargo ship (#1) doesn't have minesweeping capability!
|
||||
Play#1 output Play#1 1 No minesweepers!
|
||||
Play#1 output Play#1 1 pt patrol boat (#0) stopped at 1,1
|
||||
Play#1 output Play#1 1 cs cargo ship (#1) stopped at 1,1
|
||||
Play#1 output Play#1 6 0 594
|
||||
Play#1 input navi 5 mh
|
||||
Play#1 command navigate
|
||||
Play#1 output Play#1 1 Flagship is ms minesweeper (#5)
|
||||
Play#1 output Play#1 1 ms minesweeper (#5) is not at sea. No mines there!
|
||||
Play#1 output Play#1 1 1,1 is a harbor. No seamines there!
|
||||
Play#1 output Play#1 1 ms minesweeper (#5) stopped at 1,1
|
||||
Play#1 output Play#1 6 0 593
|
||||
Play#1 input navi 121/122/128 j
|
||||
|
@ -643,7 +642,6 @@
|
|||
Play#1 output Play#1 1 . .
|
||||
Play#1 output Play#1 4 <117.8:76.0: 11,-5>
|
||||
Play#1 input mmmh
|
||||
Play#1 output Play#1 1 pt patrol boat (#135) doesn't have minesweeping capability!
|
||||
Play#1 output Play#1 1 Sweep...
|
||||
Play#1 output Play#1 1 Kawhomp! Mine detected in 11,-5!
|
||||
Play#1 output Play#1 1 ms minesweeper (#130) takes 15
|
||||
|
@ -654,11 +652,6 @@
|
|||
Play#1 output Play#1 1 Sweep...
|
||||
Play#1 output Play#1 1 Kawhomp! Mine detected in 11,-5!
|
||||
Play#1 output Play#1 1 ms minesweeper (#131) takes 10
|
||||
Play#1 output Play#1 1 pt patrol boat (#136) doesn't have minesweeping capability!
|
||||
Play#1 output Play#1 1 pt patrol boat (#137) doesn't have minesweeping capability!
|
||||
Play#1 output Play#1 1 pt patrol boat (#138) doesn't have minesweeping capability!
|
||||
Play#1 output Play#1 1 pt patrol boat (#139) doesn't have minesweeping capability!
|
||||
Play#1 output Play#1 1 pt patrol boat (#135) doesn't have minesweeping capability!
|
||||
Play#1 output Play#1 1 Sweep...
|
||||
Play#1 output Play#1 1 Sweep...
|
||||
Play#1 output Play#1 1 Sweep...
|
||||
|
@ -671,11 +664,6 @@
|
|||
Play#1 output Play#1 1 Sweep...
|
||||
Play#1 output Play#1 1 Sweep...
|
||||
Play#1 output Play#1 1 Sweep...
|
||||
Play#1 output Play#1 1 pt patrol boat (#136) doesn't have minesweeping capability!
|
||||
Play#1 output Play#1 1 pt patrol boat (#137) doesn't have minesweeping capability!
|
||||
Play#1 output Play#1 1 pt patrol boat (#138) doesn't have minesweeping capability!
|
||||
Play#1 output Play#1 1 pt patrol boat (#139) doesn't have minesweeping capability!
|
||||
Play#1 output Play#1 1 pt patrol boat (#135) doesn't have minesweeping capability!
|
||||
Play#1 output Play#1 1 Sweep...
|
||||
Play#1 output Play#1 1 Sweep...
|
||||
Play#1 output Play#1 1 Sweep...
|
||||
|
@ -684,10 +672,6 @@
|
|||
Play#1 output Play#1 1 Sweep...
|
||||
Play#1 output Play#1 1 Kawhomp! Mine detected in 11,-5!
|
||||
Play#1 output Play#1 1 ms minesweeper (#131) takes 11
|
||||
Play#1 output Play#1 1 pt patrol boat (#136) doesn't have minesweeping capability!
|
||||
Play#1 output Play#1 1 pt patrol boat (#137) doesn't have minesweeping capability!
|
||||
Play#1 output Play#1 1 pt patrol boat (#138) doesn't have minesweeping capability!
|
||||
Play#1 output Play#1 1 pt patrol boat (#139) doesn't have minesweeping capability!
|
||||
Play#1 output Play#1 1 pt patrol boat (#135) stopped at 11,-5
|
||||
Play#1 output Play#1 1 ms minesweeper (#130) stopped at 11,-5
|
||||
Play#1 output Play#1 1 ms minesweeper (#131) stopped at 11,-5
|
||||
|
@ -1215,15 +1199,14 @@
|
|||
Play#1 input march 0/2 mh
|
||||
Play#1 command march
|
||||
Play#1 output Play#1 1 Leader is cav cavalry #0
|
||||
Play#1 output Play#1 1 cav cavalry #0 is not an engineer!
|
||||
Play#1 output Play#1 1 spy infiltrator #2 is not an engineer!
|
||||
Play#1 output Play#1 1 No engineers!
|
||||
Play#1 output Play#1 1 cav cavalry #0 stopped at 1,1
|
||||
Play#1 output Play#1 1 spy infiltrator #2 stopped at 1,1
|
||||
Play#1 output Play#1 6 0 550
|
||||
Play#1 input march 120 mh
|
||||
Play#1 command march
|
||||
Play#1 output Play#1 1 Leader is eng engineer #120
|
||||
Play#1 output Play#1 1 eng engineer #120 is in a bridge span sector. No landmines there!
|
||||
Play#1 output Play#1 1 2,0 is a bridge span. No landmines there!
|
||||
Play#1 output Play#1 1 eng engineer #120 stopped at 2,0
|
||||
Play#1 output Play#1 6 0 549
|
||||
Play#1 input march 121/128 j
|
||||
|
@ -1282,7 +1265,6 @@
|
|||
Play#1 output Play#1 1 m m
|
||||
Play#1 output Play#1 4 <104.7:86.0: 8,6>
|
||||
Play#1 input mmmh
|
||||
Play#1 output Play#1 1 cav cavalry #135 is not an engineer!
|
||||
Play#1 output Play#1 1 Sweep...
|
||||
Play#1 output Play#1 1 Sweep...
|
||||
Play#1 output Play#1 1 Sweep...
|
||||
|
@ -1291,37 +1273,23 @@
|
|||
Play#1 output Play#1 1 Sweep...
|
||||
Play#1 output Play#1 1 Sweep...
|
||||
Play#1 output Play#1 1 Sweep...
|
||||
Play#1 output Play#1 1 cav cavalry #136 is not an engineer!
|
||||
Play#1 output Play#1 1 cav cavalry #137 is not an engineer!
|
||||
Play#1 output Play#1 1 cav cavalry #138 is not an engineer!
|
||||
Play#1 output Play#1 1 cav cavalry #139 is not an engineer!
|
||||
Play#1 output Play#1 1 cav cavalry #135 is not an engineer!
|
||||
Play#1 output Play#1 1 Sweep...
|
||||
Play#1 output Play#1 1 Sweep...
|
||||
Play#1 output Play#1 1 Blammo! Landmines detected in 8,6!
|
||||
Play#1 output Play#1 1 eng engineer #130 takes 6
|
||||
Play#1 output Play#1 1 Sweep...
|
||||
Play#1 output Play#1 1 Sweep...
|
||||
Play#1 output Play#1 1 Sweep...
|
||||
Play#1 output Play#1 1 Sweep...
|
||||
Play#1 output Play#1 1 cav cavalry #136 is not an engineer!
|
||||
Play#1 output Play#1 1 cav cavalry #137 is not an engineer!
|
||||
Play#1 output Play#1 1 cav cavalry #138 is not an engineer!
|
||||
Play#1 output Play#1 1 cav cavalry #139 is not an engineer!
|
||||
Play#1 output Play#1 1 cav cavalry #135 is not an engineer!
|
||||
Play#1 output Play#1 1 Sweep...
|
||||
Play#1 output Play#1 1 Sweep...
|
||||
Play#1 output Play#1 1 Sweep...
|
||||
Play#1 output Play#1 1 Sweep...
|
||||
Play#1 output Play#1 1 Sweep...
|
||||
Play#1 output Play#1 1 Sweep...
|
||||
Play#1 output Play#1 1 Sweep...
|
||||
Play#1 output Play#1 1 Sweep...
|
||||
Play#1 output Play#1 1 Sweep...
|
||||
Play#1 output Play#1 1 cav cavalry #136 is not an engineer!
|
||||
Play#1 output Play#1 1 cav cavalry #137 is not an engineer!
|
||||
Play#1 output Play#1 1 cav cavalry #138 is not an engineer!
|
||||
Play#1 output Play#1 1 cav cavalry #139 is not an engineer!
|
||||
Play#1 output Play#1 1 Blammo! Landmines detected in 8,6!
|
||||
Play#1 output Play#1 1 eng engineer #130 takes 6
|
||||
Play#1 output Play#1 1 Sweep...
|
||||
Play#1 output Play#1 1 Sweep...
|
||||
Play#1 output Play#1 1 Sweep...
|
||||
Play#1 output Play#1 1 Sweep...
|
||||
Play#1 output Play#1 1 Sweep...
|
||||
Play#1 output Play#1 1 Sweep...
|
||||
Play#1 output Play#1 1 Sweep...
|
||||
Play#1 output Play#1 1 Sweep...
|
||||
Play#1 output Play#1 1 Sweep...
|
||||
Play#1 output Play#1 1 Sweep...
|
||||
Play#1 output Play#1 1 Sweep...
|
||||
Play#1 output Play#1 1 Sweep...
|
||||
Play#1 output Play#1 1 Sweep...
|
||||
Play#1 output Play#1 1 cav cavalry #135 stopped at 8,6
|
||||
Play#1 output Play#1 1 eng engineer #130 stopped at 8,6
|
||||
Play#1 output Play#1 1 eng engineer #131 stopped at 8,6
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue