forked from github/server
- Fix expandrecruit
This commit is contained in:
parent
5cf07a350c
commit
472254020c
|
@ -312,8 +312,14 @@ expandrecruit(region * r, request * recruitorders)
|
||||||
for (u = r->units; u; u = u->next) {
|
for (u = r->units; u; u = u->next) {
|
||||||
if (u->n >= 0) {
|
if (u->n >= 0) {
|
||||||
unit * unew;
|
unit * unew;
|
||||||
if (u->number==0) unew = u;
|
if (u->number==0) {
|
||||||
else unew = createunit(r, u->faction, u->n, u->race);
|
set_number(u, u->n);
|
||||||
|
u->hp = u->n * unit_max_hp(u);
|
||||||
|
unew = u;
|
||||||
|
} else {
|
||||||
|
unew = createunit(r, u->faction, u->n, u->race);
|
||||||
|
}
|
||||||
|
|
||||||
if (unew->race == new_race[RC_URUK]) {
|
if (unew->race == new_race[RC_URUK]) {
|
||||||
change_level(unew, SK_SWORD, 1);
|
change_level(unew, SK_SWORD, 1);
|
||||||
change_level(unew, SK_SPEAR, 1);
|
change_level(unew, SK_SPEAR, 1);
|
||||||
|
|
Loading…
Reference in New Issue