pull request #946 - named armor
Pull request from entrez: use helm_simple_name() instead of hard-coded "helmet", boots_simple_name() instead of "boots" and so forth when formatting called but not yet discovered armor-class objects for inventory, messages, &c. Closes #946
This commit is contained in:
10
src/objnam.c
10
src/objnam.c
@@ -635,15 +635,15 @@ xname_flags(
|
||||
Strcat(buf, actualn);
|
||||
} else if (un) {
|
||||
if (is_boots(obj))
|
||||
Strcat(buf, "boots");
|
||||
Strcat(buf, boots_simple_name(obj));
|
||||
else if (is_gloves(obj))
|
||||
Strcat(buf, "gloves");
|
||||
Strcat(buf, gloves_simple_name(obj));
|
||||
else if (is_cloak(obj))
|
||||
Strcpy(buf, "cloak");
|
||||
Strcpy(buf, cloak_simple_name(obj));
|
||||
else if (is_helmet(obj))
|
||||
Strcpy(buf, "helmet");
|
||||
Strcpy(buf, helm_simple_name(obj));
|
||||
else if (is_shield(obj))
|
||||
Strcpy(buf, "shield");
|
||||
Strcpy(buf, shield_simple_name(obj));
|
||||
else
|
||||
Strcpy(buf, "armor");
|
||||
Strcat(buf, " called ");
|
||||
|
||||
Reference in New Issue
Block a user