From 0400bcafadf40754c5abddd9317636db643d285a Mon Sep 17 00:00:00 2001 From: TomBraun Date: Wed, 25 Jun 2014 13:22:42 +0200 Subject: [PATCH] Iron and Stone golems now use the corect number of stones / iron. 0001946: Eisengolems stellen keine Waren her http://bugs.eressea.de/view.php?id=1921 --- src/kernel/item.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kernel/item.c b/src/kernel/item.c index 729a94679..016efcc16 100644 --- a/src/kernel/item.c +++ b/src/kernel/item.c @@ -110,14 +110,14 @@ static int res_changeitem(unit * u, const resource_type * rtype, int delta) if (delta % GOLEM_STONE != 0) --reduce; scale_number(u, u->number + reduce); - num = u->number; + num = u->number * GOLEM_STONE; } else if (rtype == get_resourcetype(R_IRON) && u_race(u) == new_race[RC_IRONGOLEM] && delta <= 0) { int reduce = delta / GOLEM_IRON; if (delta % GOLEM_IRON != 0) --reduce; scale_number(u, u->number + reduce); - num = u->number; + num = u->number * GOLEM_IRON; } else { const item_type *itype = resource2item(rtype); item *i;