From 7970aa276d91bfd552d846ccb4b69eff70a5fb23 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Wed, 23 Sep 2009 17:13:28 +0000 Subject: [PATCH] http://bugs.eressea.de/view.php?id=1629 --- src/common/gamecode/give.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/common/gamecode/give.c b/src/common/gamecode/give.c index 233361a8b..8c16b1faa 100644 --- a/src/common/gamecode/give.c +++ b/src/common/gamecode/give.c @@ -83,6 +83,11 @@ add_give(unit * u, unit * u2, int n, const resource_type * rtype, struct order * int give_quota(const unit * src, const unit * dst, const item_type * type, int n) { static float divisor = -1; + + /* luxuries and herbs are traded 1:1 */ + if (fval(type, ITF_HERB) || type->rtype->ltype) { + return n; + } if (dst && src && src->faction!=dst->faction) { if (divisor<0) { divisor = get_param_flt(global.parameters, "rules.items.give_divisor", 1);