charisma is supposed to include qualities like leadership and personal magnetism rather than just appearance, but it has devolved to this... */
| 994 | /* charisma is supposed to include qualities like leadership and personal |
| 995 | magnetism rather than just appearance, but it has devolved to this... */ |
| 996 | const char * |
| 997 | beautiful(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 | |
| 1015 | static const char look_str[] = "look %s."; |
| 1016 |
no test coverage detected