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

Function beautiful

src/apply.c:996–1013  ·  view source on GitHub ↗

charisma is supposed to include qualities like leadership and personal magnetism rather than just appearance, but it has devolved to this... */

Source from the content-addressed store, hash-verified

994/* charisma is supposed to include qualities like leadership and personal
995 magnetism rather than just appearance, but it has devolved to this... */
996const char *
997beautiful(void)
998{
999 const char *res;
1000 int cha = ACURR(A_CHA);
1001
1002 /* don't bother complaining about the sexism; NetHack is not real life */
1003 res = ((cha >= 25) ? "sublime" /* 25 is the maximum possible */
1004 : (cha >= 19) ? "splendorous" /* note: not "splendiferous" */
1005 : (cha >= 16) ? ((poly_gender() == 1) ? "beautiful" : "handsome")
1006 : (cha >= 14) ? ((poly_gender() == 1) ? "winsome" : "amiable")
1007 : (cha >= 11) ? "cute"
1008 : (cha >= 9) ? "plain"
1009 : (cha >= 6) ? "homely"
1010 : (cha >= 4) ? "ugly"
1011 : "hideous"); /* 3 is the minimum possible */
1012 return res;
1013}
1014
1015static const char look_str[] = "look %s.";
1016

Callers 2

do_mgivennameFunction · 0.85
use_mirrorFunction · 0.85

Calls 1

poly_genderFunction · 0.85

Tested by

no test coverage detected