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

Function aggravate

src/wizard.c:493–511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

491}
492
493void
494aggravate(void)
495{
496 struct monst *mtmp;
497 boolean in_w_tower = In_W_tower(u.ux, u.uy, &u.uz);
498
499 for (mtmp = fmon; mtmp; mtmp = mtmp->nmon) {
500 if (DEADMONSTER(mtmp))
501 continue;
502 if (in_w_tower != In_W_tower(mtmp->mx, mtmp->my, &u.uz))
503 continue;
504 mtmp->mstrategy &= ~(STRAT_WAITFORU | STRAT_APPEARMSG);
505 mtmp->msleeping = 0;
506 if (!mtmp->mcanmove && !rn2(5)) {
507 mtmp->mfrozen = 0;
508 mtmp->mcanmove = 1;
509 }
510 }
511}
512
513/* "Double Trouble" spell cast by the Wizard; caller is responsible for
514 only casting this when there is currently one wizard in existence;

Callers 10

throne_sit_effectFunction · 0.85
peffect_invisibilityFunction · 0.85
mcast_spellFunction · 0.85
domonnoiseFunction · 0.85
interveneFunction · 0.85
doturnFunction · 0.85
m_respond_shriekerFunction · 0.85
m_respondFunction · 0.85
cursed_bookFunction · 0.85
domonabilityFunction · 0.85

Calls 2

In_W_towerFunction · 0.85
rn2Function · 0.85

Tested by

no test coverage detected