MCPcopy Index your code
hub / github.com/NetHack/NetHack / locomotion

Function locomotion

src/mondata.c:1379–1392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1377 crawl = { "crawl", "Crawl", "falter", "Falter" };
1378
1379const char *
1380locomotion(const struct permonst *ptr, const char *def)
1381{
1382 int locoindx = (*def != highc(*def)) ? 0 : 1;
1383
1384 return (is_floater(ptr) ? levitate[locoindx]
1385 : (is_flyer(ptr) && ptr->msize <= MZ_SMALL) ? flys[locoindx]
1386 : (is_flyer(ptr) && ptr->msize > MZ_SMALL) ? flyl[locoindx]
1387 : slithy(ptr) ? slither[locoindx]
1388 : amorphous(ptr) ? ooze[locoindx]
1389 : !ptr->mmove ? immobile[locoindx]
1390 : nolimbs(ptr) ? crawl[locoindx]
1391 : def);
1392}
1393
1394const char *
1395stagger(const struct permonst *ptr, const char *def)

Callers 13

mhitm_ad_seduFunction · 0.85
revive_corpseFunction · 0.85
u_locomotionFunction · 0.85
hatch_eggFunction · 0.85
dog_moveFunction · 0.85
hideunderFunction · 0.85
msg_mon_movementFunction · 0.85
postmovFunction · 0.85
use_defensiveFunction · 0.85
use_miscFunction · 0.85
muse_unslimeFunction · 0.85
fig_transformFunction · 0.85

Calls 1

highcFunction · 0.85

Tested by

no test coverage detected