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

Function home_shk

src/shk.c:1316–1328  ·  view source on GitHub ↗

return shkp to home position */

Source from the content-addressed store, hash-verified

1314
1315/* return shkp to home position */
1316staticfn void
1317home_shk(struct monst *shkp, boolean killkops)
1318{
1319 coordxy x = ESHK(shkp)->shk.x, y = ESHK(shkp)->shk.y;
1320
1321 (void) mnearto(shkp, x, y, TRUE, RLOC_NOMSG);
1322 svl.level.flags.has_shop = 1;
1323 if (killkops) {
1324 kops_gone(TRUE);
1325 pacify_guards();
1326 }
1327 after_shk_move(shkp);
1328}
1329
1330staticfn boolean
1331angry_shk_exists(void)

Callers 3

make_happy_shkFunction · 0.85
inheritsFunction · 0.85
pay_for_damageFunction · 0.85

Calls 4

mneartoFunction · 0.85
kops_goneFunction · 0.85
pacify_guardsFunction · 0.85
after_shk_moveFunction · 0.85

Tested by

no test coverage detected