]> git.pond.sub.org Git - empserver/commit
ltend: Reject zero amount more nicely
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 16 Sep 2017 07:30:07 +0000 (09:30 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 5 Jan 2021 06:25:17 +0000 (07:25 +0100)
commit7d2c09668c1d418abeef1ea661a02d0bb78a1abf
tree27145ce1edce3c53f28da3c1dc2d945041c7aa22
parent70008c1b9f19ae6395616a00e954cfb1db014855
ltend: Reject zero amount more nicely

Unlike tend, ltend does nothing silently when asked to tend zero
commodities.  This may leave the player guessing why the command did
nothing.  Report the reason and fail the command, just like tend does.
While there, improve the prompt to match tend's.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/lib/commands/lten.c
tests/load-tend/05-ltend-1
tests/load-tend/journal.log