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

Function desecrate_altar

src/pray.c:1500–1523  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1498}
1499
1500void
1501desecrate_altar(boolean highaltar, aligntyp altaralign)
1502{
1503 char gvbuf[BUFSZ];
1504
1505 /*
1506 * REAL BAD NEWS!!! High altars cannot be converted. Even an attempt
1507 * gets the god who owns it truly pissed off. The same effect for
1508 * deliberately destroying a normal altar.
1509 */
1510 /* if you did this to your own altar, your god will hold a grudge... */
1511 if (altaralign == u.ualign.type) {
1512 adjalign(-20);
1513 u.ugangr += 5;
1514 }
1515 You_feel("the air around you grow charged...");
1516 pline("Suddenly, you realize that %s has noticed you...",
1517 align_gname(altaralign));
1518 Sprintf(gvbuf, "So, mortal! You dare desecrate my %s!",
1519 highaltar ? "High Temple" : "altar");
1520 godvoice(altaralign, gvbuf);
1521 /* Throw everything we have at the player */
1522 god_zaps_you(altaralign);
1523}
1524
1525/* offering the Amulet on a high altar (checked by caller) ends the game;
1526 we don't declare this 'NORETURN' because done() can return (if called

Callers 5

digactualholeFunction · 0.85
offer_negative_valuedFunction · 0.85
sacrifice_your_raceFunction · 0.85
offer_corpseFunction · 0.85
do_earthquakeFunction · 0.85

Calls 6

adjalignFunction · 0.85
You_feelFunction · 0.85
align_gnameFunction · 0.85
godvoiceFunction · 0.85
god_zaps_youFunction · 0.85
plineFunction · 0.70

Tested by

no test coverage detected