forked from github/server
demons should never forget a skill completely.
This commit is contained in:
parent
02844171f9
commit
0974329fda
1 changed files with 4 additions and 0 deletions
|
@ -1090,6 +1090,10 @@ demon_skillchanges(void)
|
||||||
int weeks = 1+rng_int()%3;
|
int weeks = 1+rng_int()%3;
|
||||||
if (roll < downchance) {
|
if (roll < downchance) {
|
||||||
reduce_skill(u, sv, weeks);
|
reduce_skill(u, sv, weeks);
|
||||||
|
if (sv->level<1) {
|
||||||
|
/* demons should never forget below 1 */
|
||||||
|
set_level(u, sv->id, 1);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
while (weeks--) learn_skill(u, sv->id, 1.0);
|
while (weeks--) learn_skill(u, sv->id, 1.0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue