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

Function align_gname

src/pray.c:2529–2555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2527}
2528
2529const char *
2530align_gname(aligntyp alignment)
2531{
2532 const char *gnam;
2533
2534 switch (alignment) {
2535 case A_NONE:
2536 gnam = Moloch;
2537 break;
2538 case A_LAWFUL:
2539 gnam = gu.urole.lgod;
2540 break;
2541 case A_NEUTRAL:
2542 gnam = gu.urole.ngod;
2543 break;
2544 case A_CHAOTIC:
2545 gnam = gu.urole.cgod;
2546 break;
2547 default:
2548 impossible("unknown alignment.");
2549 gnam = "someone";
2550 break;
2551 }
2552 if (*gnam == '_')
2553 ++gnam;
2554 return gnam;
2555}
2556
2557static const char *const hallu_gods[] = {
2558 "the Flying Spaghetti Monster", /* Church of the FSM */

Callers 15

convert_argFunction · 0.85
god_zaps_youFunction · 0.85
fry_by_godFunction · 0.85
angrygodsFunction · 0.85
pleasedFunction · 0.85
godvoiceFunction · 0.85
desecrate_altarFunction · 0.85
bestow_artifactFunction · 0.85
can_prayFunction · 0.85
prayer_doneFunction · 0.85
a_gname_atFunction · 0.85
u_gnameFunction · 0.85

Calls 1

impossibleFunction · 0.70

Tested by

no test coverage detected