Einheiten die Goliathwasser benutzt haben sind überladen

- Gewicht von Pferden war falsch berechnet.
This commit is contained in:
Enno Rehling 2006-02-26 18:03:16 +00:00
parent 96941e04f2
commit f261bf2f5b
1 changed files with 5 additions and 1 deletions

View File

@ -319,7 +319,11 @@ walkingcapacity(const struct unit * u)
n += people * personcapacity(u); n += people * personcapacity(u);
/* Goliathwasser */ /* Goliathwasser */
tmp = get_effect(u, oldpotiontype[P_STRONG]); tmp = get_effect(u, oldpotiontype[P_STRONG]);
n += min(people, tmp) * (acap - personcapacity(u)); if (tmp>0) {
int horsecap = olditemtype[I_HORSE]->capacity;
if (tmp>people) tmp = people;
n += tmp * (horsecap - personcapacity(u));
}
/* change_effect wird in ageing gemacht */ /* change_effect wird in ageing gemacht */
tmp = get_item(u, I_TROLLBELT); tmp = get_item(u, I_TROLLBELT);
n += min(people, tmp) * (STRENGTHMULTIPLIER-1) * personcapacity(u); n += min(people, tmp) * (STRENGTHMULTIPLIER-1) * personcapacity(u);