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.
This commit is contained in:
Markus Armbruster 2012-07-01 14:33:49 +02:00
parent 6c086a8110
commit 324109ae45
4 changed files with 38 additions and 2 deletions

View file

@ -60,6 +60,7 @@ struct trdstr {
extern int trade_check_ok(struct trdstr *, struct empobj *);
extern char *trade_nameof(struct trdstr *, struct empobj *);
extern int trade_desc(struct empobj *);
extern int trade_has_unsalable_cargo(struct empobj *, int);
extern int trade_getitem(struct trdstr *, union empobj_storage *);
#define gettrade(n, p) ef_read(EF_TRADE, (n), (p))