MCPcopy Create free account
hub / github.com/NetHack/NetHack / erode_obj_text

Function erode_obj_text

src/read.c:88–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88staticfn char *
89erode_obj_text(struct obj *otmp, char *buf)
90{
91 int erosion = greatest_erosion(otmp);
92
93 if (erosion)
94 wipeout_text(buf, (int) (strlen(buf) * erosion / (2 * MAX_ERODE)),
95 otmp->o_id ^ (unsigned) ubirthday);
96 return buf;
97}
98
99char *
100tshirt_text(struct obj *tshirt, char *buf)

Callers 2

tshirt_textFunction · 0.85
apron_textFunction · 0.85

Calls 1

wipeout_textFunction · 0.85

Tested by

no test coverage detected