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

Function characteristics_enlightenment

src/insight.c:826–842  ·  view source on GitHub ↗

characteristics: expanded version of bottom line strength, dexterity, &c */

Source from the content-addressed store, hash-verified

824
825/* characteristics: expanded version of bottom line strength, dexterity, &c */
826staticfn void
827characteristics_enlightenment(int mode, int final)
828{
829 char buf[BUFSZ];
830
831 enlght_out("");
832 Sprintf(buf, "%sCharacteristics:", !final ? "" : "Final ");
833 enlght_out(buf);
834
835 /* bottom line order */
836 one_characteristic(mode, final, A_STR); /* strength */
837 one_characteristic(mode, final, A_DEX); /* dexterity */
838 one_characteristic(mode, final, A_CON); /* constitution */
839 one_characteristic(mode, final, A_INT); /* intelligence */
840 one_characteristic(mode, final, A_WIS); /* wisdom */
841 one_characteristic(mode, final, A_CHA); /* charisma */
842}
843
844/* display one attribute value for characteristics_enlightenment() */
845staticfn void

Callers 1

enlightenmentFunction · 0.85

Calls 2

enlght_outFunction · 0.85
one_characteristicFunction · 0.85

Tested by

no test coverage detected