Fix object text when it has attribute scaling but no requirement.
This commit is contained in:
parent
9330c00ab3
commit
59204a30a0
4
io.c
4
io.c
|
@ -7578,7 +7578,11 @@ char *makedesc_ob(object_t *o, char *retbuf) {
|
|||
}
|
||||
if (f->val[2] != NA) {
|
||||
char addon[BUFLEN];
|
||||
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);
|
||||
} else {
|
||||
strcat(buf, "\n");
|
||||
|
|
Loading…
Reference in New Issue