- int36 renderer

This commit is contained in:
Christian Schlittchen 2001-05-20 07:23:54 +00:00
parent d31b8e7931
commit 88caac52af
3 changed files with 11 additions and 2 deletions

View File

@ -226,8 +226,7 @@ restart(unit *u, int race)
faction *f = addplayer(u->region, u->faction->email, race)->faction;
f->magiegebiet = u->faction->magiegebiet;
f->options = u->faction->options;
assert(u->faction->locale);
f->locale = strdup(u->faction->locale);
f->locale = u->faction->locale;
destroyfaction(u->faction);
}

View File

@ -3402,6 +3402,14 @@ eval_skill(struct opstack ** stack, const void * userdata)
int sk = opop(stack, int);
const char * c = skillname(sk, report->locale);
opush(stack, strcpy(balloc(strlen(c)+1), c));
}
static void
eval_int36(struct opstack ** stack, const void * userdata)
{
int i = opop(stack, int);
const char * c = itoa36(i);
opush(stack, strcpy(balloc(strlen(c)+1), c));
unused(userdata);
}
@ -3417,4 +3425,5 @@ report_init(void)
add_function("building", &eval_building);
add_function("skill", &eval_skill);
add_function("direction", &eval_direction);
add_function("int36", &eval_int36);
}

View File

@ -243,6 +243,7 @@ struct fspecialdata fspecials[MAXFACTIONSPECIALS] = {
100
},
/* TODO: is_undead() und Sonderbehandlungen von Untoten */
/* in dieser Form ultimative Eigenschaft für Orks */
{
"Untot",
"Personen einer Partei mit dieser Eigenschaft bekommen automatisch doppelt "