]> git.pond.sub.org Git - empserver/commit
tend: Fail more nicely when target can't take more commodities
authorMarkus Armbruster <armbru@pond.sub.org>
Fri, 15 Sep 2017 14:58:10 +0000 (16:58 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 5 Jan 2021 06:25:17 +0000 (07:25 +0100)
commit70008c1b9f19ae6395616a00e954cfb1db014855
treef918821149cf286d9146b7d92f2243fc08287ec9
parentbe5b167ce69fce111726cb8c31f4056ea5b3bec7
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>
src/lib/commands/tend.c
tests/load-tend/journal.log