forked from github/server
fix curseinfo - klammer fehlte (wer löscht meine klammern weg??)
This commit is contained in:
parent
28fff31428
commit
abd85666ac
|
@ -241,11 +241,12 @@ print_curses(FILE * F, const faction * viewer, const void * obj, typ_t typ)
|
||||||
if (fval(a->type, ATF_CURSE)) {
|
if (fval(a->type, ATF_CURSE)) {
|
||||||
|
|
||||||
c = (curse *)a->data.v;
|
c = (curse *)a->data.v;
|
||||||
if (c->type->curseinfo)
|
if (c->type->curseinfo){
|
||||||
if (c->type->cansee){
|
if (c->type->cansee){
|
||||||
self = c->type->cansee(viewer, obj, typ, c, self);
|
self = c->type->cansee(viewer, obj, typ, c, self);
|
||||||
}
|
}
|
||||||
dh = c->type->curseinfo(viewer->locale, obj, typ, c, self);
|
dh = c->type->curseinfo(viewer->locale, obj, typ, c, self);
|
||||||
|
}
|
||||||
if (dh == 1) {
|
if (dh == 1) {
|
||||||
if (!header) {
|
if (!header) {
|
||||||
header = 1;
|
header = 1;
|
||||||
|
|
|
@ -730,11 +730,12 @@ print_curses(FILE *F, const faction *viewer, const void * obj, typ_t typ, int in
|
||||||
|
|
||||||
if (fval(a->type, ATF_CURSE)) {
|
if (fval(a->type, ATF_CURSE)) {
|
||||||
curse *c = (curse *)a->data.v;
|
curse *c = (curse *)a->data.v;
|
||||||
if (c->type->curseinfo)
|
if (c->type->curseinfo) {
|
||||||
if (c->type->cansee){
|
if (c->type->cansee){
|
||||||
self = c->type->cansee(viewer, obj, typ, c, self);
|
self = c->type->cansee(viewer, obj, typ, c, self);
|
||||||
}
|
}
|
||||||
dh = c->type->curseinfo(viewer->locale, obj, typ, c, self);
|
dh = c->type->curseinfo(viewer->locale, obj, typ, c, self);
|
||||||
|
}
|
||||||
if (dh == 1) {
|
if (dh == 1) {
|
||||||
rnl(F);
|
rnl(F);
|
||||||
rparagraph(F, buf, indent, 0);
|
rparagraph(F, buf, indent, 0);
|
||||||
|
|
|
@ -334,7 +334,7 @@ cinfo_sparkle(const struct locale * lang, const void * obj, typ_t typ, struct cu
|
||||||
static struct curse_type ct_sparkle = { "sparkle",
|
static struct curse_type ct_sparkle = { "sparkle",
|
||||||
CURSETYP_UNIT, CURSE_SPREADMODULO, ( M_MEN | M_DURATION ),
|
CURSETYP_UNIT, CURSE_SPREADMODULO, ( M_MEN | M_DURATION ),
|
||||||
"Dieser Zauber ist einer der ersten, den junge Magier in der Schule lernen.",
|
"Dieser Zauber ist einer der ersten, den junge Magier in der Schule lernen.",
|
||||||
NULL
|
cinfo_sparkle
|
||||||
};
|
};
|
||||||
|
|
||||||
/* ------------------------------------------------------------- */
|
/* ------------------------------------------------------------- */
|
||||||
|
@ -361,7 +361,7 @@ static struct curse_type ct_strength = { "strength",
|
||||||
CURSETYP_UNIT, CURSE_SPREADMODULO, M_MEN,
|
CURSETYP_UNIT, CURSE_SPREADMODULO, M_MEN,
|
||||||
"Dieser Zauber vermehrt die Stärke der verzauberten Personen um ein "
|
"Dieser Zauber vermehrt die Stärke der verzauberten Personen um ein "
|
||||||
"vielfaches.",
|
"vielfaches.",
|
||||||
NULL
|
cinfo_strength
|
||||||
};
|
};
|
||||||
|
|
||||||
/* ------------------------------------------------------------- */
|
/* ------------------------------------------------------------- */
|
||||||
|
@ -387,7 +387,7 @@ static struct curse_type ct_worse = {
|
||||||
"worse",
|
"worse",
|
||||||
CURSETYP_UNIT, CURSE_SPREADMODULO, M_MEN,
|
CURSETYP_UNIT, CURSE_SPREADMODULO, M_MEN,
|
||||||
"",
|
"",
|
||||||
NULL
|
cinfo_allskills
|
||||||
};
|
};
|
||||||
|
|
||||||
/* ------------------------------------------------------------- */
|
/* ------------------------------------------------------------- */
|
||||||
|
|
Loading…
Reference in New Issue