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

Function Hello

src/role.c:2119–2140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2117}
2118
2119const char *
2120Hello(struct monst *mtmp)
2121{
2122 switch (Role_switch) {
2123 case PM_KNIGHT:
2124 return "Salutations"; /* Olde English */
2125 case PM_SAMURAI:
2126 return (mtmp && mtmp->data == &mons[PM_SHOPKEEPER])
2127 ? "Irasshaimase"
2128 : "Konnichi wa"; /* Japanese */
2129 case PM_TOURIST:
2130 return "Aloha"; /* Hawaiian */
2131 case PM_VALKYRIE:
2132 return
2133#ifdef MAIL_STRUCTURES
2134 (mtmp && mtmp->data == &mons[PM_MAIL_DAEMON]) ? "Hallo" :
2135#endif
2136 "Velkommen"; /* Norse */
2137 default:
2138 return "Hello";
2139 }
2140}
2141
2142const char *
2143Goodbye(void)

Callers 6

welcomeFunction · 0.85
check_special_roomFunction · 0.85
newmailFunction · 0.85
u_entered_shopFunction · 0.85
shk_moveFunction · 0.85
shk_chatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected