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

Function align_gtitle

src/pray.c:2627–2649  ·  view source on GitHub ↗

deity's title */

Source from the content-addressed store, hash-verified

2625
2626/* deity's title */
2627const char *
2628align_gtitle(aligntyp alignment)
2629{
2630 const char *gnam, *result = "god";
2631
2632 switch (alignment) {
2633 case A_LAWFUL:
2634 gnam = gu.urole.lgod;
2635 break;
2636 case A_NEUTRAL:
2637 gnam = gu.urole.ngod;
2638 break;
2639 case A_CHAOTIC:
2640 gnam = gu.urole.cgod;
2641 break;
2642 default:
2643 gnam = 0;
2644 break;
2645 }
2646 if (gnam && *gnam == '_')
2647 result = "goddess";
2648 return result;
2649}
2650
2651void
2652altar_wrath(coordxy x, coordxy y)

Callers 2

convert_argFunction · 0.85
role_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected