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

Function can_saddle

src/steed.c:25–33  ·  view source on GitHub ↗

Can this monster wear a saddle? */

Source from the content-addressed store, hash-verified

23
24/* Can this monster wear a saddle? */
25boolean
26can_saddle(struct monst *mtmp)
27{
28 struct permonst *ptr = mtmp->data;
29
30 return (strchr(steeds, ptr->mlet) && (ptr->msize >= MZ_MEDIUM)
31 && (!humanoid(ptr) || ptr->mlet == S_CENTAUR) && !amorphous(ptr)
32 && !noncorporeal(ptr) && !is_whirly(ptr) && !unsolid(ptr));
33}
34
35int
36use_saddle(struct obj *otmp)

Callers 9

use_saddleFunction · 0.85
put_saddle_on_monFunction · 0.85
mount_steedFunction · 0.85
poly_steedFunction · 0.85
mon_break_armorFunction · 0.85
makemonFunction · 0.85
create_objectFunction · 0.85
there_cmd_menu_next2uFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected