forked from github/server
"0 Wirkungen Siebenmeilentee" Ausgabe in CR und NR respektiert "leere" attribute. Issue: 960
This commit is contained in:
parent
88ecdd173a
commit
02b012ed47
|
@ -266,12 +266,14 @@ print_curses(FILE * F, const faction * viewer, const void * obj, typ_t typ)
|
||||||
}
|
}
|
||||||
} else if (a->type==&at_effect && self) {
|
} else if (a->type==&at_effect && self) {
|
||||||
effect_data * data = (effect_data *)a->data.v;
|
effect_data * data = (effect_data *)a->data.v;
|
||||||
const char * key = resourcename(data->type->itype->rtype, 0);
|
if (data->value>0) {
|
||||||
if (!header) {
|
const char * key = resourcename(data->type->itype->rtype, 0);
|
||||||
header = 1;
|
if (!header) {
|
||||||
fputs("EFFECTS\n", F);
|
header = 1;
|
||||||
|
fputs("EFFECTS\n", F);
|
||||||
|
}
|
||||||
|
fprintf(F, "\"%d %s\"\n", data->value, add_translation(key, locale_string(default_locale, key)));
|
||||||
}
|
}
|
||||||
fprintf(F, "\"%d %s\"\n", data->value, add_translation(key, locale_string(default_locale, key)));
|
|
||||||
}
|
}
|
||||||
a = a->next;
|
a = a->next;
|
||||||
}
|
}
|
||||||
|
|
|
@ -511,13 +511,15 @@ print_curses(FILE *F, const faction *viewer, const void * obj, typ_t typ, int in
|
||||||
}
|
}
|
||||||
} else if (a->type==&at_effect && self) {
|
} else if (a->type==&at_effect && self) {
|
||||||
effect_data * data = (effect_data *)a->data.v;
|
effect_data * data = (effect_data *)a->data.v;
|
||||||
sprintf(buf, "Auf der Einheit lieg%s %d Wirkung%s %s.",
|
if (data->value>0) {
|
||||||
|
sprintf(buf, "Auf der Einheit lieg%s %d Wirkung%s %s.",
|
||||||
(data->value==1 ? "t" : "en"),
|
(data->value==1 ? "t" : "en"),
|
||||||
data->value,
|
data->value,
|
||||||
(data->value==1 ? "" : "en"),
|
(data->value==1 ? "" : "en"),
|
||||||
LOC(default_locale, resourcename(data->type->itype->rtype, 0)));
|
LOC(default_locale, resourcename(data->type->itype->rtype, 0)));
|
||||||
rnl(F);
|
rnl(F);
|
||||||
rparagraph(F, buf, indent, 2, 0);
|
rparagraph(F, buf, indent, 2, 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue