From 59204a30a0e1bcef82d6518b2a4db106fb25fe30 Mon Sep 17 00:00:00 2001 From: Rob Pearce Date: Thu, 2 Jun 2016 16:41:18 +1000 Subject: [PATCH] Fix object text when it has attribute scaling but no requirement. --- io.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/io.c b/io.c index 7a2adaf..da18a61 100644 --- a/io.c +++ b/io.c @@ -7578,7 +7578,11 @@ char *makedesc_ob(object_t *o, char *retbuf) { } if (f->val[2] != NA) { 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); } else { strcat(buf, "\n");