forked from github/server
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:
parent
fa9ac186d7
commit
0400bcafad
1 changed files with 2 additions and 2 deletions
|
@ -110,14 +110,14 @@ static int res_changeitem(unit * u, const resource_type * rtype, int delta)
|
||||||
if (delta % GOLEM_STONE != 0)
|
if (delta % GOLEM_STONE != 0)
|
||||||
--reduce;
|
--reduce;
|
||||||
scale_number(u, u->number + reduce);
|
scale_number(u, u->number + reduce);
|
||||||
num = u->number;
|
num = u->number * GOLEM_STONE;
|
||||||
} else if (rtype == get_resourcetype(R_IRON)
|
} else if (rtype == get_resourcetype(R_IRON)
|
||||||
&& u_race(u) == new_race[RC_IRONGOLEM] && delta <= 0) {
|
&& u_race(u) == new_race[RC_IRONGOLEM] && delta <= 0) {
|
||||||
int reduce = delta / GOLEM_IRON;
|
int reduce = delta / GOLEM_IRON;
|
||||||
if (delta % GOLEM_IRON != 0)
|
if (delta % GOLEM_IRON != 0)
|
||||||
--reduce;
|
--reduce;
|
||||||
scale_number(u, u->number + reduce);
|
scale_number(u, u->number + reduce);
|
||||||
num = u->number;
|
num = u->number * GOLEM_IRON;
|
||||||
} else {
|
} else {
|
||||||
const item_type *itype = resource2item(rtype);
|
const item_type *itype = resource2item(rtype);
|
||||||
item *i;
|
item *i;
|
||||||
|
|
Loading…
Reference in a new issue