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

Function m_restartcham

src/mon.c:4626–4635  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4624}
4625
4626staticfn void
4627m_restartcham(struct monst *mtmp)
4628{
4629 if (!mtmp->mcan)
4630 mtmp->cham = pm_to_cham(monsndx(mtmp->data));
4631 if (mtmp->data->mlet == S_MIMIC && mtmp->msleeping) {
4632 set_mimic_sym(mtmp);
4633 newsym(mtmp->mx, mtmp->my);
4634 }
4635}
4636
4637/* let chameleons change and mimics hide again; called when taking off
4638 ring of protection from shape changers */

Callers

nothing calls this directly

Calls 3

pm_to_chamFunction · 0.85
set_mimic_symFunction · 0.85
newsymFunction · 0.85

Tested by

no test coverage detected