Make glorkums emit impossible

This commit is contained in:
Pasi Kallinen
2022-09-04 17:43:01 +03:00
parent 82aaa289ef
commit 601dba5279
2 changed files with 3 additions and 0 deletions

View File

@@ -2291,6 +2291,7 @@ obj_pmname(struct obj *obj)
return pmname(&mons[mndx], mgend);
}
impossible("obj_pmname otyp:%i,corpsenm:%i", obj->otyp, obj->corpsenm);
return "two-legged glorkum-seeker";
}

View File

@@ -271,6 +271,7 @@ safe_typename(int otyp)
|| !OBJ_NAME(objects[otyp])) {
res = nextobuf();
Sprintf(res, "glorkum[%d]", otyp);
impossible("safe_typename: %s", res);
} else {
/* force it to be treated as fully discovered */
save_nameknown = objects[otyp].oc_name_known;
@@ -834,6 +835,7 @@ xname_flags(
}
default:
Sprintf(buf, "glorkum %d %d %d", obj->oclass, typ, obj->spe);
impossible("xname_flags: %s", buf);
break;
}
if (pluralize) {