tend: Fail more nicely when target can't take more commodities

We silently ignore target ships that can't take any more of the tended
commodity.  This may leave the player guessing why the command did
nothing.  Report the reason like this:

    cs   cargo ship (#150) can't hold more guns

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2017-09-15 16:58:10 +02:00
parent be5b167ce6
commit 70008c1b9f
2 changed files with 8 additions and 2 deletions

View file

@ -2250,7 +2250,9 @@
Play#1 output Play#1 1 0 total guns transferred off of cs cargo ship (#150)
Play#1 output Play#1 1 5 total guns transferred off of cs cargo ship (#151)
Play#1 output Play#1 1 3 total guns transferred off of cs cargo ship (#152)
Play#1 output Play#1 1 cs cargo ship (#150) can't hold more guns
Play#1 output Play#1 1 0 total guns transferred off of cs cargo ship (#153)
Play#1 output Play#1 1 cs cargo ship (#150) can't hold more guns
Play#1 output Play#1 1 0 total guns transferred off of cs cargo ship (#154)
Play#1 output Play#1 6 0 398
Play#1 input tend g 153 -40 t