forked from github/server
- study_days fix for orcs
This commit is contained in:
parent
d4cf3cdee2
commit
6116d79a60
1 changed files with 6 additions and 4 deletions
|
@ -161,10 +161,12 @@ study_days(unit * student, skill_t sk)
|
||||||
int speed = 30;
|
int speed = 30;
|
||||||
if (student->race->study_speed) {
|
if (student->race->study_speed) {
|
||||||
speed += student->race->study_speed[sk];
|
speed += student->race->study_speed[sk];
|
||||||
}
|
if (speed<30) {
|
||||||
if (speed<30) {
|
skill * sv = get_skill(student, sk);
|
||||||
skill * sv = get_skill(student, sk);
|
if (sv==0) {
|
||||||
if (sv==0) return 30;
|
speed = 30;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return student->number * speed;
|
return student->number * speed;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue