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
This commit is contained in:
TomBraun 2014-06-25 13:22:42 +02:00
parent fa9ac186d7
commit 0400bcafad

View file

@ -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;