]> git.pond.sub.org Git - empserver/commit
Forbid selling units with unsalable cargo, permit selling military
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 1 Jul 2012 12:33:49 +0000 (14:33 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Fri, 13 Jul 2012 18:15:34 +0000 (20:15 +0200)
commit324109ae4545b9188026369ee4b8bacb4faa7646
tree61772e58d713f318e154ec745a236d07e444789c
parent6c086a8110b9182177919836ba43e27bb9b235ef
Forbid selling units with unsalable cargo, permit selling military

Deities can customize which commodities can be sold in table item.
Default is to allow anything but civilians and military.  However,
this applies only to the commodity market, not to the unit market:
cargo of ships and land units is not restricted.

Make the two markets consistent: permit selling military by default,
forbid selling units carrying unsalable commodities.  This outlaws
selling units carrying civilians by default.
include/trade.h
src/lib/commands/set.c
src/lib/global/item.config
src/lib/subs/trdsub.c