Make glorkums emit impossible

This commit is contained in:
Pasi Kallinen
2022-09-04 17:43:06 +03:00
parent 82aaa289ef
commit 601dba5279
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -2291,6 +2291,7 @@ obj_pmname(struct obj *obj)
return pmname(&mons[mndx], mgend); return pmname(&mons[mndx], mgend);
} }
impossible("obj_pmname otyp:%i,corpsenm:%i", obj->otyp, obj->corpsenm);
return "two-legged glorkum-seeker"; return "two-legged glorkum-seeker";
} }
+2
View File
@@ -271,6 +271,7 @@ safe_typename(int otyp)
|| !OBJ_NAME(objects[otyp])) { || !OBJ_NAME(objects[otyp])) {
res = nextobuf(); res = nextobuf();
Sprintf(res, "glorkum[%d]", otyp); Sprintf(res, "glorkum[%d]", otyp);
impossible("safe_typename: %s", res);
} else { } else {
/* force it to be treated as fully discovered */ /* force it to be treated as fully discovered */
save_nameknown = objects[otyp].oc_name_known; save_nameknown = objects[otyp].oc_name_known;
@@ -834,6 +835,7 @@ xname_flags(
} }
default: default:
Sprintf(buf, "glorkum %d %d %d", obj->oclass, typ, obj->spe); Sprintf(buf, "glorkum %d %d %d", obj->oclass, typ, obj->spe);
impossible("xname_flags: %s", buf);
break; break;
} }
if (pluralize) { if (pluralize) {