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

Function mimic_light_blocking

src/display.c:1531–1540  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1529}
1530
1531staticfn void
1532mimic_light_blocking(struct monst *mtmp)
1533{
1534 if (mtmp->minvis && is_lightblocker_mappear(mtmp)) {
1535 if (See_invisible)
1536 block_point(mtmp->mx, mtmp->my);
1537 else
1538 unblock_point(mtmp->mx, mtmp->my);
1539 }
1540}
1541
1542/*
1543 * Block/unblock light depending on what a mimic is mimicking and if it's

Callers

nothing calls this directly

Calls 2

block_pointFunction · 0.85
unblock_pointFunction · 0.85

Tested by

no test coverage detected