Fix object text when it has attribute scaling but no requirement.
This commit is contained in:
parent
9330c00ab3
commit
59204a30a0
6
io.c
6
io.c
|
@ -7578,7 +7578,11 @@ char *makedesc_ob(object_t *o, char *retbuf) {
|
||||||
}
|
}
|
||||||
if (f->val[2] != NA) {
|
if (f->val[2] != NA) {
|
||||||
char addon[BUFLEN];
|
char addon[BUFLEN];
|
||||||
sprintf(addon, " (bonus at %d)^n.\n", f->val[2]);
|
if (f->val[1] == NA) {
|
||||||
|
sprintf(addon, "It gains a bonus at at %d %s.\n", f->val[2], getattrname(f->val[0]));
|
||||||
|
} else {
|
||||||
|
sprintf(addon, " (bonus at %d)^n.\n", f->val[2]);
|
||||||
|
}
|
||||||
strcat(buf,addon);
|
strcat(buf,addon);
|
||||||
} else {
|
} else {
|
||||||
strcat(buf, "\n");
|
strcat(buf, "\n");
|
||||||
|
|
Loading…
Reference in New Issue