forked from github/server
potion texts should be shown again
This commit is contained in:
parent
737b0fedb4
commit
7ac253e6ff
|
@ -2155,6 +2155,7 @@ report(FILE *F, faction * f, const faction_list * addresses,
|
||||||
requirement * m;
|
requirement * m;
|
||||||
if (ptype!=NULL) {
|
if (ptype!=NULL) {
|
||||||
const char * pname = resourcename(ptype->itype->rtype, 0);
|
const char * pname = resourcename(ptype->itype->rtype, 0);
|
||||||
|
const char * potiontext = mkname("potion", pname);
|
||||||
m = ptype->itype->construction->materials;
|
m = ptype->itype->construction->materials;
|
||||||
if (ch==0) {
|
if (ch==0) {
|
||||||
rnl(F);
|
rnl(F);
|
||||||
|
@ -2175,8 +2176,11 @@ report(FILE *F, faction * f, const faction_list * addresses,
|
||||||
}
|
}
|
||||||
centre(F, buf, true);
|
centre(F, buf, true);
|
||||||
rnl(F);
|
rnl(F);
|
||||||
description = LOC(f->locale, mkname("potion", pname));
|
description = LOC(f->locale, potiontext);
|
||||||
if (description==pname) description = ptype->text;
|
if (strcmp(description, potiontext)==0) {
|
||||||
|
/* string not found */
|
||||||
|
description = ptype->text;
|
||||||
|
}
|
||||||
centre(F, description, true);
|
centre(F, description, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue