forked from github/server
recruiting and stuff
This commit is contained in:
parent
d569cc0088
commit
bdcefcb135
|
@ -468,7 +468,8 @@ recruit_cost(const faction * f, const race * rc)
|
|||
} else {
|
||||
const char * str = get_param(f->race->parameters, "other_race");
|
||||
if (str && strcmp(rc->_name[0], str)==0) {
|
||||
return get_param_int(f->race->parameters, "other_cost", -1);
|
||||
return rc->recruitcost;
|
||||
/* return get_param_int(f->race->parameters, "other_cost", -1); */
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
|
@ -497,7 +498,9 @@ recruit(unit * u, struct order * ord, request ** recruitorders)
|
|||
/* Monster dürfen REKRUTIERE 15 dracoid machen
|
||||
* also: secondary race */
|
||||
rc = findrace(str, f->locale);
|
||||
if (rc!=NULL) {
|
||||
recruitcost = recruit_cost(f, rc);
|
||||
}
|
||||
if ((u->number!=0 && rc!=f->race) || rc==NULL || recruitcost<0) {
|
||||
rc = f->race;
|
||||
recruitcost = recruit_cost(f, f->race);
|
||||
|
|
|
@ -1471,7 +1471,7 @@ write_script(FILE * F, const faction * f)
|
|||
report_type * rtype;
|
||||
char buf[1024];
|
||||
|
||||
fprintf(F, "faction=%s:email=%s", factionid(f), f->email);
|
||||
fprintf(F, "faction=%s:email=%s:lang=%s", factionid(f), f->email, locale_name(f->locale));
|
||||
if (f->options & (1<<O_BZIP2)) fputs(":compression=bz2", F);
|
||||
else fputs(":compression=zip", F);
|
||||
|
||||
|
|
Loading…
Reference in New Issue