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

Function offer_too_soon

src/pray.c:1479–1498  ·  view source on GitHub ↗

feedback when attempting to offer the Amulet on a "low altar" (not one of the high altars in the temples on the Astral Plane or Moloch's Sanctum) */

Source from the content-addressed store, hash-verified

1477/* feedback when attempting to offer the Amulet on a "low altar" (not one of
1478 the high altars in the temples on the Astral Plane or Moloch's Sanctum) */
1479staticfn void
1480offer_too_soon(aligntyp altaralign)
1481{
1482 if (altaralign == A_NONE && Inhell) {
1483 /* offering on an unaligned altar in Gehennom;
1484 hero has left Moloch's Sanctum (caller handles that)
1485 so is in the process of getting away with the Amulet;
1486 for any unaligned altar outside of Gehennom, give the
1487 "you feel ashamed" feedback for wrong alignment below */
1488 gods_upset(A_NONE); /* Moloch becomes angry */
1489 return;
1490 }
1491 You_feel("%s.", Hallucination
1492 ? "homesick"
1493 /* if on track, give a big hint */
1494 : (altaralign == u.ualign.type)
1495 ? "an urge to return to the surface"
1496 /* else headed towards celestial disgrace */
1497 : "ashamed");
1498}
1499
1500void
1501desecrate_altar(boolean highaltar, aligntyp altaralign)

Callers 2

offer_fake_amuletFunction · 0.85
dosacrificeFunction · 0.85

Calls 2

gods_upsetFunction · 0.85
You_feelFunction · 0.85

Tested by

no test coverage detected