Fix object text when it has attribute scaling but no requirement.

This commit is contained in:
Rob Pearce 2016-06-02 16:41:18 +10:00
parent 9330c00ab3
commit 59204a30a0
1 changed files with 5 additions and 1 deletions

4
io.c
View File

@ -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");