forked from github/server
Merge branch 'develop' of github.com:ennorehling/eressea into develop
This commit is contained in:
commit
59d8775e21
|
@ -1775,12 +1775,12 @@ static void breedtrees(unit * u, int raw)
|
||||||
}
|
}
|
||||||
if (n > raw) n = raw;
|
if (n > raw) n = raw;
|
||||||
|
|
||||||
/* Talent * 5% der Samen setzen an (max 100%) */
|
/* Fuer jeden Samen Talent*5% Erfolgschance. */
|
||||||
planted = n;
|
for (i = n; i > 0; i--) {
|
||||||
if (skill < 20) {
|
if (rng_int() % 100 < skill * 5)
|
||||||
planted = planted * skill / 20;
|
planted++;
|
||||||
}
|
}
|
||||||
rsettrees(r, 0, rtrees(r, 0) + planted);
|
rsettrees(r, 1, rtrees(r, 1) + planted);
|
||||||
|
|
||||||
/* Alles ok. Abziehen. */
|
/* Alles ok. Abziehen. */
|
||||||
produceexp(u, SK_HERBALISM, u->number);
|
produceexp(u, SK_HERBALISM, u->number);
|
||||||
|
|
Loading…
Reference in New Issue