From 30dbd609bccd2b195f47561c315a37c74f939fe4 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sun, 1 Jul 2012 14:51:45 +0200 Subject: [PATCH] Forbid selling conquered populace Only relevant when the deity allows selling civilians by customizing table item, which is probably a bad idea. --- src/lib/commands/sell.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/commands/sell.c b/src/lib/commands/sell.c index 2b519714..0970f8ca 100644 --- a/src/lib/commands/sell.c +++ b/src/lib/commands/sell.c @@ -94,6 +94,10 @@ sell(void) pr("Sectors need at least 1 mobility to sell goods.\n"); return RET_FAIL; } + if (ip->i_uid == I_CIVIL && sect.sct_oldown != sect.sct_own) { + pr("You can't sell conquered populace!\n"); + return RET_FAIL; + } p = getstarg(player->argp[3], "Quantity: ", buf); if (!p || !*p) return RET_SYN;