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

Function m_unleash

src/apply.c:725–742  ·  view source on GitHub ↗

mtmp is about to die, or become untame */

Source from the content-addressed store, hash-verified

723
724/* mtmp is about to die, or become untame */
725void
726m_unleash(struct monst *mtmp, boolean feedback)
727{
728 struct obj *otmp;
729
730 if (feedback) {
731 if (canseemon(mtmp))
732 pline_mon(mtmp, "%s pulls free of %s leash!",
733 Monnam(mtmp), mhis(mtmp));
734 else
735 Your("leash falls slack.");
736 }
737 if ((otmp = get_mleash(mtmp)) != 0) {
738 otmp->leashmon = 0;
739 update_inventory();
740 }
741 mtmp->mleashed = 0;
742}
743
744/* player is about to die (for bones) */
745void

Callers 13

mount_steedFunction · 0.85
kick_steedFunction · 0.85
teleport_petFunction · 0.85
dog_moveFunction · 0.85
quickmimicFunction · 0.85
mon_catchup_elapsed_timeFunction · 0.85
keepdogsFunction · 0.85
migrate_to_levelFunction · 0.85
wary_dogFunction · 0.85
abuse_dogFunction · 0.85
m_detachFunction · 0.85
newchamFunction · 0.85

Calls 6

canseemonFunction · 0.85
pline_monFunction · 0.85
MonnamFunction · 0.85
YourFunction · 0.85
get_mleashFunction · 0.85
update_inventoryFunction · 0.85

Tested by

no test coverage detected