forked from github/server
fix hunger/fishing
This commit is contained in:
parent
e443e26e18
commit
6def085715
|
@ -220,8 +220,7 @@ get_food(region *r)
|
||||||
* jede Einheit genug Silber für ihren Unterhalt hat. */
|
* jede Einheit genug Silber für ihren Unterhalt hat. */
|
||||||
|
|
||||||
for (u = r->units; u; u = u->next) {
|
for (u = r->units; u; u = u->next) {
|
||||||
int style = INCOME_FISHING;
|
int need = lifestyle(u);
|
||||||
int need = style;
|
|
||||||
|
|
||||||
/* Erstmal zurücksetzen */
|
/* Erstmal zurücksetzen */
|
||||||
freset(u, UFL_HUNGER);
|
freset(u, UFL_HUNGER);
|
||||||
|
@ -236,7 +235,7 @@ get_food(region *r)
|
||||||
get = need;
|
get = need;
|
||||||
} else {
|
} else {
|
||||||
int x = MIN(c, v->number);
|
int x = MIN(c, v->number);
|
||||||
get = (style * x) / v->number;
|
get = INCOME_FISHING * x;
|
||||||
}
|
}
|
||||||
if (get) {
|
if (get) {
|
||||||
change_money(v, get);
|
change_money(v, get);
|
||||||
|
|
Loading…
Reference in New Issue